/* ==========================================================================
   The Red Unicorn — Etowah, NC
   Palette:  ink #1B1A17 · bottle #16332C · paper #F1EFE7 · chalk #FBF9F4
             crimson #B3132B · brass #A98A4B
   Type:     Bodoni Moda (display) · Karla (body)
   ========================================================================== */

:root {
  --ink: #1b1a17;
  --ink-soft: #55524a;
  --bottle: #16332c;
  --bottle-deep: #0e211d;
  --bottle-line: #2d4a42;
  --paper: #f1efe7;
  --chalk: #fbf9f4;
  --crimson: #9c1f1d;
  --crimson-deep: #7b1614;
  --brass: #a98a4b;
  --brass-light: #c9ae74;

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-deep); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.narrow { max-width: 46rem; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.35rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* rhythm for stacked question/answer or prose blocks */
p + h3, ul + h3, ol + h3 { margin-top: 1.9rem; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.eyebrow--light { color: var(--brass-light); }

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--crimson);
  border-radius: var(--radius);
  background: var(--crimson);
  color: var(--chalk);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); color: var(--chalk); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--crimson); }
.btn--ghost:hover { background: var(--crimson); color: var(--chalk); }

.btn--light { background: transparent; border-color: var(--brass-light); color: var(--chalk); }
.btn--light:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--bottle-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid rgba(27, 26, 23, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg, .brand img { width: 27px; height: auto; color: var(--crimson); display: block; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.32rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(27, 26, 23, 0.25);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font: 700 0.8rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.7rem);
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { border-bottom-color: var(--crimson); }
.nav .nav__cta {
  border: 1px solid var(--crimson);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  color: var(--crimson);
  font-weight: 700;
}
.nav .nav__cta:hover { background: var(--crimson); color: var(--chalk); border-bottom-color: var(--crimson); }

@media (max-width: 1010px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(27, 26, 23, 0.12);
    padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1.4rem;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(27, 26, 23, 0.08);
    font-size: 1.05rem;
  }
  .nav .nav__cta { margin-top: 0.9rem; text-align: center; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--bottle);
  color: var(--chalk);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% 12%, rgba(201, 174, 116, 0.14), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: var(--chalk); margin-bottom: 0.5em; }
.hero .lead { color: #d7dfd8; }
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass-light);
  margin: 0 0 1.4rem;
}
.plate {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  background: var(--chalk);
  padding: clamp(0.9rem, 1.8vw, 1.5rem);
  border: 1px solid rgba(169, 138, 75, 0.5);
  box-shadow: 0 16px 38px rgba(6, 20, 16, 0.28);
}
.plate img { display: block; width: 100%; height: auto; }
.section--bottle .plate { box-shadow: 0 16px 38px rgba(6, 20, 16, 0.34); }

.hero__mark {
  color: var(--paper);
  opacity: 0.96;
  justify-self: center;
  width: min(255px, 52vw);
}
.hero__mark svg { width: 100%; height: auto; display: block; }
.hero .btn-row { margin-top: 1.8rem; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; width: min(180px, 44vw); justify-self: start; }
  .plate { max-width: 340px; justify-self: start; margin-top: 2.2rem; }
}

