/* The Temple on Harvard Street — lodge.matthewjankowski.com
   Art Deco / PWA-Moderne design system, in the idiom of the building's own era. */

:root {
  --paper: #f5f0e4;
  --paper-deep: #ece4d0;
  --ink: #23201a;
  --ink-soft: #4c463a;
  --green: #1e4438;
  --green-deep: #142e26;
  --gold: #a8842c;
  --gold-bright: #c49a3a;
  --rule: #b4a888;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Marcellus", "Palatino Linotype", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */

header.masthead {
  background: var(--green-deep);
  color: var(--paper);
  padding: 4.2rem 1.5rem 3.4rem;
  text-align: center;
  border-bottom: 6px double var(--gold);
}

.deco-rule {
  display: flex; align-items: center; justify-content: center;
  gap: .8rem; color: var(--gold-bright);
  margin: 1.1rem auto;
  font-size: .8rem; letter-spacing: .35em;
}
.deco-rule::before, .deco-rule::after {
  content: ""; height: 1px; width: min(140px, 22vw);
  background: linear-gradient(to var(--dir, right), transparent, var(--gold-bright));
}
.deco-rule::before { --dir: right; }
.deco-rule::after  { --dir: left; }

.masthead .kicker {
  font-family: var(--display);
  letter-spacing: .42em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--gold-bright);
}

.masthead h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 4rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: .9rem auto .4rem;
  max-width: 20ch;
  line-height: 1.18;
}

.masthead .sub {
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #d9d2bc;
  max-width: 52ch;
  margin: .8rem auto 0;
}

.masthead .address {
  font-family: var(--display);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .78rem;
  color: #b8ae90;
  margin-top: 1.4rem;
}

/* ---------- hero figure ---------- */

.hero-figure {
  max-width: 880px;
  margin: -2.4rem auto 0;
  padding: 0 1.2rem;
  position: relative;
  z-index: 2;
}
.hero-figure .frame {
  background: #fff;
  padding: 14px;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(20, 26, 22, .28);
}
.hero-figure img { width: 100%; display: block; }
.hero-figure figcaption {
  font-size: .92rem; color: var(--ink-soft);
  font-style: italic; text-align: center;
  padding: .9rem 1.4rem 0;
}

/* ---------- chapters ---------- */

main { max-width: 1060px; margin: 0 auto; padding: 3.5rem 1.4rem 2rem; }

section.chapter { margin: 4.6rem 0; }

.chapter-head { text-align: center; margin-bottom: 2.2rem; }
.chapter-head .years {
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: .4em;
  font-size: .85rem;
  text-transform: uppercase;
}
.chapter-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: .06em;
  margin-top: .45rem;
  color: var(--green-deep);
}

.chapter p {
  max-width: 68ch;
  margin: 0 auto 1.35rem;
}

.chapter p.lede::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  line-height: .82;
  float: left;
  padding: .08em .12em 0 0;
  color: var(--green);
}

blockquote.pull {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--green);
  text-align: center;
  max-width: 26ch;
  margin: 2.6rem auto;
  line-height: 1.45;
}
blockquote.pull footer {
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* ---------- figures ---------- */

.figrow {
  display: grid;
  gap: 1.6rem;
  margin: 2.4rem auto;
}
.figrow.cols-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); max-width: 980px; }
.figrow.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1020px; }

figure.artifact { margin: 2.2rem auto; max-width: 760px; }
figure.artifact.narrow { max-width: 480px; }
figure.artifact.wide { max-width: 980px; }

figure.artifact .frame, .figrow figure .frame {
  background: #fff;
  padding: 10px;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 28px rgba(35, 32, 26, .16);
}
figure.artifact img, .figrow figure img { width: 100%; display: block; }
figure.artifact figcaption, .figrow figure figcaption {
  font-size: .9rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: .75rem .35rem 0;
  text-align: center;
  line-height: 1.5;
}
.figrow figure { margin: 0; }

a.zoom { display: block; cursor: zoom-in; }

/* ---------- interlude band ---------- */

.band {
  background: var(--green-deep);
  color: var(--paper);
  margin: 4.5rem 0;
  padding: 3.2rem 1.4rem;
  border-top: 4px double var(--gold);
  border-bottom: 4px double var(--gold);
}
.band .inner { max-width: 820px; margin: 0 auto; text-align: center; }
.band h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .12em;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.band p { color: #ddd6c0; max-width: 62ch; margin: 0 auto 1rem; }

/* ---------- fact strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.4rem;
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
}
.facts .fact {
  border-top: 3px double var(--gold);
  padding-top: 1rem;
}
.facts .num {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--green);
  letter-spacing: .04em;
}
.facts .lbl {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .3rem;
  line-height: 1.5;
}

/* ---------- audio ---------- */

.audio-box {
  max-width: 700px;
  margin: 3rem auto;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.8rem;
  text-align: center;
}
.audio-box h3 { font-family: var(--display); font-weight: 400; letter-spacing: .1em; color: var(--green-deep); margin-bottom: .3rem; }
.audio-box p { font-size: .92rem; color: var(--ink-soft); font-style: italic; margin-bottom: 1rem; }
.audio-box audio { width: 100%; }

/* ---------- footer ---------- */

footer.colophon {
  background: var(--ink);
  color: #b9b19c;
  padding: 3.2rem 1.5rem 3.6rem;
  font-size: .92rem;
  line-height: 1.7;
}
footer.colophon .inner { max-width: 780px; margin: 0 auto; text-align: center; }
footer.colophon h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
footer.colophon p { margin-bottom: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .hero-figure { margin-top: -1.4rem; }
}
