/* ==========================================================================
   Sorted. — one-page site
   Plain CSS, no build step.
   ========================================================================== */

/* --- BRAND FONTS (self-hosted, assets/fonts) ------------------------------
   Helony      — display / headings (Rantau Type Studio; see licence note in README-brand.txt)
   Montserrat  — body + tagline (SIL Open Font License)
   Not shipped: "Mont ExtraLight DEMO" (demo licence), Marisa, Monda (not needed on web). */
@font-face { font-family: "Helony"; src: url("assets/fonts/Helony.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

/* --- BRAND PALETTE - swap here ---------------------------------------------
   Exact values read from the supplied vector artwork (Design work/Delivery/Vectors/*.pdf)
   and confirmed against the swatches on S_Branding Board.
     #B34F4D  brick red     wordmark tagline, Submark 3/4 circle+glyph, red-apple flavour, pack bands
     #414042  charcoal      "SORTED." wordmark text
     #FCF0E1  cream         logo / banner / submark circles
     #EEE5DC  sand          Branding Board swatch 1 (light grey-cream)
     #E47B75  coral         Branding Board swatch (SS pattern, Logo-11 background)
     #D58749  orange        Branding Board swatch, orange flavour, orange pack band
     #F0B569  honey         Branding Board swatch (yellow-orange, Submark 2 glyph)
     #F8F5F1  paper         Branding Board page background / sachet artwork white
*/
:root {
  --brand-brick:    #B34F4D;
  --brand-charcoal: #414042;
  --brand-cream:    #FCF0E1;
  --brand-sand:     #EEE5DC;
  --brand-coral:    #E47B75;
  --brand-orange:   #D58749;
  --brand-honey:    #F0B569;
  --brand-paper:    #F8F5F1;

  --color-bg:       var(--brand-paper);
  --color-surface:  var(--brand-cream);
  --color-surface-2:var(--brand-sand);
  --color-text:     var(--brand-charcoal);
  --color-muted:    #6b696c;           /* charcoal tint for secondary text (AA on paper) */
  --color-accent:   var(--brand-brick);
  --color-on-dark:  var(--brand-cream);

  --font-display: "Helony", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --shadow: 0 18px 40px -22px rgba(65, 64, 66, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand-charcoal); color: var(--brand-cream); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; }

/* tagline style: "daily·clarity·sorted" — Montserrat Light, wide tracking, lowercase */
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 400; font-size: .8rem;
  letter-spacing: .28em; text-transform: lowercase; color: var(--color-accent); margin-bottom: 1.1rem;
}
.on-dark .eyebrow { color: var(--brand-honey); }
.vm-card .eyebrow { color: var(--brand-brick); }

/* --- Buttons --- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  text-decoration: none; padding: 14px 28px; border-radius: 999px;
  background: var(--brand-brick); color: var(--brand-cream); border: 2px solid var(--brand-brick);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-charcoal); border-color: var(--brand-charcoal); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 241, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(65,64,66,.1); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo img { height: 36px; width: auto; }
#nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
#nav-links a { display: block; text-decoration: none; font-size: .88rem; letter-spacing: .06em; padding: 10px 14px; border-radius: 999px; }
#nav-links a:hover { background: var(--brand-sand); color: var(--brand-brick); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--brand-charcoal); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* --- Colour bands (from the Branding Board's stripe motif) --- */
.stripes { height: 18px; background: linear-gradient(to bottom, var(--brand-brick) 0 50%, var(--brand-orange) 50% 100%); }

/* --- Hero --- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.hero .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand-brick); }
.lead { font-size: 1.3rem; font-weight: 300; max-width: 30ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: calc(var(--radius) + 6px); background: var(--brand-brick); }
.hero-media img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* --- Sections --- */
.section { padding: clamp(60px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }

/* Vision / mission — brick red with the SS pattern */
.vm { background: var(--brand-brick) url("assets/brand/pattern-ss.svg") center / 240px; color: var(--brand-cream); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: var(--brand-cream); color: var(--brand-charcoal); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.vm-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.vm-card p { margin: 0; font-weight: 300; font-size: 1.08rem; }

/* Why — cards with coloured top band */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--brand-cream); border-radius: var(--radius); padding: 0 26px 30px; overflow: hidden; box-shadow: var(--shadow); }
.card::before { content: ""; display: block; height: 14px; margin: 0 -26px 24px; background: var(--card-band, var(--brand-brick)); }
.card:nth-child(1) { --card-band: var(--brand-brick); }
.card:nth-child(2) { --card-band: var(--brand-orange); }
.card:nth-child(3) { --card-band: var(--brand-coral); }
.card:nth-child(4) { --card-band: var(--brand-honey); }
.card .num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--card-band); margin-bottom: 14px; }
.card:nth-child(4) .num { color: var(--brand-orange); }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; font-weight: 300; }
.closing { margin: 44px 0 0; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.1rem); }
.closing span { color: var(--brand-brick); }

