@font-face { font-family: 'Mozilla Text'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/mozilla-text-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mozilla Text'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/mozilla-text-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mozilla Text'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mozilla-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mozilla Text'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/mozilla-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mozilla Text'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/mozilla-text-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Mozilla Text'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/mozilla-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Bodoni'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/libre-bodoni-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5eedc;
  --fg-light-base-body: #2a2216;
  --fg-light-base-heading: #2a2216;
  --fg-light-base-muted: #5c4f37;
  --fg-light-base-link: #6e5a12;
  --fg-light-base-inverse: #3b301d;
  --bg-light-card: #fbf6e9;
  --fg-light-card-body: #2a2216;
  --fg-light-card-heading: #2a2216;
  --fg-light-card-muted: #5c4f37;
  --fg-light-card-link: #6e5a12;
  --fg-light-card-inverse: #3b301d;
  --bg-light-elevated: #fffcf4;
  --fg-light-elevated-body: #2a2216;
  --fg-light-elevated-heading: #2a2216;
  --fg-light-elevated-muted: #5c4f37;
  --fg-light-elevated-link: #6e5a12;
  --fg-light-elevated-inverse: #3b301d;
  --brand-light-accent: #6e5a12;
  --brand-light-accent-hover: #52460a;
  --brand-light-on-accent: #fffaf0;
  --focus-light-ring: #6e5a12;
  --border-light-default: #8a7442;
  --border-light-subtle: #dccfa8;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Rahway heel guide: warm clinical print */
:root {
  --ink: var(--fg-light-base-body);
  --gold: var(--brand-light-accent);
  --gold-deep: var(--brand-light-accent-hover);
  --gold-rule: color-mix(in srgb, var(--brand-light-accent) 62%, var(--bg-light-base));
  --gold-wash: color-mix(in srgb, var(--brand-light-accent) 14%, var(--bg-light-card));
  --keyline: var(--border-light-subtle);
  --serif: 'Libre Bodoni', Georgia, 'Times New Roman', serif;
  --sans: 'Mozilla Text', 'Trebuchet MS', sans-serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg-heading);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

p { margin: 0 0 1.1em; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Header: wordmark over an inline small-caps bar ---------- */

.site-header {
  border-bottom: 1px solid var(--keyline);
  padding: 1.25rem var(--gutter) 0;
  position: relative;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg-heading);
}

.brand .site-logo { width: 2.75rem; height: 2.75rem; }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.site-nav {
  border-top: 2px solid var(--gold-rule);
}

.site-nav > ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.6rem 0 0.7rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
}

.site-nav a {
  font-family: var(--sans);
  font-variant-caps: all-small-caps;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--fg-body);
}

.site-nav a:hover { color: var(--gold-deep); text-decoration: underline; text-decoration-color: var(--gold-rule); }

/* Phone menu toggle */
.site-menu { display: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-light-default);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.menu-icon {
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-menu[open] > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  list-style: none;
  background: var(--bg-light-card);
  border-bottom: 2px solid var(--gold-rule);
}

.site-menu ul ul { list-style: none; padding-left: 1rem; margin: 0; }

.site-menu li a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--sans);
  text-decoration: none;
  border-bottom: 1px solid var(--keyline);
}

@media (max-width: 51.99rem) {
  .masthead { justify-content: space-between; }
  .site-nav { display: none; }
  .site-menu { display: block; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 26rem) {
  .brand .site-logo { width: 2.25rem; height: 2.25rem; }
  .wordmark { font-size: 1.15rem; }
}

/* ---------- Page frame and breadcrumbs ---------- */

.page-frame {
  flex: 1 0 auto;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold-rule); }

/* ---------- Shared reading prose ---------- */

.prose { max-width: var(--measure); }

.prose h2 {
  padding-top: 0.9rem;
  border-top: 1px solid var(--gold-rule);
}

.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }

.prose .accent-block {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-top: 2px solid var(--gold-rule);
  border-bottom: 2px solid var(--gold-rule);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

.prose .accent-block p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--keyline); vertical-align: top; }
.table-scroll th { font-family: var(--sans); font-weight: 600; border-bottom-color: var(--gold-rule); }

.photo-hero, .photo-inline { margin: 2rem 0; }
.photo-hero img, .photo-inline img { display: block; width: 100%; border: 1px solid var(--keyline); padding: 0.5rem; background: var(--bg-light-elevated); }

/* ---------- Home: handbook cover spread ---------- */

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--keyline);
  outline: 1px solid var(--gold-rule);
  outline-offset: -0.6rem;
}

.cover-title h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); }

.cover-lines { margin-top: 1.5rem; max-width: 30rem; }

.cover-lines .display-line {
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0 0 0.6rem;
}

