/* Stoic Soul Club store. Brand colours and fonts live in :root. */
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/dm-sans-normal.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;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-italic.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;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal.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;
}
/* arabic */
@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/noto-naskh-arabic-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

:root {
  /* Look A, "Linen & Sky" (picked by Ali, 2026-10-18): warm cream, steel blue from the butterfly, apricot. */
  --bg: #F4ECDF;
  --paper: #FBF6EE;
  --ink: #2B241F;
  --muted: #75695C;
  --line: #E2D6C4;
  --brand: #3E5B74;      /* buttons; dark enough for white text */
  --brand-dark: #2C4256;
  --accent: #C8763F;     /* small highlights */
  --sky: #6888A0;        /* the butterfly */
  --ok: #2f6b3f;
  --warn: #9a5b12;
  --bad: #a3322a;
  --radius: 999px;
  --round: 14px;
  --wrap: 1180px;
  --font: "DM Sans", "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", "Noto Naskh Arabic", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }

/* Test-store ribbon */
.ribbon { background: var(--ink); color: #eae6dd; font-size: 13px; text-align: center; padding: 7px 16px; letter-spacing: .02em; }
.ribbon b { color: #fff; }
.notice { background: var(--accent); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font-family: var(--display); font-size: 26px; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.tools { display: flex; gap: 6px; align-items: center; }
.tool { background: none; border: 1px solid transparent; padding: 8px 10px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tool:hover { border-color: var(--line); }
.bag-count { background: var(--ink); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
@media (max-width: 720px) {
  .nav { display: none; }
  .tools { margin-inline-start: auto; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav a { flex: 1; text-align: center; padding: 10px 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 720px) { .mobile-nav { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--radius); padding: 14px 26px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 14px; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.01em; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.hero-art { aspect-ratio: 4 / 5; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { aspect-ratio: 4 / 3; order: -1; }
}

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.promise div { padding: 22px 20px; text-align: center; font-size: 14px; border-inline-end: 1px solid var(--line); }
.promise div:last-child { border-inline-end: 0; }
.promise b { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; } .promise div { border-inline-end: 0; border-bottom: 1px solid var(--line); } }

section.block { padding: 64px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.block-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; }

/* Product art placeholder: used until real photos arrive */
.art { position: relative; overflow: hidden; background: var(--tone, #2b2b2b); color: rgba(255,255,255,.9); display: grid; place-items: center; }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); }
.art.light { color: rgba(27,27,25,.75); }
.art.light::before { background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.5), transparent 60%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,.06)); }
.art span { position: relative; font-family: var(--display); font-size: clamp(18px, 3vw, 28px); letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 0 16px; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.card { text-decoration: none; display: block; }
.card .art { aspect-ratio: 4 / 5; margin-bottom: 12px; transition: transform .4s ease; }
.card:hover .art { transform: scale(1.01); }
.card h3 { font-family: var(--font); font-size: 15px; margin: 0 0 2px; }
.card .price { font-size: 15px; color: var(--muted); }
.tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--paper); color: var(--ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; z-index: 1; }
.was { text-decoration: line-through; margin-inline-start: 6px; opacity: .7; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 9px 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 99px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 40px 0 72px; }
.pdp .gallery { display: grid; gap: 12px; }
.pdp .gallery .art { aspect-ratio: 4 / 5; }
.pdp .info { position: sticky; top: 88px; align-self: start; }
.pdp h1 { font-size: clamp(30px, 4vw, 44px); }
.pdp .price { font-size: 20px; margin-bottom: 20px; }
.pdp .desc { color: var(--muted); margin-bottom: 26px; white-space: pre-line; }
.opt-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 18px 0 10px; display: flex; justify-content: space-between; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 52px; padding: 11px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt[disabled] { color: #aaa; text-decoration: line-through; cursor: not-allowed; }
.stock-note { font-size: 14px; min-height: 22px; margin: 12px 0; color: var(--warn); }
.pdp details { border-top: 1px solid var(--line); padding: 14px 0; }
.pdp details:last-of-type { border-bottom: 1px solid var(--line); }
.pdp summary { cursor: pointer; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: start; }
@media (max-width: 820px) {
  .pdp { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .pdp .gallery { grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; }
  .pdp .gallery .art { scroll-snap-align: start; }
  .pdp .info { position: static; }
}
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0; }
.crumbs a { text-decoration: none; }

/* Bag and checkout */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; padding: 40px 0 72px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; gap: 28px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .art { aspect-ratio: 4 / 5; }
.line .art.light { color: rgba(27,27,25,.75); }
.art.light::before { background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.5), transparent 60%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,.06)); }
.art span { font-size: 10px; }
.line h3 { font-family: var(--font); font-size: 15px; margin: 0; }
.line .meta { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 34px; height: 34px; background: none; border: 0; cursor: pointer; font-size: 16px; }
.qty output { min-width: 28px; display: grid; place-items: center; font-size: 14px; }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.panel h2 { font-size: 24px; }
.sum { display: flex; justify-content: space-between; font-size: 15px; padding: 6px 0; }
.sum.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 600; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

form .field { margin-bottom: 14px; }
label { display: block; font-size: 13px; letter-spacing: .04em; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 16px; }
textarea { min-height: 84px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: #fff; padding: 14px; margin-bottom: 8px; cursor: pointer; font-size: 15px; }
.choice input { margin-top: 4px; accent-color: var(--ink); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.msg { font-size: 14px; margin-top: 12px; min-height: 20px; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.fine { font-size: 13px; color: var(--muted); }

/* Test payment page */
.paybox { max-width: 460px; margin: 48px auto 80px; }
.testcard { background: #fff8e6; border: 1px dashed var(--warn); padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.testcard code { font-size: 15px; font-weight: 600; }

/* Order tracking */
.track { max-width: 720px; margin: 40px auto 80px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 24px 0; counter-reset: s; }
.steps li { border-top: 3px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); }
.steps li.done { border-color: var(--ink); color: var(--ink); }
.badge { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid currentColor; }

/* Text pages */
.prose { max-width: 720px; margin: 40px auto 80px; }
.prose h1 { font-size: 40px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.draft { background: #fff8e6; border-inline-start: 3px solid var(--warn); padding: 10px 14px; font-size: 14px; }

/* Footer */
footer.foot { border-top: 1px solid var(--line); padding: 48px 0 110px; font-size: 14px; color: var(--muted); }
footer.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer.foot h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; font-weight: 600; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }
@media (max-width: 720px) { footer.foot .wrap { grid-template-columns: 1fr 1fr; } footer.foot .wrap > :first-child { grid-column: 1 / -1; } }

/* Toast */
.toast { position: fixed; inset-inline: 16px; bottom: 20px; margin: 0 auto; max-width: 420px; background: var(--ink); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; gap: 14px; align-items: center; z-index: 40; font-size: 15px; transform: translateY(140%); transition: transform .3s ease; }
.toast.show { transform: none; }
.toast a { color: #fff; font-weight: 600; }

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

/* Look A details */
h1, h2, .logo { font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero h1 { font-weight: 500; font-style: italic; letter-spacing: -.02em; }
.logo { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: 24px; white-space: nowrap; }
.logo svg { flex: none; }
.btn { letter-spacing: .06em; }
.ribbon { background: var(--brand); color: #eef2f5; }
.eyebrow { color: var(--accent); font-weight: 600; }
.hero { background: radial-gradient(60% 80% at 85% 20%, rgba(200,118,63,.16), transparent 70%); }
.hero-art, .card .art, .pdp .gallery .art { border-radius: var(--round); }
.hero-art { --tone: #C8763F !important; }
.promise b { color: var(--brand); }
.bag-count { background: var(--brand); }
@media (max-width: 420px) { .logo { font-size: 18px; } .tools { gap: 0; } }
.opt, .choice { border-radius: 10px; }
.panel { border-radius: var(--round); }
.choice input { accent-color: var(--brand); }

/* Fit note, delivery promise, drop sign-up, help contact box */
.fit { font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 16px 0 4px; }
.promise-line { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.drop { padding: 48px 0; background: var(--brand); color: #f4f1ec; }
.drop .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.drop h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.drop p { margin: 0; }
.drop .eyebrow { color: #f2c9a6; }
.drop label { color: #dfe7ee; }
.drop .fine, .drop .fine a { color: #dfe7ee; margin-top: 10px; }
.drop-row { display: flex; gap: 8px; }
.drop-row input { flex: 1; min-width: 0; border-color: transparent; }
.drop .btn { background: var(--accent); border-color: var(--accent); }
.drop .btn:hover { background: #a95f2f; }
.drop .msg.ok { color: #fff; font-size: 16px; }
@media (max-width: 720px) { .drop .wrap { grid-template-columns: 1fr; gap: 20px; } .drop-row { flex-direction: column; } }
.ask { background: var(--paper); border: 1px solid var(--line); border-radius: var(--round); padding: 20px; margin: 8px 0 28px; }
.ask h2 { margin-top: 0 !important; }
.ask-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.drop .msg.bad { color: #ffd9d2; }
