/* Sauce Book — the Bottle Label system on the web.
   Tokens mirror SauceBook/Design/Theme.swift and Model/SauceColor.swift.
   Light and dark are equals; the page follows the system setting. */

/* Archivo, self-hosted so the site makes no requests to anyone else.
   Only used where SF isn't available (see --display). Subsets from Google
   Fonts; licence in fonts/LICENSE.txt. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ECE7DD;
  --surface: #F6F3ED;
  --ink: #15130F;
  --muted: #5C554B;
  --hair: #CFC7B9;

  /* SF on Apple devices, at the app's widths (Compressed for display, Condensed
     for amounts). Elsewhere, Archivo, which clamps to its narrowest cut. */
  --display: -apple-system, BlinkMacSystemFont, "Archivo", sans-serif;
  --text: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11100D;
    --surface: #1B1915;
    --ink: #F1EBE0;
    --muted: #A39A8C;
    --hair: #34302A;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

/* Sauce colors: a fill and the ink that reads on it. */
.habanero    { --fill: #D9642A; --on: #15130F; }
.mango       { --fill: #E4952B; --on: #15130F; }
.pineapple   { --fill: #E8C04A; --on: #15130F; }
.verde       { --fill: #4E6828; --on: #F7F1E3; }
.fresno      { --fill: #B8321F; --on: #F7F1E3; }
.chipotle    { --fill: #7A2E1F; --on: #F7F1E3; }
.dragonfruit { --fill: #B23A6C; --on: #F7F1E3; }
.blackgarlic { --fill: #3B1F2B; --on: #F7F1E3; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-variation-settings: "wdth" 30;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}

.condensed {
  font-family: var(--display);
  font-stretch: 50%;
  font-weight: 800;
}

.micro {
  font-family: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.muted { color: var(--muted); }

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-size: 26px;
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.slab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-stretch: 50%;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.slab:hover { transform: translateY(-1px); }
.slab:active { transform: translateY(1px); }
.slab:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

.slab.small {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 17px;
}

/* ---------- The label ---------- */

.label {
  background: var(--fill);
  color: var(--on);
  border-radius: 14px;
  padding: 6px;
}

.label-in {
  border: 1.5px solid color-mix(in srgb, var(--on) 42%, transparent);
  border-radius: 9px;
  padding: 13px 15px 14px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.label-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label-name { font-size: 36px; }

.heat { display: inline-flex; gap: 3px; flex: none; }
.heat i {
  width: 5px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.25;
}
.heat i.on { opacity: 1; }

/* The big one at the top of the page. */
.hero-label { border-radius: 22px; padding: 8px; }
.hero-label .label-in {
  border-radius: 15px;
  padding: 18px 20px 20px;
  min-height: 0;
  gap: 0;
}
.hero-label .label-name {
  margin: clamp(40px, 8vw, 96px) 0 0;
  font-size: clamp(92px, 26vw, 344px);
  line-height: 0.86;
}
/* On a phone the name breaks onto two lines, so each word gets the width. */
@media (max-width: 559px) {
  .hero-label .label-name { font-size: 38vw; line-height: 0.84; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px solid color-mix(in srgb, var(--on) 42%, transparent);
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat .micro { font-size: 10px; margin-bottom: 6px; }
.stat-value { font-size: 26px; line-height: 1; height: 24px; display: flex; align-items: flex-end; }
.stat .heat i { width: 6px; height: 22px; }

/* ---------- Hero ---------- */

.hero { padding-top: 4px; }

.pitch {
  display: grid;
  gap: 28px;
  margin-top: 36px;
  align-items: end;
}
@media (min-width: 900px) {
  .pitch { grid-template-columns: 1.35fr 1fr; gap: 56px; }
}

.lead {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.cta { display: grid; gap: 12px; justify-items: start; }
.cta-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding-top: clamp(72px, 10vw, 128px); }

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--ink);
}
.head h2 { margin: 0; font-size: clamp(44px, 7vw, 76px); }
.head .count { font-weight: 700; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }

.row {
  display: grid;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
  .row.flip > :first-child { order: 2; }
}

.row h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.row p { margin: 0 0 14px; max-width: 34em; text-wrap: pretty; }

.points { list-style: none; margin: 24px 0 0; padding: 0; }
.points li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.points li:last-child { border-bottom: 1px solid var(--hair); }
.points .tag { font-size: 22px; line-height: 1.1; }
.points strong { font-weight: 650; }

/* Screenshots: the real app, in a plain rounded frame. */
.shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 330px);
}
.shot img {
  width: 100%;
  border-radius: 40px;
  border: 1px solid var(--hair);
  box-shadow: 0 1px 0 var(--hair), 0 24px 48px -24px rgb(21 19 15 / 0.35);
}
.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

.shots-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-self: center;
  width: min(100%, 560px);
}
.shots-pair .shot { width: 100%; }
.shots-pair .shot:last-child { margin-top: 48px; }

/* The shelf of labels. */
.shelf {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
@media (min-width: 560px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
.shelf .label-name { font-size: 30px; }

/* ---------- Typing demo ---------- */

.typing { display: grid; gap: 14px; }

.field {
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 16px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.caret {
  width: 2px;
  height: 1.2em;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lines { border-top: 2.5px solid var(--ink); }
.line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.line .name { font-size: 18px; line-height: 1.3; }
.line .note { display: block; font-size: 16px; color: var(--muted); }
.line .amt { font-size: 21px; line-height: 1.2; white-space: nowrap; }
.typed { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.typed code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ink); }

/* ---------- Privacy band ---------- */

.promise { display: grid; gap: 10px; }
.promise .label-in { min-height: 108px; flex-direction: row; align-items: flex-end; }
.promise .label-name { font-size: 52px; line-height: 0.8; }
.promise .label-top { align-self: flex-start; }

/* ---------- Closing ---------- */

.closing {
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(32px, 6vw, 64px) var(--gutter);
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 24px;
  justify-items: start;
}
.closing h2 { margin: 0; font-size: clamp(52px, 9vw, 112px); }
.closing p { margin: 0; max-width: 32em; font-size: 19px; }
.closing .slab { background: var(--paper); color: var(--ink); }
.closing .slab:focus-visible { outline-color: var(--paper); }
.closing .cta-note { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Long-form pages (privacy) ---------- */

.doc { max-width: 680px; padding-top: 24px; padding-bottom: 24px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(56px, 11vw, 96px); }
.doc .effective { margin: 0 0 28px; padding-bottom: 14px; border-bottom: 2.5px solid var(--ink); }
.doc h2 { margin: 40px 0 10px; font-size: 32px; }
.doc p, .doc li { text-wrap: pretty; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .short {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .slab { transition: none; }
}

/* Three example labels are plenty on a phone. */
@media (max-width: 559px) {
  .shelf .label:nth-child(n+4) { display: none; }
}
