/*
  JUNGLA™ styles
  Palette, type, and layout. Copy lives in index.html.
  Mobile first. Sections follow the page order.
*/

/* ---------- Fonts (SIL OFL, self-hosted, Latin) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07140f;
  --bg-raise: #0c2118;
  --cream: #f4efe6;
  --muted: #c9c0b0;
  --gold: #e4c98a;
  --gold-deep: #c6a15a;
  --gold-bright: #f6e7b8;
  --line: rgba(228, 201, 138, 0.28);
  --line-strong: rgba(228, 201, 138, 0.62);
  --serif: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  --header: 4.25rem;
  --wrap: 68rem;
}

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

html {
  background: var(--bg);
  color: var(--cream);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(36, 92, 58, 0.38), transparent 58%),
    radial-gradient(ellipse 40% 36% at 100% 80%, rgba(16, 52, 34, 0.55), transparent 70%),
    radial-gradient(ellipse 36% 40% at 0% 70%, rgba(14, 46, 30, 0.5), transparent 72%),
    var(--bg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

html:not(.age-ok),
html:not(.age-ok) body {
  overflow: hidden;
  height: 100%;
}

body {
  overflow-x: hidden;
}

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

h1, h2, h3, p, dl, dd, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-bright);
}

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

::selection {
  background: var(--gold);
  color: #1a1408;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--gold);
  color: #1a1408;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
}

.skip:focus {
  transform: none;
}

html:not(.age-ok) .skip {
  display: none;
}

sup.tm {
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0;
  position: relative;
  top: -0.85em;
  margin-left: 0.18em;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Age gate ---------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  overflow: auto;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(32, 84, 52, 0.42), transparent 62%),
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
    #07140f;
}

html.age-ok #gate {
  display: none;
}

.foliage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.foliage-gate {
  position: fixed;
}

.deco {
  position: absolute;
  height: auto;
}

.deco-tl {
  width: min(250px, 62vw);
  left: -70px;
  top: -50px;
  transform: rotate(-16deg);
}

.deco-tr {
  width: min(280px, 68vw);
  right: -90px;
  top: -30px;
  transform: rotate(14deg) scaleX(-1);
}

.deco-bl {
  width: min(170px, 42vw);
  left: -36px;
  bottom: -30px;
  transform: rotate(8deg);
}

.deco-br {
  width: min(190px, 46vw);
  right: -46px;
  bottom: -16px;
  transform: rotate(-10deg) scaleX(-1);
}

.deco-bc {
  width: min(220px, 54vw);
  left: 50%;
  bottom: -110px;
  transform: translateX(-50%);
  opacity: 0.8;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(28.5rem, 100%);
  margin: auto;
  padding: 1.55rem 1.55rem 1.45rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 36, 26, 0.96), rgba(7, 18, 13, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(246, 231, 184, 0.14);
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(228, 201, 138, 0.28);
  pointer-events: none;
}

.gate-logo picture,
.hero-logo picture,
.footer-logo picture,
.brand picture {
  display: block;
}

.gate-logo img,
.hero-logo img,
.footer-logo img,
.brand img {
  display: block;
  height: auto;
}

.gate-logo img {
  width: min(15.25rem, 66vw);
  margin: 0 auto;
}

.diamond {
  width: 3.7rem;
  height: 3.7rem;
  margin: 0.55rem auto 0.15rem;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}

.diamond span {
  transform: rotate(-45deg);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.gate-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 5.4vw, 2.45rem);
  letter-spacing: 0.03em;
  line-height: 1.08;
  color: var(--cream);
  margin: 0.85rem 0 0.55rem;
  text-wrap: balance;
}

.gate-lead,
.gate-card p {
  color: var(--muted);
}

.gate-lead {
  margin: 0 auto 1.35rem;
  max-width: 22rem;
}

.gate-actions {
  display: grid;
  gap: 0.7rem;
}

.btn {
  appearance: none;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #f3e2b0 0%, #e0c27a 42%, #b8924a 100%);
  color: #1c1508;
  border-color: transparent;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost:hover {
  background: rgba(228, 201, 138, 0.08);
}

.exit-copy {
  margin: 0 auto 0.85rem;
  max-width: 24rem;
}

.exit-note {
  margin: 0 auto;
  max-width: 24rem;
  color: var(--cream);
}

.noscript {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Site shell ---------- */
.site {
  display: none;
}

html.age-ok .site {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand age"
    "nav nav";
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem 0.7rem;
  background: rgba(7, 20, 15, 0.92);
  border-bottom: 1px solid rgba(228, 201, 138, 0.16);
}

.brand {
  grid-area: brand;
  justify-self: start;
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 2.15rem;
  width: auto;
}

.brand:hover {
  color: var(--gold-bright);
}

.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.15rem;
  padding-top: 0.1rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.15rem;
}

.nav a:hover {
  color: var(--gold);
}

.age-pill {
  grid-area: age;
  justify-self: end;
  margin: 0;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.45rem 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header));
  padding: 2.5rem 1.25rem 3.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
}

.hero-logo {
  margin: 0;
}

.hero-logo img {
  width: min(32rem, 88vw);
  margin: 0 auto 0.35rem;
}

.hero-leaf {
  width: min(132px, 34vw);
  height: auto;
  display: block;
  margin: 0 auto 0.85rem;
}

