/* Anchovy brand stylesheet — shared by the marketing pages.
   Tin-label palette: flat printed color, condensed signage type, no gradients or glows. */

:root {
  --ink:        #14262E;   /* blue-black printing ink */
  --ink-soft:   #2E434C;
  --ink-mute:   #5E707A;
  --paper:      #F6F1E4;   /* oil-paper wrap */
  --paper-deep: #EDE6D3;
  --mustard:    #F2B824;   /* the label yellow; the app's gold in print */
  --mustard-deep: #D99F0E;
  --sea:        #0F4C5C;   /* the ocean on the label */
  --sea-soft:   #1E6B7E;
  --tomato:     #E24B2E;   /* hot buttons and urgency only */
  --tin:        #C9C4B6;   /* the metal */
  --tin-deep:   #9E9889;
  --white:      #FFFDF8;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-text:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.band-mustard :focus-visible, .band-ink :focus-visible { outline-color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale (Elements of Typographic Style, 1.25 ratio with display jumps) ---------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 7.4vw, 108px); }
h2 { font-size: clamp(44px, 6.2vw, 88px); }
h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; letter-spacing: 0.01em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34em; }
.small { font-size: 14px; }
p { max-width: 62ch; }

/* ---------- Bands (full-bleed color blocks) ---------- */
.band { padding: clamp(64px, 9vw, 128px) 0; }
.band-mustard { background: var(--mustard); color: var(--ink); }
.band-ink     { background: var(--ink); color: var(--paper); }
.band-paper   { background: var(--paper); color: var(--ink); }
.band-sea     { background: var(--sea); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-mustard { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.btn-mustard:hover { background: var(--mustard-deep); border-color: var(--mustard-deep); }
.btn-paper   { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 0.02em; line-height: 1; }
.brand .mark { width: 44px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.site-nav .btn:hover { border-bottom-color: var(--ink); }
@media (max-width: 640px) { .site-nav a.nav-link { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 40px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.site-footer .brand { color: var(--mustard); font-size: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-footer a { color: var(--paper); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { width: 100%; opacity: 0.6; }

/* ---------- The tin ---------- */
/* Markup: .tin > .tin-body > (.tin-inside, .tin-lid, .tin-roll, .tin-key)
   The key turns and the lid rolls from the right edge onto the key at the left,
   exactly like the daily launch gate in the app. */
.tin { position: relative; width: 100%; max-width: 620px; aspect-ratio: 62 / 44; margin: 0 auto; }
.tin-body {
  position: absolute; left: 0; right: 0; top: 10%; bottom: 0;
  border-radius: 13% / 20%;
  background: var(--tin);
  box-shadow: inset 0 0 0 6px var(--tin-deep), inset 0 0 0 12px #DAD6CA;
}
.tin-inside {
  position: absolute; inset: 14px; border-radius: 11% / 17%;
  background: var(--paper); overflow: hidden;
}
/* Rounded, overflow-clipped wrapper: lets the lid animate with a plain inset()
   (which browsers interpolate smoothly) while the rounded corners are preserved
   by this wrapper. Animating clip-path WITH a `round` radius snaps instead of
   wiping in Safari/WebKit — that caused the lid to vanish all at once. */
.tin-lid-clip {
  position: absolute; inset: 14px; border-radius: 11% / 17%;
  overflow: hidden;
}
.tin-lid {
  position: absolute; inset: 0;
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--mustard);
  color: var(--mustard);
  display: grid; place-content: center; text-align: center;
}
.tin-lid .lid-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 9vw, 92px); line-height: 0.9; letter-spacing: 0.02em; }
.tin-lid .lid-line { font-weight: 600; font-size: clamp(12px, 1.8vw, 16px); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 10px; }
.tin-lid .lid-fine { font-size: clamp(10px, 1.3vw, 12px); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 18px; color: var(--paper); opacity: 0.8; }
.tin-lid .lid-fish { width: clamp(90px, 20%, 140px); margin: 0 auto 8px; }
.tin-roll {
  position: absolute; top: 14px; bottom: 14px; width: 16px;
  left: calc(100% - 14px - 16px);
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, #2E434C 3px 6px);
  box-shadow: inset 0 0 0 2px var(--mustard);
}
.tin-key {
  position: absolute; width: 11%; aspect-ratio: 1 / 2.2;
  top: -2%; left: calc(100% - 14px - 16px - 2.5%);
  transform-origin: 50% 70%;
}
.tin-key .ring { transform-origin: 50% 32%; }
.tin-fillets { position: absolute; inset: 0; display: grid; gap: 4%; padding: 7% 6%; grid-auto-rows: 1fr; }
.fillet {
  display: flex; align-items: center; gap: 4%;
  background: var(--ink); border-radius: 999px; padding: 0 5%;
  color: var(--paper); min-height: 0;
}
.fillet .avatar { flex: none; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--mustard); color: var(--ink); display: grid; place-content: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(11px, 2.2vw, 20px); }
.fillet .who { font-weight: 700; font-size: clamp(11px, 1.9vw, 17px); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fillet .why { font-size: clamp(9px, 1.5vw, 14px); line-height: 1.2; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fillet .text { min-width: 0; }
.fillet .tag { margin-left: auto; flex: none; font-size: clamp(8px, 1.25vw, 12px); font-weight: 600; letter-spacing: 0.04em; padding: 0.3em 0.7em; border-radius: 999px; background: var(--mustard); color: var(--ink); }
.fillet .tag.hot { background: var(--tomato); color: var(--paper); }
.fillet .tag.sea { background: var(--sea-soft); color: var(--paper); }

/* Opening: the lid is clipped from the right as the roll travels left. */
@keyframes lid-roll   { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
@keyframes roll-travel { from { left: calc(100% - 14px - 16px); width: 16px; } to { left: 14px; width: 30px; } }
@keyframes key-travel  { from { left: calc(100% - 14px - 16px - 2.5%); } to { left: calc(14px - 2.5% + 7px); } }
@keyframes key-turn    { from { transform: rotate(0deg); } to { transform: rotate(1080deg); } }

.tin.is-opening .tin-lid  { animation: lid-roll 1700ms cubic-bezier(.65,0,.3,1) 500ms both; }
.tin.is-opening .tin-roll { animation: roll-travel 1700ms cubic-bezier(.65,0,.3,1) 500ms both; }
.tin.is-opening .tin-key  { animation: key-travel 1700ms cubic-bezier(.65,0,.3,1) 500ms both; }
.tin.is-opening .tin-key .ring { animation: key-turn 1700ms cubic-bezier(.65,0,.3,1) 500ms both; }

.tin.is-open .tin-lid  { clip-path: inset(0 100% 0 0); }
.tin.is-open .tin-roll { left: 14px; width: 30px; }
.tin.is-open .tin-key  { left: calc(14px - 2.5% + 7px); }

.tin-replay { position: absolute; right: 0; bottom: -40px; background: none; border: 0; padding: 8px 0; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .tin.is-opening .tin-lid, .tin.is-opening .tin-roll, .tin.is-opening .tin-key, .tin.is-opening .tin-key .ring { animation: none; }
  .tin .tin-lid  { clip-path: inset(0 100% 0 0); }
  .tin .tin-roll { left: 14px; width: 30px; }
  .tin .tin-key  { left: calc(14px - 2.5% + 7px); }
  html { scroll-behavior: auto; }
}
