/* The Lee Organization — public site
   Brand: the locked wordmark, palette and geometry. Do not vary them here.
   Deliberately single-theme: The Organization's paper is ivory in any light. */

:root {
  --navy: #13294B;
  --burgundy: #5E1A2E;
  --gold: #A08C3C;
  --ivory: #F5F1E6;
  --ink-soft: color-mix(in srgb, var(--navy) 90%, var(--ivory));

  /* Engraved tracking. Locked value; do not vary it. */
  --track-wide: 0.3em;
  /* The mark's tracking under duress. Tapers only on nowrap lines that are
     width-constrained; standard band is 0.22–0.32em. */
  --track-mark: var(--track-wide);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: Baskerville, "Hoefler Text", "Times New Roman", Georgia, serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

main { flex: 1 0 auto; }

/* ---- masthead ---- */
header.masthead { text-align: center; padding-top: 3.2rem; }

.mark { margin-bottom: 1.4rem; }
.trule { display: flex; align-items: center; gap: 14px; }
.trule .seg { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.trule .seg i { display: block; height: 2.5px; background: var(--burgundy); }
.trule .seg em { display: block; height: 1px; background: var(--gold); }
.loz {
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); flex: 0 0 auto;
}
.brule { margin-top: 15px; display: flex; flex-direction: column; gap: 3px; }
.brule em { display: block; height: 1px; background: var(--gold); }
.brule i { display: block; height: 2.5px; background: var(--burgundy); }

.wordmark {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  font-weight: 400;
  letter-spacing: var(--track-mark);
  text-indent: var(--track-mark);
  white-space: nowrap;
}
.wordmark a { color: inherit; text-decoration: none; }

/* ---- navigation ---- */
nav.site {
  display: flex; justify-content: center; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.7rem;
}
nav.site a {
  color: var(--navy); text-decoration: none;
  font-size: 0.74rem; letter-spacing: 0.22em;
}
nav.site a:hover { color: var(--burgundy); }
nav.site a.on { border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* ---- home ---- */
.hero { text-align: center; padding: 4.4rem 0 3.6rem; }
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 500; letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero p {
  max-width: 52ch; margin: 1.5rem auto 0;
  font-size: 1.04rem; line-height: 1.8; color: var(--ink-soft);
}

.divider { display: flex; align-items: center; gap: 14px; margin-bottom: 2.8rem; }
.divider .seg { flex: 1; height: 2px; background: var(--burgundy); }
.divider .loz { width: 7px; height: 7px; }

.triptych {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2.4rem; padding-bottom: 4rem;
}
.triptych .eyebrow {
  font-size: 0.7rem; letter-spacing: 0.26em;
  color: var(--gold); margin-bottom: 0.6rem;
}
.triptych p { margin: 0; font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); }

/* ---- interior pages ---- */
.pagetitle { text-align: center; margin: 3.2rem 0 2.6rem; }
.pagetitle .t { display: inline-flex; align-items: center; gap: 1rem; }
.pagetitle .t i { display: block; width: 56px; height: 1px; background: var(--gold); }
.pagetitle .t h1 {
  margin: 0; font-size: 0.88rem; font-weight: 400;
  letter-spacing: var(--track-mark); text-indent: var(--track-mark); color: var(--burgundy);
  white-space: nowrap;
}

/* The interior pages no longer carry a .pagetitle — it repeated the nav item
   directly above it, which on pages this short read as a stutter. That block was
   also supplying the top margin, so .prose now sets its own, matching .hero so
   an interior page breathes like the homepage. */
.prose { padding: 4.4rem 0 3.6rem; }
.prose p {
  font-size: 1rem; line-height: 1.85; color: #22314D;
  margin: 0 0 1.3rem; text-align: justify;
}
.prose p:last-child { margin-bottom: 0; }
.dc {
  float: left; font-size: 3.7rem; line-height: 0.8;
  padding: 0.35rem 0.55rem 0 0; color: var(--burgundy);
}
.crosshead { display: flex; align-items: center; gap: 0.9rem; margin: 2.5rem 0 1.1rem; }
.crosshead i { display: block; width: 34px; height: 1px; background: var(--gold); }
.crosshead span {
  font-size: 0.7rem; letter-spacing: 0.26em; color: var(--gold); white-space: nowrap;
}

/* .prose p sets text-align:justify and beats a bare .address on specificity,
   so the centring this rule has always intended never applied. Qualified to
   .prose p.address so the authored intent actually lands. */
.prose p.address {
  text-align: center; margin: 2.4rem 0 0;
  font-size: 1.05rem; letter-spacing: 0.06em;
  /* The address is one 37-character unbreakable token; at 320px it overruns
     the column in every fallback serif. Break it rather than clip it. */
  overflow-wrap: anywhere;
}
.prose p.address a,
.prose a { color: var(--burgundy); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---- footer ---- */
footer.site {
  flex-shrink: 0;
  background: var(--navy); color: var(--ivory);
  text-align: center; padding: 2.1rem 1.5rem 2.3rem;
  margin-top: 4rem;
}
footer.site .fnm { font-size: 0.78rem; letter-spacing: var(--track-wide); text-indent: var(--track-wide); }
footer.site .fline { width: 130px; height: 1px; background: var(--gold); margin: 0.95rem auto; }
/* The motto sits below the rule, as a motto sits below arms. It is NOT a
   subheading of the wordmark — the wordmark rule (no subheading, ever) is
   untouched: this is a separate element in the footer lockup. Tracking is
   0.3em, the locked engraved value, and the colour is ivory softened into the
   navy ground rather than a freehanded grey (the pmo#160 precedent). */
footer.site .fmotto {
  font-size: 0.72rem; letter-spacing: var(--track-wide); text-indent: var(--track-wide);
  color: color-mix(in srgb, var(--ivory) 80%, var(--navy));
}

/* ---- responsive (authored widest-first: equal specificity, so source order
   decides any property two blocks share) ---- */

@media (max-width: 700px) {
  .inner { padding: 0 1.2rem; }
  header.masthead { padding-top: 2.2rem; }
  .triptych { grid-template-columns: 1fr; gap: 1.7rem; padding-bottom: 3rem; }
  .hero { padding: 3.2rem 0 2.6rem; }
  .prose p { text-align: left; }
  nav.site { gap: 1rem; }
}

/* Below 480px the twenty-character mark cannot hold 0.3em in the wide caps of
   the serif stack. Tracking steps to 0.22em — the floor of the standard's
   display band, not below it — and the page title's flanking rules shorten, so
   the taper is not asked to do work that ornament should do. Wordmark and page
   title only: the footer name has the room and keeps the locked 0.3em.
   480px is earlier than the measured need (mark 352px, title 399px) on purpose:
   no webfont is pinned, and the fallback stack runs wider than Baskerville. */
@media (max-width: 480px) {
  :root { --track-mark: 0.22em; }
  .pagetitle .t { gap: 0.55rem; }
  .pagetitle .t i { width: 24px; }
}

@media (max-width: 380px) {
  .inner { padding: 0 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
