/* ==========================================================================
   Blackthorn Distilling Co. — vintage Americana whiskey-label aesthetic
   Palette: charred black / deep oak brown / warm amber / aged cream
   ========================================================================== */

:root {
  --char: #0d0a07;        /* charred black */
  --oak: #1a120b;         /* deep oak brown */
  --oak-light: #261a10;   /* raised panel brown */
  --amber: #d99a3d;       /* warm amber accent */
  --amber-bright: #e8b35f;
  --cream: #ece1cc;       /* aged-paper body text — AA on oak/char */
  --cream-dim: #c9bba0;   /* secondary text — AA on oak/char */
  --line: rgba(217, 154, 61, 0.45);
  --font-display: "Rye", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--char);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  /* Paper-grain / aged-wood texture: layered low-opacity gradients */
  background-image:
    radial-gradient(rgba(217, 154, 61, 0.035) 1px, transparent 1.5px),
    radial-gradient(rgba(236, 225, 204, 0.022) 1px, transparent 1.5px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 245, 225, 0.012) 0px,
      rgba(255, 245, 225, 0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, #0d0a07 0%, #140e08 45%, #0d0a07 100%);
  background-size: 7px 7px, 11px 11px, 100% 100%, 100% 100%;
  background-position: 0 0, 3px 5px, 0 0, 0 0;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--amber);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--amber-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

strong {
  color: var(--cream);
}

address {
  font-style: normal;
  margin: 0 0 1em;
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--char);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Ornamental frame (label-style double border + corners) ---------- */

.ornament-frame {
  position: relative;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 4px var(--char),
    inset 0 0 0 5px rgba(217, 154, 61, 0.3);
  padding: 2rem;
  background:
    radial-gradient(rgba(217, 154, 61, 0.03) 1px, transparent 1.5px),
    linear-gradient(180deg, var(--oak-light), var(--oak));
  background-size: 6px 6px, 100% 100%;
}

.ornament-frame::before,
.ornament-frame::after {
  content: "\2756"; /* black diamond minus white X — corner ornament */
  position: absolute;
  color: var(--amber);
  font-size: 0.85rem;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.ornament-frame::before {
  top: 0.45rem;
  left: 0.55rem;
}

.ornament-frame::after {
  bottom: 0.45rem;
  right: 0.55rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 2px solid var(--amber);
  cursor: pointer;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn--primary {
  background: var(--amber);
  color: var(--char);
  box-shadow: 0 3px 0 #8a5f22;
}

.btn--primary:hover {
  background: var(--amber-bright);
  color: var(--char);
}

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

.btn--ghost:hover {
  background: rgba(217, 154, 61, 0.14);
  color: var(--cream);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 10, 7, 0.96);
  border-bottom: 1px solid var(--line);
}

.topline {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 14px,
    var(--char) 14px 18px
  );
}

.site-header__inner {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--amber);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--cream-dim);
}

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

.nav-list a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-list a:hover {
  color: var(--amber-bright);
  border-bottom-color: var(--amber);
}

/* Nav toggle: never rendered at desktop widths — display:none here is
   unconditional, and only the small-screen media query (plus html.js,
   set by script.js) ever shows it. No-JS visitors keep the inline nav. */
.nav-toggle {
  display: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 1.1rem;
  cursor: pointer;
}

.nav-toggle:hover {
  color: var(--amber-bright);
  border-color: var(--amber);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--char);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
  display: flex;
  justify-content: center;
}

.hero__frame {
  max-width: 46rem;
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem);
}

.hero__est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
}

.rule {
  display: inline-block;
  width: 3.5rem;
  height: 1px;
  background: var(--line);
}

