/* Salt & Peak storefront */
:root {
  --navy: #16243A;
  --navy-2: #1E3150;
  --glacier: #9FBCCB;
  --glacier-soft: #D7E4EB;
  --mist: #EAF0F3;
  --bg: #F4F7F9;
  --white: #FFFFFF;
  --ink: #16243A;
  --ink-2: #4A5869;
  --line: #D5DEE4;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.05rem; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .9em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 28px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary[disabled] { background: #8A95A3; cursor: not-allowed; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--glacier-soft); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }
.link-arrow { white-space: nowrap; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--glacier); padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: var(--navy); }

/* Announcement + header */
.announce { background: var(--navy); color: var(--glacier-soft); text-align: center; }
.announce p { margin: 0; padding: 8px 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 480px) { .announce p { font-size: .62rem; letter-spacing: .06em; } }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244,247,249,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { width: 168px; height: auto; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { font-stretch: 125%; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--glacier); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy); color: var(--white); font-family: var(--mono); font-size: .68rem; line-height: 18px; text-align: center; }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; background: var(--bg); }
.mobile-nav a { display: block; padding: 12px 0; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 820px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { height: 64px; gap: 8px; justify-content: space-between; }
  .logo img { width: 148px; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(170px, 22vw, 290px); }
.hero .eyebrow { color: var(--glacier); }
.hero-title { font-size: clamp(3.2rem, 11vw, 8.6rem); line-height: .9; letter-spacing: -0.02em; margin-bottom: .35em; }
.hero-lede { max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--glacier-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(160px, 24vw, 320px); z-index: 1; }
.hero-art .ridge-far { fill: #1C2D47; }
.hero-art .ridge-near { fill: #213553; }
.hero-art .line { fill: none; stroke: var(--white); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.hero-art .swell { fill: none; stroke: var(--glacier); stroke-width: 3; stroke-linecap: round; }
.hero-art .swell-2 { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .line, .hero-art .swell { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s .2s cubic-bezier(.4,0,.2,1) forwards; }
  .hero-art .swell { animation-delay: 1.2s; }
  .hero-art .swell-2 { animation-delay: 1.8s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--white); color: var(--navy); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.card-title { margin: 14px 0 2px; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.card-price { font-family: var(--mono); font-size: .85rem; color: var(--ink-2); }
.card-price s { margin-left: 6px; opacity: .7; }
.card-placeholder .card-media { display: grid; place-items: center; background: linear-gradient(160deg, var(--mist), var(--glacier-soft)); }
.card-placeholder .card-media img { width: 42%; height: auto; object-fit: contain; opacity: .55; }
.card-placeholder:hover .card-media img { transform: none; }
.card-placeholder .card-title { color: var(--ink-2); }

.empty-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-note p { margin: 0; }
.empty-note strong { font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; }

.skeleton { background: linear-gradient(90deg, var(--mist) 0%, #F7FAFB 50%, var(--mist) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius); }
.skeleton-line { height: 22px; margin-bottom: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Story */
.story { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.story-mark { aspect-ratio: 1; display: grid; place-items: center; background: var(--mist); border-radius: var(--radius); }
.story-mark img { width: 62%; }
.story-copy p { color: var(--ink-2); max-width: 34em; }
@media (max-width: 820px) { .story-inner { grid-template-columns: 1fr; } .story-mark { aspect-ratio: 16 / 9; } .story-mark img { width: 40%; } }

/* Values */
.values { padding: clamp(48px, 7vw, 88px) 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value svg { width: 36px; height: 36px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.value p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Page heroes + prose */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { max-width: 14em; }
.page-lede { max-width: 36em; color: var(--ink-2); font-size: 1.08rem; }
.page-hero-navy { background: var(--navy); color: var(--white); padding-bottom: clamp(48px, 8vw, 96px); }
.page-hero-navy .eyebrow { color: var(--glacier); }
.page-hero-navy .page-lede { color: var(--glacier-soft); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a:not(.btn) { color: var(--navy); text-decoration-color: var(--glacier); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose-lede { font-size: 1.25rem; color: var(--ink) !important; line-height: 1.5; }
.prose-mark { margin: 40px 0; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.prose-mark img { width: min(264px, 70%); }
.signoff { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.3rem; color: var(--ink) !important; margin: 32px 0 28px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; line-height: 1; color: var(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 44em; }
.faq a { color: var(--navy); text-decoration-color: var(--glacier); text-decoration-thickness: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 4vw, 40px); background: var(--navy); color: var(--glacier-soft); border-radius: var(--radius); text-decoration: none; }
.contact-card .eyebrow { color: var(--glacier); margin: 0; }
.contact-big { font-stretch: 125%; font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.9rem); color: var(--white); word-break: break-word; }
.contact-card:hover .contact-big { text-decoration: underline; text-decoration-color: var(--glacier); }
.contact-card-quiet { background: var(--white); color: var(--ink-2); border: 1px solid var(--line); }
.contact-card-quiet .eyebrow { color: var(--ink-2); }
.contact-card-quiet a { color: var(--navy); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* Product page */
.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-main { aspect-ratio: 4 / 5; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.pdp-thumbs button { padding: 0; border: 2px solid transparent; background: var(--mist); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--navy); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: 130px; }
.pdp-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.pdp-price { font-family: var(--mono); font-size: 1.2rem; margin-bottom: 28px; }
.pdp-price s { color: var(--ink-2); margin-left: 8px; font-size: 1rem; }
.opt { border: 0; padding: 0; margin: 0 0 22px; }
.opt legend { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-values label { position: relative; }
.opt-values input { position: absolute; opacity: 0; inset: 0; }
.opt-values span { display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 600; font-size: .92rem; cursor: pointer; }
.opt-values input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.opt-values input:focus-visible + span { outline: 2px solid var(--glacier); outline-offset: 2px; }
.opt-values span.is-out { color: #9AA5B1; text-decoration: line-through; }
.qty-row { display: flex; gap: 12px; margin: 28px 0 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.qty button { width: 44px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; }
.qty output { min-width: 28px; text-align: center; font-family: var(--mono); }
.qty-row .btn { flex: 1; }
.pdp-assure { display: grid; gap: 6px; margin: 18px 0 28px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; color: var(--ink-2); }
.pdp-assure span::before { content: "— "; color: var(--glacier); }
.pdp-desc { color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 24px; }
.pdp-desc h1, .pdp-desc h2, .pdp-desc h3 { font-size: 1rem; color: var(--ink); }
.pdp-missing { text-align: center; padding: 80px 0; grid-column: 1 / -1; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } .pdp-info { position: static; } }

/* Bag drawer */
.bag-backdrop { position: fixed; inset: 0; background: rgba(22,36,58,.45); z-index: 60; }
.bag { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s; box-shadow: -20px 0 60px rgba(22,36,58,.18); }
.bag.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 1.1rem; margin: 0; }
.bag-lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.bag-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-line img, .bag-line .bag-thumb { width: 76px; height: 95px; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.bag-line h3 { font-family: var(--display); font-stretch: 100%; text-transform: none; font-size: .95rem; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.bag-line h3 a { text-decoration: none; }
.bag-variant { font-size: .82rem; color: var(--ink-2); margin: 0 0 10px; }
.bag-line .qty button { width: 34px; height: 34px; font-size: 1rem; }
.bag-line-price { font-family: var(--mono); font-size: .88rem; text-align: right; }
.bag-remove { display: block; margin-top: 8px; margin-left: auto; border: 0; background: none; color: var(--ink-2); font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 0; }
.bag-empty { text-align: center; padding: 64px 12px; color: var(--ink-2); }
.bag-empty img { width: 88px; margin: 0 auto 20px; opacity: .6; }
.bag-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.bag-total { display: flex; justify-content: space-between; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; }
.bag-total span:last-child { font-family: var(--mono); font-stretch: 100%; }
.bag-note { font-size: .82rem; color: var(--ink-2); margin: 6px 0 16px; }
.bag-error { color: #A3361F; font-size: .86rem; margin: 12px 0 0; }
body.bag-locked { overflow: hidden; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: var(--radius); font-size: .9rem; z-index: 80; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { background: var(--navy); color: var(--glacier-soft); padding: clamp(48px, 7vw, 80px) 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 180px; margin-bottom: 18px; }
.footer-tag { font-stretch: 125%; font-weight: 900; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.footer-brand p:last-child { font-size: .92rem; max-width: 22em; }
.footer-h { font-family: var(--mono); font-weight: 500; font-stretch: 100%; font-size: .74rem; letter-spacing: .14em; color: var(--glacier); margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; padding: 4px 0; font-size: .94rem; }
.site-footer a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(159,188,203,.25); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
.footer-base p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.notfound { min-height: 50vh; }
