/* morgans.ca — a Victorian shopfront fascia over a quiet reading column.
   Enamel green and gilt belong to the signboard only; the page below is paper and ink. */

:root {
  --paper: #eceee8;
  --ink: #1a2420;
  --enamel: #1d4436;
  --enamel-deep: #15332a;
  --gilt: #c9a24f;
  --rule: #c5cbc1;
  --muted: #4c5a53;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --text: "Libre Caslon Text", "Baskerville", Georgia, serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--text);
}

a { color: var(--enamel); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
}

/* ---------- The fascia: the one loud thing ---------- */

.fascia {
  background: var(--enamel);
  color: var(--paper);
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 7vw, 5rem);
}

.fascia-board {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.75rem) 0;
  /* the double gilt rule of a painted signboard */
  border-top: 3px double var(--gilt);
  border-bottom: 3px double var(--gilt);
}

.fascia-name {
  margin: 0;
  font: 700 clamp(3.25rem, 13vw, 9.5rem)/0.95 var(--display);
  font-optical-sizing: auto;
  letter-spacing: 0.01em;
  color: var(--gilt);
  text-align: center;
  text-shadow: 0 1px 0 var(--enamel-deep);
}

.fascia-side {
  margin: 0;
  font: italic 400 clamp(0.95rem, 2vw, 1.35rem)/1.2 var(--display);
  color: var(--gilt);
}
.fascia-side:first-child { justify-self: end; }
.fascia-side:last-child { justify-self: start; font-variant-numeric: lining-nums; }

.fascia-copy {
  max-width: var(--measure);
  margin: clamp(2rem, 5vw, 3.25rem) auto 0;
}

h1 {
  margin: 0 0 1rem;
  font: 500 clamp(1.75rem, 4.2vw, 2.6rem)/1.15 var(--display);
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #dfe5dd;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--gilt);
  color: var(--gilt);
  text-decoration: none;
  font-size: 1rem;
}
.button:hover { background: var(--gilt); color: var(--enamel-deep); }

/* ---------- The reading column ---------- */

main {
  padding: 0 var(--gutter);
}

.photo {
  max-width: 62rem;
  margin: clamp(-1.5rem, -3vw, -1rem) auto 0;
  position: relative;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 0.5rem solid #fff;
  box-shadow: 0 0 0 1px var(--rule);
}

section {
  max-width: var(--measure);
  margin: clamp(3rem, 8vw, 5rem) auto 0;
}

h2 {
  margin: 0 0 0.85rem;
  font: 500 clamp(1.5rem, 3.2vw, 2rem)/1.2 var(--display);
  color: var(--enamel);
}

section > p { margin: 0 0 1.5rem; }

.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.themes li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-style: italic;
}
.themes li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gilt);
  transform: rotate(45deg);
}

details {
  border-top: 1px solid var(--rule);
}
details:last-of-type { border-bottom: 1px solid var(--rule); }

summary {
  cursor: pointer;
  padding: 0.9rem 2rem 0.9rem 0;
  font-weight: 700;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.8rem;
  font: 400 1.6rem/1 var(--text);
  color: var(--enamel);
}
details[open] summary::after { content: "−"; }

details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.footer {
  margin-top: clamp(4rem, 10vw, 6rem);
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 3px double var(--gilt);
  text-align: center;
  font: italic 400 0.95rem/1.4 var(--display);
  color: var(--muted);
}
.footer p { margin: 0; }

@media (max-width: 34rem) {
  .fascia-board { grid-template-columns: 1fr; text-align: center; gap: 0.25rem; }
  .fascia-side:first-child, .fascia-side:last-child { justify-self: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 0.15s, color 0.15s; }
}