.hero__mark {
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.hero__tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream);
  max-width: 36rem;
  margin: 0 auto 1.8rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero__fact {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.section--band {
  max-width: none;
  background:
    radial-gradient(rgba(236, 225, 204, 0.02) 1px, transparent 1.5px),
    linear-gradient(180deg, var(--oak) 0%, #150e08 100%);
  background-size: 9px 9px, 100% 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--band > * {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__lede {
  max-width: 44rem;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--cream-dim);
}

.section__note {
  text-align: center;
  font-style: italic;
  color: var(--cream-dim);
  margin-top: 2.25rem;
  font-size: 0.95rem;
}

.center {
  text-align: center;
  margin-top: 2.25rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: var(--line);
}

.divider__diamond {
  width: 9px;
  height: 9px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ---------- Expression cards (whiskey-label composition) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.75rem;
}

.label-card {
  border: 1px solid var(--line);
  padding: 0.6rem;
  background: linear-gradient(180deg, var(--oak-light), var(--oak));
}

.label-card__inner {
  height: 100%;
  border: 1px solid rgba(217, 154, 61, 0.35);
  outline: 3px double rgba(217, 154, 61, 0.3);
  outline-offset: -8px;
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(rgba(217, 154, 61, 0.03) 1px, transparent 1.5px),
    radial-gradient(ellipse at 50% 0%, rgba(217, 154, 61, 0.08), transparent 65%);
  background-size: 6px 6px, 100% 100%;
  display: flex;
  flex-direction: column;
}

.label-card__no {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.9rem;
}

.label-card__proof {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-bright);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
  margin: 0 auto 1.2rem;
  max-width: 16rem;
}

.label-card__notes {
  color: var(--cream-dim);
  font-size: 0.98rem;
  flex-grow: 1;
}

.label-card__price {
  margin: 1.2rem 0 0;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
}

.price-unit {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.label-card--reserve {
  background: linear-gradient(180deg, #2e2013, var(--oak));
}

/* ---------- Tours ---------- */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.tour-fact h3 {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.tour-fact p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

/* ---------- Heritage ---------- */

.heritage {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.heritage__mark {
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.heritage__copy {
  text-align: left;
}

.heritage__copy p {
  margin-bottom: 1.3em;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  color: var(--amber);
  padding: 0.08em 0.12em 0 0;
}

/* ---------- FAQ ---------- */

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

.faq__item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: linear-gradient(180deg, var(--oak-light), var(--oak));
  padding: 1.4rem 1.6rem 0.6rem;
  margin-bottom: 1.1rem;
}

.faq__item h3 {
  text-align: left;
  font-size: 1.08rem;
  margin-bottom: 0.5em;
}

.faq__item p {
  color: var(--cream-dim);
}

/* ---------- Visit ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.visit-card h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}

.visit-card p,
.visit-card address {
  color: var(--cream-dim);
  font-size: 0.98rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--oak) 0%, var(--char) 100%);
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  color: var(--amber);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0.9rem 0 0.6rem;
}

.site-footer__legal {
  font-size: 0.85rem;
  color: var(--cream-dim);
  margin: 0.25rem 0;
}

/* ---------- Age gate ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(rgba(217, 154, 61, 0.03) 1px, transparent 1.5px),
    rgba(13, 10, 7, 0.96);
  background-size: 7px 7px, 100% 100%;
}

.age-gate[hidden] {
  display: none;
}

.age-gate__panel {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  color: var(--amber);
  padding: 2.5rem 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  .age-gate__panel {
    animation: gate-in 0.35s ease-out both;
  }

  @keyframes gate-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.age-gate__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0.9rem 0 0.4rem;
}

.age-gate__panel h2 {
  margin-bottom: 0.4em;
}

.age-gate__copy {
  color: var(--cream-dim);
  margin-bottom: 1.6rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.age-gate__denied {
  margin-top: 1.4rem;
  color: var(--cream);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 40rem) {
  .site-header__inner {
    justify-content: center;
  }

  .nav-list {
    gap: 0.9rem 1.1rem;
    justify-content: center;
  }

  /* With JS the nav becomes a dropdown panel that unfurls beneath the
     header like aged paper. Without JS the wrapped link list above stays
     visible and no button appears. */
  html.js .site-header__inner {
    justify-content: space-between;
  }

  html.js .nav-toggle {
    display: inline-block;
  }

  html.js .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.1rem;
    background:
      radial-gradient(rgba(217, 154, 61, 0.05) 1px, transparent 1.5px),
      linear-gradient(180deg, var(--oak-light), var(--oak));
    background-size: 9px 9px, 100% 100%;
    border-bottom: 4px double var(--amber);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }

  /* Bottom border ornament: a small diamond closing the panel. */
  html.js .nav-list::after {
    content: "\2756"; /* ❖ */
    align-self: center;
    color: var(--amber);
    font-size: 0.8rem;
    line-height: 1;
    margin-top: 0.8rem;
  }

  html.js .nav-list.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
  }

  html.js .nav-list li {
    border-top: 1px solid rgba(217, 154, 61, 0.2);
    opacity: 0;
  }

  html.js .nav-list li:first-child {
    border-top: 0;
  }

  html.js .nav-list.is-open li {
    opacity: 1;
  }

  html.js .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 0;
  }

  html.js .nav-list a:active {
    background: var(--amber);
    color: var(--char);
  }

  /* The unfurl: a gentle ease-out drop with links fading in behind it.
     Reduced motion gets an instant open/close, no transforms. */
  @media (prefers-reduced-motion: no-preference) {
    html.js .nav-list {
      transform: translateY(-0.4rem);
      transition: clip-path 0.4s ease-out, transform 0.4s ease-out,
        visibility 0s linear 0.4s;
    }

    html.js .nav-list.is-open {
      transform: none;
      transition: clip-path 0.4s ease-out, transform 0.4s ease-out,
        visibility 0s;
    }

    html.js .nav-list li {
      transition: opacity 0.3s ease-out;
    }

    html.js .nav-list.is-open li:nth-child(1) { transition-delay: 0.1s; }
    html.js .nav-list.is-open li:nth-child(2) { transition-delay: 0.16s; }
    html.js .nav-list.is-open li:nth-child(3) { transition-delay: 0.22s; }
    html.js .nav-list.is-open li:nth-child(4) { transition-delay: 0.28s; }
    html.js .nav-list.is-open li:nth-child(5) { transition-delay: 0.34s; }
  }
}

/* Social links (fictional .example profiles) */
.social-links { display: flex; gap: 1.2rem; list-style: none; justify-content: center; padding: 0 1.5rem; margin: 1.5rem auto 0; }
.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { width: 1.3rem; height: 1.3rem; }


/* Anchor targets clear the sticky header instead of sliding under it */
[id] {
  scroll-margin-top: 81px;
}

/* Wax-seal tour badge */
.fab-seal {
  position: fixed;
  right: 1rem;
  bottom: 1.1rem;
  z-index: 65;
  display: none;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, #8c2f2a 0 18%, #6e1f1c 55%, #571512 100%);
  box-shadow:
    0 0 0 3px #571512,
    0 6px 14px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.fab-seal span {
  font-family: var(--font-display, serif);
  color: #e6d3a3;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

@media (max-width: 720px) {
  .fab-seal { display: inline-flex; }
}