.deco-hero-l,
.deco-hero-r {
  width: min(220px, 34vw);
  opacity: 0.72;
}

.deco-hero-l {
  left: -70px;
  bottom: -20px;
  transform: rotate(12deg);
}

.deco-hero-r {
  right: -80px;
  top: 8%;
  transform: rotate(-8deg) scaleX(-1);
}

.eyebrow,
.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow {
  margin-bottom: 0.85rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.85rem, 12vw, 7.15rem);
  line-height: 0.88;
  letter-spacing: 0.045em;
  white-space: nowrap;
  background-image: linear-gradient(185deg, #f8e7b5 0%, #e4c57a 34%, #9a7436 68%, #f3deaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* The gradient clip does not paint child text, so the mark stays a solid gold. */
.wordmark .tm {
  background: none;
  color: var(--gold-bright);
  -webkit-text-fill-color: var(--gold-bright);
  font-size: 0.22em;
  top: -1.35em;
  margin-left: 0.28em;
}

.crest-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(16rem, 70%);
  margin: 1.05rem auto 0.85rem;
}

.crest-rule span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.crest-rule i {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: block;
}

.tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  margin: 1.35rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  text-wrap: pretty;
}

.venture {
  margin-top: 0.85rem;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.more {
  display: inline-block;
  margin-top: 2rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(228, 201, 138, 0.55);
  padding-bottom: 0.28rem;
}

.more:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.25rem 0;
}

.section + .section {
  border-top: 1px solid rgba(228, 201, 138, 0.14);
}

.section h2,
.soon h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin: 0.7rem 0 1rem;
  text-wrap: balance;
}

.intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.pair,
.split {
  display: grid;
  gap: 1rem;
}

.plant,
.format {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 42, 30, 0.72), rgba(8, 22, 16, 0.35));
  padding: 1.5rem 1.3rem 1.25rem;
}

.plant h3,
.format h3,
.split h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin: 0.15rem 0 0.15rem;
}

.latin {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.05;
  color: var(--gold-bright);
  margin: 0.15rem 0 0.35rem;
}

.family {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plant p,
.split p {
  color: var(--muted);
}

.plant p + p,
.split p + p {
  margin-top: 0.9rem;
}

.range {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(228, 201, 138, 0.18);
  color: var(--cream);
  font-size: 0.98rem;
}

.range span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.formats {
  display: grid;
  gap: 0.9rem;
}

.format-index {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}

.format h3 {
  margin-bottom: 1rem;
}

.format dl {
  margin: 0;
}

.format dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.format dd {
  margin: 0 0 0.85rem;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.5;
}

.format dd:last-child {
  margin-bottom: 0;
}

.format:hover {
  border-color: var(--line-strong);
}

/* ---------- Coming soon ---------- */
.soon {
  text-align: center;
  padding-bottom: 5rem;
}

.soon .kicker,
.soon h2,
.soon p {
  margin-left: auto;
  margin-right: auto;
}

.soon-mark {
  width: 0.7rem;
  height: 0.7rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.soon p {
  max-width: 28rem;
  color: var(--muted);
}

.soon .contact-line {
  margin-top: 1.25rem;
  color: var(--cream);
  font-family: var(--serif);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.colophon {
  border-top: 1px solid rgba(228, 201, 138, 0.2);
  padding: 3rem 0 2.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.footer-logo img {
  height: 3.6rem;
  width: auto;
  margin: 0 auto;
}

.footer-tag {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.age-pill-foot {
  display: inline-block;
  margin: 1.15rem 0 0;
}

.disclaimer {
  max-width: 40rem;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact-foot {
  margin-top: 1rem;
  color: var(--cream);
  font-size: 0.95rem;
}

.copy {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

main:focus {
  outline: none;
}

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .pair,
  .split,
  .formats {
    grid-template-columns: 1fr 1fr;
  }

  .deco-tl { width: 360px; left: -90px; top: -70px; }
  .deco-tr { width: 400px; right: -110px; }
  .deco-bl { width: 230px; }
  .deco-br { width: 250px; }
}

@media (min-width: 960px) {
  :root { --header: 4.6rem; }

  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav age";
    padding: 0.95rem 2rem;
    gap: 1.5rem;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 0;
    gap: 0.35rem 1.75rem;
  }

  .nav a {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    min-height: 44px;
    padding: 0.45rem 0.2rem;
  }

  .brand img { height: 2.45rem; }

  .section {
    padding: 6.5rem 0;
  }

  .plant,
  .format {
    padding: 1.85rem 1.6rem 1.5rem;
  }

  .formats {
    grid-template-columns: repeat(6, 1fr);
  }

  .format {
    grid-column: span 2;
  }

  .format:nth-child(4),
  .format:nth-child(5) {
    grid-column: span 3;
  }
}

@media (max-width: 380px) {
  .gate-card { padding: 2.1rem 1.05rem 1.25rem; }
  .gate-tag,
  .tagline { letter-spacing: 0.26em; text-indent: 0.26em; }
  .eyebrow { letter-spacing: 0.2em; }
  .site-header { padding-inline: 0.7rem; }
  .nav a {
    font-size: 0.66rem;
    letter-spacing: 0.045em;
    padding-inline: 0.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .wordmark {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
  .btn-primary {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }
}
