:root {
  --bg: #faf6ed;
  --surface: #fffcf6;
  --line: #d8c9b6;
  --text: #322826;
  --muted: #60564e;
  --gold: #785731;
  --accent: #893f32;
  --wash: #f1e8da;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--hl-sans,system-ui);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 3;
}

.skip:focus { top: 0.75rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(77rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.family-strip {
  background: #413232;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff5e3;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.family-strip .wrap { min-height: 2.5rem; display: flex; align-items: center; }

.family-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.compass { width: 1.15rem; height: 1.15rem; color: #e6bc80; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(250, 246, 237, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.2rem;
}

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; }
.lighthouse { display: block; flex: none; width: 2.4rem; height: 2.4rem; border-radius: .35rem; }
.recovery-header { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wordmark {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
}

nav { display: flex; align-items: center; gap: 1.25rem; }

nav a { color: var(--text); text-decoration: none; }

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf3;
  gap: 0.75rem;
  font-weight: 435;
}

.text-link { color: var(--accent); text-decoration: none; }

.hero { padding: clamp(2.4rem, 5.4vw, 5.75rem) 0 clamp(2.4rem, 4vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--hl-display,Georgia);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(3rem, 5.8vw, 5.6rem); max-width: 16ch; }

h1 em, h2 em {
  font-family: var(--hl-display,Georgia);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lead {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero .lead {
  font: 400 clamp(1.2rem, 1.65vw, 1.55rem)/1.43 var(--hl-display,Georgia);
  max-width: 45ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.hero-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.star-guide { margin: 0; }

.star-guide svg { display: block; width: min(100%, 28rem); height: auto; margin-inline: auto; }

.star-guide figcaption {
  margin-top: 0.4rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }

.section.alt { background: var(--wash); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.cards article { background: var(--surface); padding: 1.6rem; }

.index {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.cards h2 { font-size: 1.7rem; }

.cards p:last-child { margin: 0.8rem 0 0; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 28rem);
  gap: 3rem;
  align-items: start;
}

.contact-grid h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 12ch; }

form { display: grid; gap: 0.75rem; }

label { font-weight: 600; }

input, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea { min-height: 8rem; }

[role="status"] { margin: 0; color: var(--accent); font-weight: 600; }

footer {
  padding: 1.6rem 0 2.2rem;
  color: #f0e6d9;
  font-size: 0.95rem;
  background: #413232;
}

@media (max-width: 800px) {
  .hero { padding-top: 2.5rem; }
  .hero-grid, .cards, .contact-grid { grid-template-columns: 1fr; }
  h1 { max-width: 14ch; }
  .wordmark { letter-spacing: 0.1em; font-size: 1.05rem; }
}

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

/* Constellation build 2026-11-10: beats, story, statements, product, status, footer nav. */

nav a[aria-current="page"] { color: var(--text); }

.star-guide-link { margin: 0.6rem 0 0; text-align: center; font-size: 0.95rem; }

.section h2 { font-size: clamp(2rem, 4vw, 3rem); }

.section .kicker + h2 { margin-bottom: 1.6rem; }

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.beats li { background: var(--surface); padding: 1.6rem; }

.beats h3, .product-sections h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.beats p, .product-sections p { margin: 0.8rem 0 0; color: var(--muted); }

.status-note { color: var(--gold) !important; font-size: 0.9rem; letter-spacing: 0.04em; }

.story-grid, .today-grid, .return-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.story-grid h2, .today-grid h2, .return-grid h2 { max-width: 14ch; }

.story-route {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-copy p { margin: 0 0 1.1rem; color: var(--muted); }

.story-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.4rem; }

.statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.statements article { background: var(--surface); padding: 2rem 1.8rem; }

.statement {
  margin: 0;
  font-family: var(--hl-display,Georgia);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--text);
}

.section-intro { max-width: 46rem; margin: 1.1rem 0 1.8rem; color: var(--muted); }
.product-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.product-sections article { background: var(--surface); padding: 1.5rem; }

.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }

.today-list li {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--gold);
  background: var(--surface);
  color: var(--muted);
}

.today-list strong { color: var(--text); font-weight: 600; }

.today-list a { color: var(--accent); }

.return-grid p { margin: 0 0 1.1rem; color: var(--muted); }

.family-close h2 { max-width: 22ch; }

.family-close p { margin: 1.4rem 0 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }

.footer-nav a { color: #fff5e3; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.footer-line { margin: 0; }

@media (max-width: 1000px) {
  .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 0.55rem 0; gap: 0.4rem 0.65rem; }
  nav { flex-wrap: wrap; gap: 0.6rem 1rem; }
  nav a { font-size: 0.95rem; }
  .beats, .statements, .story-grid, .today-grid, .return-grid { grid-template-columns: 1fr; }
  .product-sections { grid-template-columns: 1fr; }
}

/* The photograph and the optional star guide use the same native-pixel crop. */
.study { position: relative; margin: 0; width: min(100%, 32rem); justify-self: end; }
.study-sky { position: relative; overflow: hidden; aspect-ratio: 1; background: #101318; border-radius: 4px; }
.sky-photo, .study-guide { display: block; width: 100%; height: auto; }
.study-guide { position: absolute; inset: 0; pointer-events: none; }
.guide-switch { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.guide-switch:not(:checked) ~ .study-sky .study-guide { visibility: hidden; }
.study figcaption { padding: .6rem 0 .2rem; color: var(--muted); }
.study-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.study-heading label { flex-shrink: 0; }
.study-heading strong { font-family: var(--hl-display,Georgia); font-size: 1.55rem; font-weight: 500; color: var(--text); }
.study-heading label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; font-size: .87rem; }
.study-heading label::before { content: ""; width: .8rem; height: .8rem; display: block; border: 1px solid currentColor; border-radius: 2px; }
.guide-switch:checked ~ figcaption label::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--paper, #faf6ed); }
.guide-switch:focus-visible ~ figcaption label { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-credit, .photo-source { font-size: .82rem; line-height: 1.6; margin: .15rem 0; overflow-wrap: anywhere; }
.photo-credit a, .photo-source a { color: inherit; text-underline-offset: .17em; }
.photo-source { color: var(--accent); }
@media (max-width: 800px) { .study { justify-self: start; } }

/* Navigation stays usable as plain links until the mobile control is ready. */
.header-inner { position: relative; }
.header-inner .brand { margin-inline-end: auto; }
#primary-menu a, .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 0.45rem; }
#primary-menu a:hover, .text-link:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
.staff-entry { white-space: nowrap; border-color: #a48a74; color: var(--text); }
.staff-entry:hover, .menu-toggle:hover { background: var(--wash); }
.button.primary:hover { background: #733329; }
.menu-toggle { display: none; }
[hidden] { display: none !important; }
#contact .button { margin-top: 1.25rem; }
.returning-staff { color: var(--muted); }
.returning-staff a { color: var(--accent); }
main section[id], #sign-in { scroll-margin-top: 6rem; }
:where(.family-strip, footer) a:focus-visible { outline-color: #f2d298; }

@media (max-width: 800px) {
  .header-inner { justify-content: start; }
  .header-inner .brand { min-width: 0; }
  .header-inner .wordmark { white-space: nowrap; }
  .staff-entry, .menu-toggle { padding: 0.42rem 0.68rem; font-size: 0.92rem; }
  .menu-toggle { display: inline-flex; }
  #primary-menu { order: 3; flex-basis: 100%; }
  .site-header:has(.menu-toggle[hidden]) { position: static; }
  .site-header[data-menu-ready] #primary-menu {
    position: absolute; inset: calc(100% + 1px) 0 auto; z-index: 1;
    display: none; padding: 0.5rem 0.85rem; border: 1px solid var(--line);
    border-radius: 0 0 0.8rem 0.8rem; background: var(--surface);
    box-shadow: 0 12px 30px rgba(59, 37, 28, 0.15);
  }
  .site-header[data-menu-ready] .menu-toggle[aria-expanded="true"] + #primary-menu { display: grid; gap: 0; }
  .hero-grid { gap: 2rem; }
  main section[id], #sign-in { scroll-margin-top: 4.6rem; }
}

@media (max-width: 430px) {
  .header-inner { width: calc(100% - 1.25rem); gap: 0.35rem; }
  .brand { gap: .25rem; }
  .lighthouse { width: 1.6rem; height: 1.6rem; }
  .header-inner .wordmark { font-size: 0.95rem; letter-spacing: 0.08em; }
  .staff-entry, .menu-toggle { font-size: 0.875rem; padding-inline: 0.52rem; }
}

.property-example { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.example-intro > p:last-child { max-width: 41ch; color: var(--muted); }
.example-intro .lead { font-family: var(--hl-display,Georgia); font-size: clamp(1.35rem, 2vw, 1.7rem); color: var(--text); }
.sample-file { border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); padding-inline: clamp(1rem, 3vw, 2rem); }
.file-header, .sample-file summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.file-header { flex-wrap: wrap; padding-block: 1.25rem; }
.file-header h3 { font: 500 1.45rem/1.2 var(--hl-display,Georgia); margin: 0; }
.file-header span, .sample-file summary span { font-size: .86rem; color: var(--muted); }
.sample-file details { border-top: 1px solid var(--line); }
.sample-file summary { cursor: pointer; padding: .8rem .1rem; list-style: none; font-weight: 600; min-height: 48px; }
.sample-file summary::-webkit-details-marker { display: none; }
.sample-file summary span { margin-left: auto; font-weight: 400; }
.sample-file summary::after { content: ""; width: .45rem; height: .45rem; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sample-file details[open] summary::after { transform: rotate(225deg); }
.sample-file summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sample-file dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.1rem; margin: .15rem 0 1.2rem; line-height: 1.5; }
.sample-file dt { color: var(--muted); } .sample-file dd { margin: 0; }
.file-foot { border-top: 1px solid var(--line); margin: 0; padding: 1rem 0; color: var(--muted); font-size: .94rem; }
.role-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.role-list article { border-top: 1px solid var(--line); padding-top: 1rem; }
.role-list h3 { font: 500 1.6rem/1.2 var(--hl-display,Georgia); margin: 0; }
.role-list p { color: var(--muted); margin: .65rem 0 0; }
@media (max-width: 800px) {
  .property-example, .role-list { grid-template-columns: 1fr; gap: 1.25rem; }
  .sample-file dl { grid-template-columns: 1fr; gap: .1rem; }
  .sample-file dd + dt { margin-top: .5rem; }
}

@media (max-width: 800px) {
  .hero-grid, .story-grid, .today-grid, .contact-grid, .property-example, .role-list, .statements { grid-template-columns: minmax(0, 1fr); }
  main { overflow-wrap: anywhere; }
}

.trade-examples { margin-block: 1.8rem; }

/* The public mark pairs Harbor’s existing lighthouse with its editorial name. */
.brand .wordmark{font-family:var(--hl-display,Georgia,serif);font-size:clamp(1.45rem,2.3vw,2rem);text-transform:none;letter-spacing:-.048em;font-weight:500}
.brand .wordmark small{font:500 .61rem/1.1 var(--hl-sans,system-ui);letter-spacing:.14em;margin-top:.23rem}
