/* Salted Sol — site styles
   System: DESIGN.md (locked 2026-06-16). Blue is the world, cream is the paper,
   deep sea is the words, gold is the sun (sparing). */

:root {
  --cream: #FBF6EA;
  --paper: #FFFDF7;
  --sand: #F3ECDB;
  --sky: #9DB6D6;
  --sky-soft: #DCE6F1;
  --navy: #3E5374;
  --ink: #2E3D57;
  --gold: #E7C57E;
  --gold-deep: #C9A24B;
  --sunlit: #F2E2B0;
  --seafoam: #AFCAC4;
  --line: rgba(62, 83, 116, 0.14);
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
section[id], .hero { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; color: var(--navy); margin: 0; line-height: 1.08; letter-spacing: -0.005em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; }
em { font-style: italic; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); opacity: .72; margin: 0 0 14px; }
.lede { font-size: 17px; max-width: 48ch; }
.gold-rule { width: 44px; height: 1.5px; background: var(--gold); margin: 18px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px;
  background: var(--navy); color: var(--cream);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--ink); box-shadow: 0 10px 24px rgba(46, 61, 87, .18); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--cream); }
.btn svg { width: 17px; height: 17px; }
.textlink { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; }

/* announcement bar */
.announce {
  background: var(--sky); color: var(--ink);
  font-size: 12.5px; letter-spacing: .04em; text-align: center; padding: 9px var(--gutter);
}

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 234, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a { position: relative; padding: 6px 0; opacity: .82; transition: opacity .25s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--gold); transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { right: 0; }
.logo { display: block; color: var(--navy); }
.logo img, .logo svg { height: 74px; width: auto; }
.icons { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icons a { transition: color .3s, background .3s, transform .3s var(--ease); }
.icons .ig { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); }
.icons .ig:hover { color: var(--gold-deep); }
.icons .wa { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 11px 18px; border-radius: 999px; background: var(--navy); color: var(--cream); }
.icons .wa:hover { background: var(--ink); transform: translateY(-1px); }
.icons .ig svg { width: 20px; height: 20px; }
.icons .wa svg { width: 16px; height: 16px; }
.menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); transition: background .3s; }
.menu-btn:hover { background: rgba(62, 83, 116, .08); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.drawer { display: none; }

/* hero: option C, the horizon */
.hero { position: relative; overflow: hidden; }
.hero .media { height: clamp(420px, 54vh, 600px); overflow: hidden; }
.hero .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; transform: scale(1.04); transition: transform 8s var(--ease); }
.hero.in .media img { transform: scale(1); }
.hero .card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(560px, calc(100% - 32px)); background: rgba(251, 246, 234, .94); backdrop-filter: blur(6px); border-radius: 18px; padding: 34px 40px 36px; box-shadow: 0 20px 46px rgba(46, 61, 87, .18); }
.hero .card.rv { transform: translate(-50%, calc(-50% + 18px)); }
.hero .card.rv.in { transform: translate(-50%, -50%); }
.hero .card .eyebrow { margin-bottom: 10px; }
.hero .card h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 16px; }
.hero .card .lede { font-size: 15.5px; margin: 0 auto 20px; max-width: 44ch; }

