/* Lokahi Colors. Warm paper, thick ink, six-color spine.
   Everything scales from the tokens below; nothing hardcodes a color twice. */

:root {
  /* Pulled straight from engine/brand.js so the site and the logo agree. */
  --paper: #f6efe2;
  --paper-deep: #ede1cd;
  --paper-card: #fffaf0;
  --ink: #1c1b18;
  --ink-soft: #55504a;
  --ink-faint: #8b847a;

  --clay: #d9603a;
  --gold: #e8a633;
  --fern: #4a7550;
  --teal: #3e8a93;
  --kai: #4a6fa5;
  --plum: #8a5a8f;
  --honu: #2e5b45;

  --rule: color-mix(in oklab, var(--ink) 14%, transparent);

  /* Two families, both with a reason. Baloo 2 is the logo face and carries the
     kahako; Source Serif reads long at small sizes without going cold. */
  --font-display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;

  --text-xs: 0.82rem;
  --text-sm: 0.94rem;
  --text-base: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --text-lg: clamp(1.18rem, 1.08rem + 0.5vw, 1.4rem);
  --text-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --text-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.7rem);
  --text-h1: clamp(2.4rem, 1.6rem + 4.2vw, 4.6rem);

  --space-section: clamp(3.5rem, 2.6rem + 4vw, 7rem);
  --gutter: clamp(1.15rem, 0.7rem + 2.4vw, 2.75rem);
  --measure: 34rem;
  --wide: 76rem;

  --radius: 14px;
  --radius-lg: 24px;

  --duration-fast: 140ms;
  --duration: 280ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --lift: 0 1px 0 var(--rule), 0 12px 28px -18px rgba(28, 27, 24, 0.45);
  --lift-hover: 0 1px 0 var(--rule), 0 22px 44px -20px rgba(28, 27, 24, 0.5);
}

*,
*::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: var(--text-base);
  line-height: 1.6;
  /* Faint grain so large flat areas of paper do not read as a flat screen. */
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(28, 27, 24, 0.045) 1px,
    transparent 0
  );
  background-size: 4px 4px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.008em; }

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

a { color: color-mix(in oklab, var(--kai) 85%, var(--ink)); }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
}

.lede { font-size: var(--text-lg); color: var(--ink-soft); }

/* The six shell colors as a hairline. Used to separate major bands, so the
   brand mark's logic shows up in the page structure rather than only in a
   corner logo. */
.spine {
  display: flex;
  height: 6px;
  border: 0;
  margin: 0;
}
.spine span { flex: 1; }
.spine span:nth-child(1) { background: var(--clay); }
.spine span:nth-child(2) { background: var(--gold); }
.spine span:nth-child(3) { background: var(--fern); }
.spine span:nth-child(4) { background: var(--teal); }
.spine span:nth-child(5) { background: var(--kai); }
.spine span:nth-child(6) { background: var(--plum); }

/* ---------- skip link, header ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 50;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-head__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brandmark svg { width: 34px; height: 34px; flex: none; }
.brandmark b {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--clay); }

@media (max-width: 36rem) {
  .site-nav a:not(.btn) { display: none; }
}

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

.btn {
  --btn-bg: var(--clay);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  /* Offset shadow instead of a blur, so it matches the thick-line drawings. */
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform var(--duration-fast) var(--ease),
              box-shadow var(--duration-fast) var(--ease);
}
.btn:hover,
.btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--lg { font-size: 1.14rem; padding: 1.05rem 2rem; }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.btn--sm { font-size: 0.9rem; padding: 0.6rem 1.1rem; box-shadow: 2px 2px 0 var(--ink); }

.btn[aria-disabled='true'] {
  --btn-bg: var(--paper-deep);
  --btn-fg: var(--ink-soft);
  border-color: var(--ink-faint);
  box-shadow: 3px 3px 0 var(--ink-faint);
  cursor: default;
  pointer-events: none;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--kai);
  outline-offset: 3px;
}

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

.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 var(--space-section); }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; }
}

.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--clay);
  /* Hand-drawn underline rather than a text-decoration hairline. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2,7 C30,2 62,9 118,4' stroke='%23E8A633' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    bottom left / 100% 0.34em no-repeat;
  padding-bottom: 0.1em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 1.9rem;
}
.hero__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.hero__price s { color: var(--ink-faint); }

/* The hero image sits in a tilted paper card with the six-color spine down one
   edge. Layering plus a small rotation keeps it from reading as a stock grid. */
.hero__art { position: relative; }
.hero__art::before {
  content: '';
  position: absolute;
  inset: 8% -3% -6% 6%;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  transform: rotate(3deg);
}
.hero__frame {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--lift);
  transform: rotate(-1.4deg);
  transition: transform var(--duration) var(--ease);
}
.hero__frame:hover { transform: rotate(-0.4deg) scale(1.012); }
.hero__frame .spine { height: 8px; }

.badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-content: center;
  width: 5.6rem;
  height: 5.6rem;
  right: -0.6rem;
  top: -1.4rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--gold);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-9deg);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}
.badge b { display: block; font-size: 1.9rem; }
.badge span { display: block; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }

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

