/* Hearthline Field Guide — warm, tactile editorial system */
:root {
  color-scheme: light;
  --ink: #2C1810;
  --paper: #FDF8F0;
  --clay: #C86D51;
  --sage: #5F7464;
  --muted: #75665C;
  --line: #DED3C6;
  --white: #FFFFFF;
  --serif: Georgia, "Palatino Linotype", serif;
  --sans: "Gill Sans", "Segoe UI", sans-serif;
  --mono: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--clay);
}

button {
  font: inherit;
}

.site-header {
  width: min(100% - 3rem, 1320px);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-lockup img {
  width: 58px;
  height: 58px;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.23rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-caption {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  align-items: center;
}

.primary-nav a,
.footer-nav a {
  font-size: 0.88rem;
  text-decoration: none;
}

main {
  width: min(100% - 3rem, 1320px);
  margin: 0 auto;
}

.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 2rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 950px;
  margin: 0 auto 1.25rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.lede {
  max-width: 720px;
  margin: 0 auto 1.7rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.button-link,
.action-button,
.filter-button,
.choice-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button-link:hover,
.action-button:hover,
.filter-button:hover,
.choice-button:hover {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--white);
}

.button-link--solid {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero-figure {
  margin: 2.7rem 0 0;
  text-align: left;
}

.hero-figure img,
.story-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  object-fit: cover;
}

figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.section-block {
  padding: clamp(3.6rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-intro p,
.story-copy p,
.info-panel p {
  color: var(--muted);
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin: 3.5rem 0;
}

.story-row:nth-of-type(even) .story-figure {
  order: 2;
}

.story-copy {
  max-width: 560px;
}

.story-copy p {
  margin: 0 0 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0;
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.55);
}

.filter-controls,
.choice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.3rem 0 1.7rem;
}

.filter-button[aria-pressed="true"],
.choice-button[aria-pressed="true"] {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--white);
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.explorer-card {
  min-height: 200px;
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--paper);
}

.explorer-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-kicker {
  margin: 0 0 0.55rem;
  color: var(--clay);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 2.5rem;
  align-items: start;
}

.choice-group {
  margin: 1.4rem 0;
}

.choice-group h3 {
  font-size: 1.3rem;
}

.selection-summary {
  position: sticky;
  top: 1.5rem;
  border-left: 3px solid var(--clay);
  padding: 1.4rem 1.5rem;
  background: #F5EDE1;
}

.selection-summary p {
  color: var(--muted);
}

#selection-output {
  min-height: 6.5rem;
  color: var(--ink);
  white-space: pre-line;
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.pull-quote {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem 0 1rem 2rem;
  border-left: 3px solid var(--clay);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.7vw, 3rem);
  line-height: 1.25;
}

.pull-quote cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb {
  padding: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-heading {
  max-width: 850px;
  padding: 3.5rem 0 2rem;
}

.page-heading h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.info-panel {
  max-width: 880px;
  padding: 1.5rem 0 4rem;
}

.info-panel section {
  margin: 2rem 0;
}

.info-panel ul {
  padding-left: 1.3rem;
}

.spec-ledger {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  border-top: 1px solid var(--line);
}

.spec-ledger dt,
.spec-ledger dd {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-ledger dt {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.spec-ledger dd {
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem max(1.5rem, calc((100% - 1320px) / 2));
  background: var(--ink);
  color: var(--paper);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}

.site-footer p {
  max-width: 480px;
  color: #E5D9CC;
}

.footer-nav a:hover {
  color: #F2B7A4;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #70584B;
  color: #D1C2B4;
  font-size: 0.85rem;
}

.consent-card {
  position: fixed;
  z-index: 5;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(410px, calc(100% - 2.5rem));
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(44, 24, 16, 0.18);
}

.consent-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.consent-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .site-header,
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav {
    gap: 0.8rem 1rem;
  }

  .story-row,
  .configurator {
    grid-template-columns: 1fr;
  }

  .story-row:nth-of-type(even) .story-figure {
    order: initial;
  }

  .explorer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-summary {
    position: static;
  }
}

@media (max-width: 540px) {
  .site-header,
  main {
    width: min(100% - 2rem, 1320px);
  }

  .explorer-grid {
    grid-template-columns: 1fr;
  }

  .spec-ledger {
    grid-template-columns: 1fr;
  }

  .spec-ledger dt {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  .spec-ledger dd {
    padding-top: 0.2rem;
  }
}