/* section rhythm */
section { padding: clamp(48px, 7vw, 96px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.sec-head .textlink { white-space: nowrap; }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { display: block; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(46, 61, 87, .12); }
.card .pic { aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .pic img { transform: scale(1.04); }
.card .order {
  position: absolute; top: 14px; right: 14px;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  background: var(--cream); color: var(--navy); border-radius: 999px; padding: 8px 14px;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.card .order svg { width: 14px; height: 14px; }
.card:hover .order { opacity: 1; transform: none; }
.card .body { padding: 14px 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .name { font-family: 'Libre Caslon Text', serif; font-size: 19px; color: var(--navy); }
.card .price { font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.card .price::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 2px; }

/* category band */
.cats { background: var(--sky); }
.cats h2 { color: var(--ink); }
.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat { text-align: center; }
.cat .pic { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); border: 6px solid var(--cream); box-shadow: 0 14px 30px rgba(46, 61, 87, .16); transition: transform .5s var(--ease); }
.cat:hover .pic { transform: translateY(-4px); }
.cat .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cat:hover .pic img { transform: scale(1.06); }
.cat .label { display: inline-block; margin-top: 16px; font-family: 'Libre Caslon Text', serif; font-size: 20px; color: var(--ink); }

/* lifestyle strip */
.strip { padding: 0; }
.strip .track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: clamp(24px, 4vw, 48px) var(--gutter); scrollbar-width: none; }
.strip .track::-webkit-scrollbar { display: none; }
.strip .shot { flex: 0 0 clamp(220px, 26vw, 320px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--sand); }
.strip .shot img { width: 100%; height: 100%; object-fit: cover; }

/* two-column feature */
.feature { padding: 0; }
.feature .cols { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.feature .pic { aspect-ratio: 4 / 4.6; overflow: hidden; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; }
.feature .copy { padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); background: var(--paper); }
.feature .copy h2 { margin-bottom: 22px; }
.feature .copy p { max-width: 46ch; }
.promise { margin-top: 26px; padding: 18px 22px; border-left: 2px solid var(--gold); background: var(--cream); font-size: 15px; }
.promise strong { color: var(--navy); font-weight: 500; }

/* founder */
.founder { text-align: center; }
.founder .portrait { width: clamp(180px, 22vw, 240px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 26px; overflow: hidden; background: var(--sky-soft); border: 6px solid var(--paper); box-shadow: 0 16px 36px rgba(46, 61, 87, .14); display: grid; place-items: center; color: var(--navy); }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder .portrait span { display: block; width: 62%; } .founder .portrait svg { width: 100%; height: auto; opacity: .85; }
.founder .eyebrow { margin-bottom: 8px; }
.founder h2 { margin-bottom: 18px; }
.founder p { max-width: 58ch; margin-left: auto; margin-right: auto; }
.founder .sig { font-family: 'Libre Caslon Text', serif; font-style: italic; font-size: 20px; color: var(--navy); }

/* how to order */
.how { background: var(--sand); }
.how .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how .step { padding: 26px 26px 24px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.how .step .n { font-family: 'Libre Caslon Text', serif; font-size: 30px; color: var(--gold-deep); line-height: 1; margin-bottom: 14px; }
.how .step h3 { margin-bottom: 8px; }
.how .step p { margin: 0; font-size: 15px; }

/* footer */
.footer { background: var(--navy); color: var(--cream); padding: clamp(40px, 6vw, 72px) 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer .logo { color: var(--cream); }
.footer .logo svg, .footer .logo img { height: 96px; }
.footer h4 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; opacity: .7; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer a:hover { border-bottom: 1px solid var(--gold); }
.footer .small { font-size: 13px; opacity: .8; max-width: 34ch; }
.footer .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(251, 246, 234, .18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; opacity: .7; }

/* shop page */
.page-head { padding: clamp(36px, 5vw, 64px) 0 20px; }
.page-head p { max-width: 52ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 34px; }
.chip { font-size: 13px; letter-spacing: .04em; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--navy); background: transparent; transition: background .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* product page */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; margin: 26px 0 10px; opacity: .8; }
.back svg { width: 14px; height: 14px; }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery .g { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 1; }
.gallery .g:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { position: sticky; top: 110px; }
.pinfo h1 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 8px; }
.pinfo .price { font-size: 20px; color: var(--navy); margin-bottom: 26px; }
.pinfo .price small { font-size: 13px; opacity: .65; margin-left: 10px; }
.pinfo .cta { display: grid; gap: 12px; margin-bottom: 26px; }
.pinfo .cta .btn { justify-content: center; }
.pinfo .rail { font-size: 14px; opacity: .8; }
.pinfo .desc { margin: 26px 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: 15px; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); position: relative; top: -2px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-family: 'Libre Caslon Text', serif; font-size: 18px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: 'DM Sans'; font-size: 20px; opacity: .6; transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details .inner { padding: 0 0 18px; font-size: 15px; }
details .inner p:last-child { margin: 0; }
.related { padding-top: 0; }

/* proto banner (remove at launch) */
.proto { background: var(--sunlit); color: var(--ink); font-size: 12.5px; text-align: center; padding: 8px var(--gutter); }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero .media img { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 980px) {
  .grid, .grid.four { grid-template-columns: repeat(3, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .product { grid-template-columns: 1fr; }
  .pinfo { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .logo img, .logo svg { height: 62px; }
  .icons .ig { display: none; }
  .icons .wa { padding: 10px 14px; }
  .icons .wa span { display: none; }
  .icons .wa svg { width: 19px; height: 19px; }
  .drawer { display: block; position: fixed; inset: 0; z-index: 60; background: var(--cream); padding: 24px var(--gutter); transform: translateX(-100%); transition: transform .45s var(--ease); }
  .drawer.open { transform: none; }
  .drawer .close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; }
  .drawer nav { display: grid; gap: 6px; margin-top: 56px; }
  .drawer nav a { font-family: 'Libre Caslon Text', serif; font-size: 30px; color: var(--navy); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .drawer .btn { margin-top: 28px; }
  .hero .media { height: clamp(460px, 66vh, 600px); }
  .hero .card { padding: 24px 22px 26px; }
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { flex-direction: column; gap: 2px; padding: 12px 12px 14px; }
  .card .name { font-size: 17px; }
  .card .order { opacity: 1; transform: none; padding: 7px 11px; font-size: 10.5px; }
  .cat-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 46%; scroll-snap-align: start; }
  .feature .cols { grid-template-columns: 1fr; }
  .feature .pic { aspect-ratio: 4 / 3; }
  .how .steps { grid-template-columns: 1fr; gap: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