/* page banner for interior pages */
.banner {
  background: var(--bottle);
  color: var(--chalk);
  padding-block: clamp(2.6rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.banner h1 { color: var(--chalk); }
.banner .lead { color: #d7dfd8; }
.banner__mark {
  position: absolute;
  right: -2%;
  bottom: -18%;
  width: 240px;
  color: #ffffff;
  opacity: 0.07;
  pointer-events: none;
}

/* ---------- sections ---------- */

.section { padding-block: var(--section-y); }
.section--chalk { background: var(--chalk); }
.section--bottle { background: var(--bottle); color: var(--chalk); }
.section--bottle h2, .section--bottle h3 { color: var(--chalk); }
.section--bottle p { color: #d7dfd8; }
.section--rule { border-top: 1px solid rgba(27, 26, 23, 0.1); }

.section__head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--brass);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  flex: 1;
}
.ornament svg { width: 16px; height: auto; color: var(--crimson); }

/* ---------- the three doors (signature element) ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.door {
  display: flex;
  flex-direction: column;
  background: var(--chalk);
  border: 1px solid rgba(27, 26, 23, 0.14);
  border-radius: 180px 180px var(--radius) var(--radius);
  padding: clamp(2.2rem, 3.4vw, 3rem) clamp(1.4rem, 2.2vw, 2rem) clamp(1.6rem, 2.4vw, 2.2rem);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.door:hover {
  transform: translateY(-5px);
  border-color: var(--crimson);
  box-shadow: 0 14px 34px rgba(22, 51, 44, 0.13);
  color: var(--ink);
}
.door__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
.door h3 { margin-bottom: 0.5rem; }
.door p { font-size: 0.98rem; color: var(--ink-soft); }
.door__more {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--crimson);
}
.door__more::after { content: " →"; }

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .door { border-radius: 120px 120px var(--radius) var(--radius); }
}

/* ---------- generic grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4, .grid-split { grid-template-columns: 1fr; }
}

.card {
  background: var(--chalk);
  border: 1px solid rgba(27, 26, 23, 0.13);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.98rem; color: var(--ink-soft); }
.section--chalk .card { background: var(--paper); }

/* numbered process — used only where order truly matters */
.steps { counter-reset: step; display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(27, 26, 23, 0.1);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--crimson);
}
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* checklists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.62rem; height: 0.62rem;
  background: var(--crimson);
  border-radius: 50%;
}
.section--bottle .ticks li { color: #d7dfd8; }
.section--bottle .ticks li::before { background: var(--brass-light); }

/* facts / at-a-glance rows */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(27, 26, 23, 0.1);
}
.facts dt, .facts .facts__k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.section--bottle .facts li { border-bottom-color: var(--bottle-line); }

/* quote block */
.quote {
  border-left: 2px solid var(--crimson);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* call-out band */
.band {
  background: var(--crimson);
  color: var(--chalk);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.band h2 { color: var(--chalk); margin-bottom: 0.4rem; }
.band p { color: #f7e3e6; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.band .btn {
  background: var(--chalk);
  border-color: var(--chalk);
  color: var(--crimson);
}
.band .btn:hover { background: var(--bottle-deep); border-color: var(--bottle-deep); color: var(--chalk); }

/* category list for the shop */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  border: 1px solid rgba(27, 26, 23, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  background: var(--chalk);
}
.section--bottle .tags li { border-color: var(--bottle-line); background: transparent; color: #d7dfd8; }

/* ---------- forms ---------- */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--chalk);
  border: 1px solid rgba(27, 26, 23, 0.28);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--crimson);
  outline-offset: 1px;
  border-color: var(--crimson);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: 0.88rem; color: var(--ink-soft); }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bottle-deep);
  color: #cbd5cd;
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem;
  font-size: 0.95rem;
}
.site-footer h2, .site-footer h3 { color: var(--chalk); font-size: 1.15rem; margin-bottom: 0.7rem; }
.site-footer a { color: #e7ded0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__brand svg { width: 44px; color: var(--brass); margin-bottom: .7rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--bottle-line);
  font-size: 0.83rem;
  color: #9db0a7;
}

/* ---------- Ruby: the hidden unicorn ---------- */

.ruby {
  background: none;
  border: 0;
  padding: 0.3rem;
  cursor: pointer;
  line-height: 0;
  color: #2f5147;
  transition: color 0.3s ease, transform 0.3s ease;
}
.ruby svg { width: 14px; height: auto; display: block; }
.ruby:hover, .ruby:focus-visible { color: var(--brass-light); transform: translateY(-2px) rotate(-3deg); }
.ruby-note {
  display: none;
  max-width: 30rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--bottle-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #e7ded0;
  font-size: 0.92rem;
}
.ruby-note.is-visible { display: block; }

/* ---------- motion ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- utilities ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--crimson);
  color: var(--chalk);
  padding: 0.7rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
