/* ABR pre-launch site. Palette and type from the storefront (src/app/globals.css, "Paakam palette"):
   cream grounds, molasses ink, caramel accents. Caramel and gold are never text on cream; links use gold-800. */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Size-matched fallbacks, as the storefront uses, so the swap to Geist does not shift the page. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial"), local("Liberation Sans"), local("LiberationSans");
  ascent-override: 94.56%;
  descent-override: 27.76%;
  line-gap-override: 0%;
  size-adjust: 106.28%;
}
@font-face {
  font-family: "Geist Fallback Roboto";
  src: local("Roboto");
  ascent-override: 95.93%;
  descent-override: 28.16%;
  line-gap-override: 0%;
  size-adjust: 104.76%;
}

:root {
  color-scheme: light;
  --cream: #f6f3ec;
  --cream-deep: #ece4d3;
  --paper: #fffcf6;
  --line: #d8cfbb;
  --line-soft: #ece6d8;
  --ink: #2a1b10;
  --ink-soft: #5e4630;
  --caramel: #d28e4a;
  --caramel-pale: #f1dcc0;
  --caramel-wash: #f8ecdc;
  --link: #7a4e00;
  --bellam: #6b4423;
  --focus: #b87000;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow: 0 1px 0 rgb(42 27 16 / 0.04), 0 12px 32px -18px rgb(42 27 16 / 0.28);
  --font: "Geist", "Geist Fallback", "Geist Fallback Roboto", system-ui, sans-serif;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 8px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 8px; color: var(--paper); }

/* Ordering note above every page. */
.soon-strip {
  display: block;
  background: var(--caramel-pale);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.4;
  padding-block: 8px;
  text-align: center;
}
.soon-strip a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; min-height: 48px;
}
.brand img { width: 44px; height: 44px; flex: none; }
.brand-name { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.2; }

.nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li > a,
.nav-policies summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; border-radius: 999px;
  cursor: pointer;
}
.nav-list > li > a:hover,
.nav-policies summary:hover { background: var(--cream-deep); }
.nav-list a[aria-current="page"],
.nav-policies details.is-current > summary { background: var(--cream-deep); font-weight: 600; }

.nav-policies { position: relative; }
.nav-policies summary { list-style: none; gap: 6px; }
.nav-policies summary::-webkit-details-marker { display: none; }
.nav-policies summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.nav-policies details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.policy-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: max-content; max-width: min(300px, calc(100vw - 32px));
  list-style: none; margin: 0; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.policy-menu a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.9375rem;
}
.policy-menu a:hover { background: var(--cream); }
.policy-menu a[aria-current="page"] { background: var(--cream-deep); font-weight: 600; }

@media (max-width: 719px) {
  .header-row { padding-block: 8px 4px; }
  .brand-name { font-size: 1rem; }
  .nav { flex-basis: 100%; justify-content: flex-start; margin-inline: -12px; }
  .nav-list { gap: 0; }
  .nav-list > li > a, .nav-policies summary { padding: 0 12px; }
}

/* Shared blocks */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 0.875rem; font-weight: 550; color: var(--ink);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); }

.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--bellam); color: var(--paper); }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; }

.band { padding-block: 56px; }
.band-quiet { background: var(--paper); border-block: 1px solid var(--line-soft); }
@media (min-width: 900px) { .band { padding-block: 88px; } }

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; margin-bottom: 12px; }
.section-lede { color: var(--ink-soft); margin-bottom: 28px; }