.band { padding: var(--space-section) 0; }
.band--deep { background: var(--paper-deep); border-block: 1px solid var(--rule); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink h2 { color: #fff; }
.band--ink .lede { color: color-mix(in oklab, var(--paper) 72%, transparent); }

.band__head { margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem); }

/* Deliberately uneven: a wide feature tile next to narrower ones, rather than
   four identical cards. */
.contents-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.content-card {
  position: relative;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--lift);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.content-card:nth-child(1) { --accent: var(--clay); }
.content-card:nth-child(2) { --accent: var(--gold); }
.content-card:nth-child(3) { --accent: var(--fern); }
.content-card:nth-child(4) { --accent: var(--teal); }
.content-card:nth-child(5) { --accent: var(--plum); }
.content-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent, var(--clay));
}
.content-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.1rem; }
.content-card p { font-size: var(--text-sm); color: var(--ink-soft); }

@media (min-width: 52rem) {
  .contents-grid { grid-template-columns: repeat(6, 1fr); }
  .content-card:nth-child(1) { grid-column: span 3; }
  .content-card:nth-child(2) { grid-column: span 3; }
  .content-card:nth-child(3),
  .content-card:nth-child(4),
  .content-card:nth-child(5) { grid-column: span 2; }
}

/* steps */
.steps {
  display: grid;
  gap: 1.6rem;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.step { padding-top: 1.2rem; border-top: 3px solid currentColor; }
.step:nth-child(1) { color: var(--clay); }
.step:nth-child(2) { color: var(--teal); }
.step:nth-child(3) { color: var(--plum); }
.step b {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step h3 { margin: 0.3rem 0 0.4rem; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: var(--text-sm); }
.band--ink .step h3 { color: #fff; }
.band--ink .step p { color: color-mix(in oklab, var(--paper) 70%, transparent); }

/* themes */
.themes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.theme {
  display: block;
  padding: 1.3rem 1.3rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--lift);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
a.theme:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.theme[data-status='soon'] { background: transparent; border-style: dashed; box-shadow: none; }
.theme h3 { font-size: 1.22rem; margin-bottom: 0.3rem; }
.theme p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  border: 1.5px solid var(--ink);
}
.tag--live { background: var(--fern); color: #fff; border-color: var(--fern); }
.tag--soon { color: var(--ink-faint); border-color: var(--ink-faint); }

/* ---------- product page ---------- */

.pack { padding: clamp(2rem, 1.4rem + 3vw, 4rem) 0 var(--space-section); }
.pack__grid { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
@media (min-width: 60rem) {
  .pack__grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .pack__buy { position: sticky; top: 100px; }
}

.gallery { display: grid; gap: 0.9rem; }
.gallery__main {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--lift);
}
/* One row whatever the pack's preview count is. A fixed column count
   strands the last thumb on a row of its own. */
.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.7rem;
}
.gallery__thumbs button {
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.gallery__thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.gallery__thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }

.buybox {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  box-shadow: var(--lift);
}
.buybox .spine { margin: 0 0 1.3rem; border-radius: 999px; overflow: hidden; }
.buybox h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); margin-bottom: 0.6rem; }
.price { display: flex; align-items: baseline; gap: 0.6rem; margin: 1.2rem 0 0.4rem; }
.price b { font-family: var(--font-display); font-size: 2.9rem; font-weight: 800; line-height: 1; }
.price s { color: var(--ink-faint); font-size: 1.1rem; }
.price-note { font-size: var(--text-xs); color: var(--ink-faint); margin: 0 0 1.4rem; }
.buybox .btn { width: 100%; }
.reassure { list-style: none; margin: 1.3rem 0 0; padding: 0; font-size: var(--text-sm); }
.reassure li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; color: var(--ink-soft); }
.reassure li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.52em;
  width: 0.72rem; height: 0.4rem;
  border-left: 2.5px solid var(--fern);
  border-bottom: 2.5px solid var(--fern);
  transform: rotate(-45deg);
}

.specs { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.specs th, .specs td { text-align: left; padding: 0.68rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.specs th { font-family: var(--font-display); font-weight: 700; width: 38%; }
.specs td { color: var(--ink-soft); }

/* ---------- faq ---------- */

.faq { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.3rem 0;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+';
  flex: none;
  width: 1.5rem; height: 1.5rem;
  margin-top: 0.1em;
  display: grid; place-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.faq details[open] summary::before { content: '+'; transform: rotate(45deg); background: var(--gold); }
.faq details > div { padding: 0 0 1.2rem 2.3rem; color: var(--ink-soft); max-width: var(--measure); }

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

.site-foot { background: var(--ink); color: color-mix(in oklab, var(--paper) 76%, transparent); }
.site-foot__inner {
  display: grid;
  gap: 2.2rem;
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2rem;
}
@media (min-width: 48rem) {
  .site-foot__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-foot h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-bottom: 0.9rem;
}
.site-foot a { color: color-mix(in oklab, var(--paper) 84%, transparent); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.5rem; font-size: var(--text-sm); }
.site-foot .brandmark b { color: #fff; }
.site-foot__note {
  border-top: 1px solid rgba(246, 239, 226, 0.16);
  padding: 1.2rem 0 2rem;
  font-size: var(--text-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  color: color-mix(in oklab, var(--paper) 52%, transparent);
}

/* ---------- legal pages ---------- */

.doc { padding: clamp(2.5rem, 2rem + 2vw, 4.5rem) 0 var(--space-section); }
.doc__body { max-width: 42rem; }
.doc__body h2 { font-size: var(--text-h3); margin-top: 2.4rem; }
.doc__body ul { padding-left: 1.2rem; }
.doc__body li { margin-bottom: 0.5rem; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.back:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__frame, .hero__art::before, .badge { transform: none; }
}
