:root {
  --espresso: #2C1810;
  --cream: #FDF8F0;
  --terracotta: #C86D51;
  --sage: #5F7464;
  --ink-soft: #4a3528;
  --card-shadow: 0 14px 34px rgba(44, 24, 16, 0.14);
  --serif: Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "Gill Sans", "Segoe UI", Verdana, sans-serif;
  --mono: "Courier New", monospace;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--espresso);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.22rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta);
}

a:hover,
a:focus-visible {
  color: var(--sage);
}

.visually-hidden-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--espresso);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 50;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--terracotta);
  position: relative;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--espresso);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.breadcrumb-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem 0;
  font-size: 0.95rem;
}

.breadcrumb-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb-nav li + li::before {
  content: "\203A";
  margin-right: 0.4rem;
  color: var(--sage);
}

main {
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.hero-banner {
  position: relative;
  background: var(--espresso);
  color: var(--cream);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.88;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(44, 24, 16, 0.82) 0%, rgba(44, 24, 16, 0.45) 55%, rgba(44, 24, 16, 0.05) 100%);
}

.hero-copy .wrap {
  width: 100%;
}

.hero-copy h1,
.hero-copy p {
  color: var(--cream);
  max-width: 34ch;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(253, 248, 240, 0.12);
  border: 1px solid var(--terracotta);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--terracotta);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-solid {
  background: var(--terracotta);
  color: var(--cream);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--cream);
  color: var(--espresso);
}

.overlap-deck {
  position: relative;
  margin-top: -4.5rem;
  padding-bottom: 1rem;
  z-index: 3;
}

.overlap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.overlap-card {
  background: #fff;
  border-top: 5px solid var(--terracotta);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 1.4rem 1.2rem;
}

.overlap-card:nth-child(2) {
  border-top-color: var(--sage);
}

.overlap-card:nth-child(3) {
  border-top-color: var(--espresso);
}

.spec-code {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--sage);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.section-pad {
  padding: 3.5rem 0;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.4rem;
}

.spotlight {
  background: var(--espresso);
  color: var(--cream);
}

.spotlight h2,
.spotlight h3 {
  color: var(--cream);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.spotlight figure {
  margin: 0;
}

.spotlight figcaption {
  font-size: 0.92rem;
  color: #d9c9b8;
  padding-top: 0.6rem;
  font-style: italic;
}

.spotlight img {
  box-shadow: var(--card-shadow);
}

.ledger-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.ledger-list li {
  border-top: 1px solid rgba(253, 248, 240, 0.25);
  padding: 0.7rem 0;
  display: flex;
  gap: 0.9rem;
}

.ledger-list .spec-code {
  color: var(--terracotta);
  margin: 0;
  min-width: 7.5rem;
}

.square-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.square-grid figure {
  margin: 0;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.square-grid figcaption {
  padding: 1rem 1.2rem 1.2rem;
}

.square-grid figcaption strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
}

.square-grid figcaption span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.explorer-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.2rem;
  align-items: start;
}

.explorer-side figure {
  margin: 0;
}

.explorer-side figcaption {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  padding-top: 0.6rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.6rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  background: #fff;
  color: var(--espresso);
  border: 2px solid var(--sage);
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  border-radius: 999px;
}

.filter-btn[aria-pressed="true"] {
  background: var(--sage);
  color: var(--cream);
}

.candy-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}

.candy-card {
  background: #fff;
  border: 1px solid rgba(44, 24, 16, 0.12);
  border-left: 4px solid var(--terracotta);
  padding: 1.1rem 1.1rem 0.9rem;
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.07);
}

.candy-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.family-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--sage);
  border: 1px solid var(--sage);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.configurator {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-top: 5px solid var(--sage);
}

.config-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.2rem;
  padding: 2.4rem;
  align-items: start;
}

.config-step {
  margin-bottom: 1.6rem;
}

.config-step h3 {
  margin-bottom: 0.6rem;
}

.step-number {
  display: inline-block;
  font-family: var(--mono);
  background: var(--espresso);
  color: var(--cream);
  width: 1.7rem;
  height: 1.7rem;
  text-align: center;
  line-height: 1.7rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.option-btn {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--cream);
  color: var(--espresso);
  border: 2px solid var(--terracotta);
  padding: 0.45rem 1rem;
  cursor: pointer;
}

.option-btn[aria-pressed="true"] {
  background: var(--terracotta);
  color: var(--cream);
}

.summary-panel {
  background: var(--cream);
  border: 2px dashed var(--sage);
  padding: 1.4rem;
}

.summary-panel h3 {
  margin-top: 0;
}

#selection-summary {
  font-family: var(--mono);
  font-size: 0.95rem;
  white-space: pre-line;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

#copy-status {
  font-weight: 700;
  color: var(--sage);
  margin-left: 0.7rem;
}

.config-photo {
  margin: 0 0 1.4rem;
}

.config-photo img {
  box-shadow: 0 8px 20px rgba(44, 24, 16, 0.18);
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(44, 24, 16, 0.12);
  margin-bottom: 0.8rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--espresso);
  background: transparent;
  border: 0;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  color: var(--terracotta);
  font-size: 1.3rem;
}

.faq-question[aria-expanded="true"]::after {
  content: "\2013";
}

.faq-answer {
  padding: 0 1.2rem 1rem;
  color: var(--ink-soft);
}

.page-intro {
  max-width: 70ch;
}

.legal-body {
  max-width: 76ch;
}

.legal-body h2 {
  margin-top: 2.2rem;
}

.legal-body ul {
  padding-left: 1.3rem;
}

.meta-line {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--sage);
  letter-spacing: 0.06em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: #fff;
  border-top: 4px solid var(--terracotta);
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
}

.contact-card address {
  font-style: normal;
  line-height: 1.7;
}

.standards-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.07);
}

.standards-table th,
.standards-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.12);
  vertical-align: top;
}

.standards-table th {
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.standards-table td:first-child {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--sage);
  white-space: nowrap;
}

.site-footer {
  background: var(--espresso);
  color: var(--cream);
  margin-top: 3.5rem;
  border-top: 5px solid var(--terracotta);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding: 2.6rem 0 1.6rem;
}

.site-footer h2 {
  color: var(--cream);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.site-footer a {
  color: #e8c9ab;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--terracotta);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 248, 240, 0.2);
  padding: 1rem 0 1.4rem;
  font-size: 0.9rem;
  color: #d9c9b8;
}

.consent-card {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--sage);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.3rem;
  z-index: 40;
}

.consent-card p {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 860px) {
  .spotlight-grid,
  .explorer-layout,
  .config-grid {
    grid-template-columns: 1fr;
  }

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

  .overlap-deck {
    margin-top: 1.5rem;
  }

  .hero-copy {
    position: static;
    background: var(--espresso);
    padding: 1.6rem 0;
  }
}