/* Home: hero */
.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-text { display: grid; gap: 20px; justify-items: start; }
.hero h1 { font-size: clamp(2.375rem, 6.2vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero-text { gap: 28px; }
}

/* Home: categories */
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cat {
  display: grid; gap: 6px; height: 100%; padding: 22px 22px 24px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease;
}
.cat:hover { border-color: var(--caramel); transform: translateY(-2px); color: var(--ink); }
.cat-name { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.cat-count { font-size: 0.875rem; font-weight: 600; color: var(--bellam); }
.cat-examples { color: var(--ink-soft); font-size: 0.9375rem; }

/* Home: promise */
.promise { display: grid; gap: 28px; }
.promise > div { padding-left: 18px; border-left: 3px solid var(--caramel); }
.promise-title { font-size: 1.1875rem; font-weight: 650; margin-bottom: 6px; }
.promise p { color: var(--ink-soft); }
@media (min-width: 900px) { .promise { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.split { display: grid; gap: 40px; }
.split > div { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.fact-list { margin: 0; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.fact-list > div { display: grid; gap: 2px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.fact-list > div:first-child { border-top: 0; }
.fact-list dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--bellam); }
.fact-list dd { margin: 0; overflow-wrap: anywhere; }

/* Inner pages */
.page-head { padding-block: 40px 28px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
.page-head .lede { max-width: 60ch; }
.updated { color: var(--ink-soft); font-size: 0.9375rem; }
@media (min-width: 900px) { .page-head { padding-block: 64px 36px; } }

.jump { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.9375rem;
}
.jump a:hover { border-color: var(--caramel); }

/* Products */
.shelves { display: grid; gap: 56px; padding-bottom: 72px; }
.shelf { scroll-margin-top: 16px; }
.shelf-title { font-size: 1.625rem; font-weight: 650; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.shelf-count { font-size: 0.9375rem; font-weight: 600; color: var(--bellam); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
  display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.tile { aspect-ratio: 1; border-radius: calc(var(--radius) - 6px); overflow: hidden; background: var(--cream-deep); }
.tile > img { width: 100%; height: 100%; object-fit: cover; }
.tile-blank { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; }
.tile-blank img { width: 56px; height: 56px; opacity: 0.9; }
.tile-blank span { font-size: 0.8125rem; color: var(--ink-soft); }
.card-name { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; margin-top: 4px; padding-inline: 4px; }
.card-note { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.35; padding-inline: 4px; }
.packs { list-style: none; margin: auto 0 0; padding: 8px 4px 0; display: grid; gap: 4px; border-top: 1px solid var(--line-soft); }
.packs li { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9375rem; }
.packs .mrp { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 720px) { .card { padding: 12px 12px 16px; } .card-name { font-size: 1.0625rem; } }

/* About and contact */
.about, .contact { display: grid; gap: 40px; padding-bottom: 80px; }
.about-seal { margin: 0; justify-self: center; max-width: 280px; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .about-seal { max-width: 320px; position: sticky; top: 32px; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
}
.contact-list { margin: 0; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 8px 24px; }
.contact-list > div { padding-block: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.contact-list > div:first-of-type { border-top: 0; }
.contact-list dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--bellam); }
.contact-list dd { margin: 0; }
.contact-list address { font-style: normal; }
.big-link { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.big-link:hover { color: var(--link); text-decoration: underline; }
[hidden] { display: none !important; }

/* Long-form text */
.prose { max-width: 68ch; display: grid; gap: 14px; align-content: start; }
.prose h2 { font-size: 1.3125rem; font-weight: 650; margin-top: 22px; }
.prose p { color: var(--ink); }
.prose .lede { color: var(--ink-soft); }
.policy { padding-bottom: 80px; }
.notice {
  padding: 14px 18px; border-radius: 14px; background: var(--caramel-wash); border: 1px solid var(--caramel-pale);
}

/* Footer */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding-top: 48px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 112px; height: 112px; }
.footer-legal { font-weight: 650; }
.footer-brand address { font-style: normal; color: var(--ink-soft); }
.footer-links { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-title { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bellam); margin-bottom: 10px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { display: grid; gap: 12px; align-content: start; }
.footer-contact a { color: var(--ink); font-weight: 600; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.875rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 1.6fr 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, auto)); }
}

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

@media (max-width: 719px) {
  .jump { gap: 6px; }
  .jump a { padding: 0 13px; font-size: 0.875rem; }
}