.cover-body { margin-top: 1.5rem; max-width: 30rem; }
.error-page .cover { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.cover-plate { margin: 0; }

.arch-drawing, .article-sketch, .thanks-sketch { display: block; width: 100%; height: auto; }

.arch-outline { stroke: var(--ink); stroke-width: 2.5; }
.arch-bone { stroke: var(--keyline); stroke-width: 1.5; }
.arch-fascia { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 5; }
.arch-curve { stroke: var(--gold-rule); stroke-width: 1.5; }

.topic-strip { margin: clamp(2rem, 5vw, 3.5rem) 0; }

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.tiles li { grid-column: span 2; display: flex; }
.tiles li:nth-child(n + 4) { grid-column: span 3; }

.tile {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 7.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold-rule);
  box-shadow: inset 0 3px 0 var(--gold);
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.3;
  text-decoration: none;
}

.tile:hover { background: var(--gold-wash); text-decoration: underline; }

.tile-quiet { min-height: 4rem; align-items: center; box-shadow: none; }

.home-body { margin: 0 auto; }

@media (max-width: 47.99rem) {
  .cover { grid-template-columns: minmax(0, 1fr); }
  .cover-plate { order: -1; max-width: 26rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles li, .tiles li:nth-child(n + 4) { grid-column: auto; }
  .tile { min-height: 0; }
}

/* ---------- Topic hub: reference shelf ---------- */

.hub-head { margin: clamp(1.5rem, 4vw, 3rem) 0 1.5rem; max-width: 46rem; }

.hub-head h1 { padding-bottom: 1rem; border-bottom: 2px solid var(--gold-rule); }

.shelf {
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-top: 3px double var(--gold-rule);
}

.shelf-items ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
  counter-reset: shelf;
}

.shelf-items li {
  counter-increment: shelf;
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.1rem 1rem;
  background: var(--bg-light-elevated);
  border: 1px solid var(--keyline);
  border-top: 6px solid var(--gold);
  border-bottom: 2px solid var(--gold-rule);
}

.shelf-items li::before {
  content: counter(shelf);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  padding-bottom: 0.75rem;
  margin-bottom: auto;
}

.shelf-items a {
  display: block;
  padding-top: 0.9rem;
  border-top: 1px solid var(--keyline);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
}

.shelf-items a:hover { text-decoration: underline; }

@media (min-width: 64rem) {
  .hub {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .hub-head { grid-column: 1 / -1; }
  .shelf { margin-top: 0; }
  .shelf-items ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Article: long-read column ---------- */

.article { max-width: 46rem; margin: 0 auto; }

.article-head { margin: clamp(1.5rem, 4vw, 3rem) 0 2rem; }

.article-sketch { max-width: 9rem; margin-bottom: 1rem; }

.article-title h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }

.article-body { margin: 0 auto; }

.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.8;
  padding: 0.08em 0.1em 0 0;
  color: var(--gold);
}

@media (min-width: 64rem) {
  .article { display: grid; grid-template-columns: 9rem minmax(0, var(--measure)); column-gap: 2.5rem; max-width: 50rem; }
  .article-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; }
  .article-sketch { margin: 0; }
  .article-body { grid-column: 2; margin: 0; }
}

/* ---------- About: editorial masthead ---------- */

.about { max-width: var(--measure); margin: 0 auto; }

.about-masthead {
  margin: clamp(1.5rem, 4vw, 3rem) 0 2rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--gold-rule);
  border-bottom: 1px solid var(--gold-rule);
  text-align: center;
}

.about-body ul { list-style: none; padding: 0; }
.about-body li { padding: 0.75rem 0; margin: 0; border-bottom: 1px solid var(--keyline); }
.about-body li:first-child { border-top: 1px solid var(--keyline); }

/* ---------- Contact: letter beside the copy ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.contact-title { margin-bottom: 1.5rem; }

.letter {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--keyline);
  border-top: 3px solid var(--gold);
}

.letter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }

.field { display: block; margin-bottom: 1.4rem; }

.field-label { display: block; font-family: var(--sans); font-size: 0.95rem; margin-bottom: 0.35rem; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.1rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-light-default);
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 3px solid var(--gold);
  background: var(--gold-wash);
}

.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.field textarea { min-height: 9rem; resize: vertical; }

.letter-button {
  min-height: 2.75rem;
  padding: 0.6rem 1.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--brand-light-on-accent);
  background: var(--gold);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.letter-button:hover { background: var(--gold-deep); }
.letter-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 47.99rem) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .letter-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- Thank-you card ---------- */

.thanks { display: flex; justify-content: center; margin-top: clamp(2rem, 6vw, 4rem); }

.thanks-card {
  max-width: 34rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border: 1px solid var(--keyline);
  outline: 1px solid var(--gold-rule);
  outline-offset: -0.5rem;
}

.thanks-sketch { max-width: 10rem; margin: 0 auto 1.25rem; }
.thanks-note { margin: 1rem auto 0; font-style: italic; font-size: 1.15rem; }
.thanks-card .prose { margin: 1.25rem auto 0; text-align: left; }
.thanks-return { margin: 1.5rem 0 0; font-family: var(--sans); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--gold-rule);
  padding: 2rem 0;
}

.footer-inner { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.footer-name { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.25rem; }
.footer-line { margin: 0; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