/* Product */
.product { background: var(--brand-sand); }
.product-top { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.product h2 .dot { color: var(--brand-brick); }
.size { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 1rem; }
.flavours { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 9px; background: var(--brand-cream); border-radius: 999px; padding: 7px 16px 7px 12px; font-size: .9rem; letter-spacing: .04em; }
.chip i { width: 14px; height: 14px; border-radius: 50%; }
.chip--apple i { background: var(--brand-brick); }
.chip--orange i { background: var(--brand-orange); }
.tagline-big { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; margin-top: 1.6rem; }
.flavour-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-self: center; }
.flavour { margin: 0; background: var(--brand-cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flavour img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.flavour figcaption { font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; letter-spacing: .02em; padding: 14px 22px 16px; border-top: 12px solid var(--flavour-color); color: var(--flavour-text); }
.flavour--apple  { --flavour-color: var(--brand-brick);  --flavour-text: var(--brand-brick); }
.flavour--orange { --flavour-color: var(--brand-orange); --flavour-text: #9a5a22; } /* darker orange for AA text; band stays #D58749 */

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 64px 0 28px; }
.point { border-top: 3px solid var(--brand-brick); padding-top: 16px; }
.point:nth-child(2) { border-color: var(--brand-orange); }
.point:nth-child(3) { border-color: var(--brand-coral); }
.point:nth-child(4) { border-color: var(--brand-honey); }
.point h3 { font-size: 1.2rem; margin-bottom: .3em; }
.point p { margin: 0; font-weight: 300; }
.use { max-width: 62ch; font-weight: 300; font-size: 1.1rem; }
.quote { margin: 48px 0 0; background: var(--brand-brick); color: var(--brand-cream); border-radius: var(--radius); padding: clamp(32px, 5vw, 60px); position: relative; overflow: hidden; }
.quote::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; background: url("assets/brand/ss-mark-cream.svg") center / contain no-repeat; opacity: .12; }
.quote p { margin: 0; position: relative; max-width: 24ch; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.25; }

/* The pack */
.pack .container { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pack figure { margin: 0; }
.pack img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.pack-copy .size { color: var(--brand-brick); }
.pack-copy p { font-weight: 300; font-size: 1.1rem; }
.marks { display: flex; gap: 14px; margin-top: 26px; }
.marks img { width: 64px; height: 64px; border-radius: 50%; }

/* Pattern band */
.band { background: var(--brand-brick) url("assets/brand/pattern-ss.svg") center / 240px; padding: clamp(56px, 9vw, 110px) 0; text-align: center; color: var(--brand-cream); }
.band p { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.1; }
.band span { display: inline-block; background: var(--brand-brick); padding: .1em .5em; border-radius: 18px; }

/* Coming next */
.next-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.next-item { display: flex; flex-direction: column; justify-content: flex-start; background: var(--brand-cream); border-radius: var(--radius); padding: 28px 24px 0; min-height: 230px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.next-item::after { content: ""; display: block; height: 56px; margin: auto -24px 0; background: var(--nx, var(--brand-brick)); position: relative; top: 0; }
.next-item:nth-child(1) { --nx: var(--brand-coral); }
.next-item:nth-child(2) { --nx: var(--brand-brick); }
.next-item:nth-child(3) { --nx: var(--brand-honey); }
.next-item:nth-child(4) { --nx: var(--brand-orange); }
.tag { align-self: flex-start; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; border: 1.5px solid var(--brand-charcoal); border-radius: 999px; padding: 3px 12px; margin-bottom: 18px; }
.next-item h3 { font-size: 1.3rem; margin-bottom: 24px; }
.next-item h3 span { color: var(--brand-brick); }

/* Footer */
.site-footer { background: var(--brand-brick); color: var(--brand-cream); padding: 40px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .logo img { height: 64px; }
.site-footer span { font-size: .88rem; letter-spacing: .08em; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .cards, .next-list { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
  .product-top, .pack .container { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  #nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--brand-paper); padding: 10px 24px 18px; border-bottom: 1px solid rgba(65,64,66,.12); }
  #nav-links.open { display: flex; }
  .hero .container, .vm-grid { grid-template-columns: 1fr; }
  .hero-media { margin: 0 14px 14px 0; }
  .hero-media::before { inset: 14px -14px -14px 14px; }
  .logo img { height: 30px; }
}
@media (max-width: 560px) {
  .cards, .next-list, .points { grid-template-columns: 1fr; }
  .flavour-pair { grid-template-columns: 1fr; }
  .next-item { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
