/* GiftScout — Modernist.
   Tokens below come from the design system; the layout classes are the
   design-canvas markup translated out of inline style="" attributes, which the
   app's CSP (style-src 'self') drops on sight. Everything visual lives here.
   Archivo is self-hosted: a Google Fonts <link> would need style-src and
   font-src widened to two more origins, and would make a third party party to
   every page view, which the privacy page says does not happen. */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900;
  font-stretch: 100%; 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: 400 900;
  font-stretch: 100%; 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;
}
/* Names get typed into this app by hand, so the Vietnamese block earns its 13 KB. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900;
  font-stretch: 100%; font-display: swap;
  src: url("/fonts/archivo-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --ink: #201e1d;

  --n200: #eae7e7;
  --n300: #d7d3d3;
  --n400: #bab6b6;
  --n600: #7d7979;
  --n700: #605d5d;
  --n800: #444141;

  --accent: #ec3013;
  --accent-100: #fff2ef;
  --accent-200: #ffe0d9;
  --accent-300: #ffc4b8;
  --accent-600: #dd2b0f;
  --accent-700: #ae1800;
  --accent-800: #7c1405;

  --rule: 2px solid var(--ink);   /* structural division */
  --hair: 1px solid var(--n300);  /* division inside a block */
  --pad: 40px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
a { color: var(--accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-600); text-decoration: underline; }
::selection { background: var(--accent-300); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hidden { display: none !important; }
.muted { color: var(--n600); }

/* Uppercase micro-label. The whole system leans on it: section heads, stat
   captions, tab labels, anything that is scaffolding rather than content. */
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--n600);
}
.kicker-accent { color: var(--accent-700); }
.kicker-lg { font-size: 12px; letter-spacing: 0.16em; }

/* ═══════════════════════════════════════════════════════════════ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 800; line-height: 1.2;
  padding: 9px 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: transparent;
  border: 1px solid transparent; border-radius: 0;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-600); color: var(--bg); }
.btn-primary:active { background: var(--accent-700); }
.btn-secondary { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.btn-ghost { color: var(--accent-700); padding-inline: 6px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-700); }

/* Small uppercase text button, used inline in rows. */
.link {
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; background: none; border: 0; padding: 0;
  color: var(--accent-700); cursor: pointer;
}
.link:hover { text-decoration: underline; }

/* ═════════════════════════════════════════════════════════════════ forms */

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span {
  font-size: 12px; color: var(--n700);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px;
  font: inherit; font-size: 14px; color: var(--ink);
  caret-color: var(--accent); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }

.checkline { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checkline input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ═════════════════════════════════════════════════════════════════ banner */

.banner {
  margin: 0; padding: 12px var(--pad); font-size: 13px;
  background: var(--accent-200); color: var(--accent-800); border-bottom: var(--rule);
}
.banner-error { background: var(--accent); color: var(--accent-100); }

/* ═══════════════════════════════════════════════════════════════ landing */

.l-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--pad); border-bottom: var(--rule);
}
.brand {
  font-weight: 900; font-size: 19px; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.l-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.l-headright { display: flex; align-items: center; gap: 20px; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; border-bottom: var(--rule); }
.hero-main { padding: 64px var(--pad) 56px; border-right: var(--rule); }
.hero-side { padding: var(--pad); }

.display {
  font-size: 68px; line-height: 0.96; font-weight: 900;
  letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance;
}
.lede { margin-top: 32px; max-width: 52ch; font-size: 18px; line-height: 1.5; color: var(--n800); }
.cta-row { display: flex; gap: 12px; margin: 36px 0 16px; flex-wrap: wrap; }
.fineprint { font-size: 13px; color: var(--n600); max-width: 46ch; }

/* The queue preview: what the reminder list actually looks like. */
.queue-row {
  display: grid; grid-template-columns: 62px 1fr auto;
  align-items: baseline; gap: 16px; padding: 16px 0; border-top: var(--hair);
}
.queue-days { font-size: 30px; font-weight: 900; letter-spacing: -0.04em; }
.queue-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.queue-name { font-weight: 700; }
.queue-meta { font-size: 13px; color: var(--n700); }
.queue-stage {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n600);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--rule); }
.step { padding: var(--pad); border-right: var(--rule); }
.step:last-child { border-right: 0; }
.step h3 { margin: 14px 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.step p { color: var(--n800); max-width: 34ch; }

.statement {
  background: var(--accent); color: var(--accent-100);
  padding: 72px var(--pad); border-bottom: var(--rule);
}
.statement h2 {
  font-size: 54px; line-height: 1; font-weight: 900;
  letter-spacing: -0.035em; max-width: 28ch; text-wrap: balance;
}
.statement p { margin-top: 24px; font-size: 17px; max-width: 56ch; color: var(--accent-200); }

/* ══════════════════════════════════════════════════════════════ app shell */

.a-header {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 24px; border-bottom: var(--rule);
}
.a-headleft { display: flex; align-items: stretch; min-width: 0; }
.a-brandcell { display: flex; align-items: center; padding: 0 32px; border-right: var(--rule); }
.a-headright { display: flex; align-items: center; gap: 18px; padding: 0 32px; }
.a-email { font-size: 13px; color: var(--n700); }

.tabs { display: flex; }
.tab {
  position: relative; appearance: none; background: none; border: 0;
  border-right: var(--hair); padding: 20px 26px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}
.tab:hover { background: var(--n200); }
/* The active mark is a child element in the design; a pseudo-element keeps the
   markup free of a span that exists only to be a rectangle. */
.tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════ people: strip */

.strip { border-bottom: var(--rule); }
.strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 20px var(--pad) 16px;
}
.strip-head h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.strip-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-top: var(--hair); overflow-x: auto;
}
.strip-cell {
  position: relative; appearance: none; background: none; border: 0;
  border-right: var(--hair); padding: 20px 22px 22px; cursor: pointer;
  font: inherit; text-align: left; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; min-width: 150px;
}
.strip-cell:hover { background: var(--n200); }
.strip-cell.is-selected::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--accent);
}
.strip-count { display: flex; align-items: baseline; gap: 8px; }
.strip-days { font-size: 38px; font-weight: 900; letter-spacing: -0.045em; }
.strip-unit { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n600); }
.strip-name { font-weight: 700; font-size: 16px; }
.strip-meta { font-size: 12px; color: var(--n700); }
.is-soon { color: var(--accent-700); }

/* ════════════════════════════════════════════════════════ people: columns */

.workspace { display: grid; grid-template-columns: 340px 1fr; min-height: 620px; }
.sidebar { border-right: var(--rule); }
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 24px; border-bottom: var(--hair);
}
.sidebar-head h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.person-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 24px; border-bottom: var(--hair); background: var(--surface);
}
.form-actions { display: flex; gap: 10px; }

.person-row {
  position: relative; width: 100%; appearance: none; background: none; border: 0;
  border-bottom: var(--hair); padding: 16px 24px 16px 28px; cursor: pointer;
  font: inherit; text-align: left; color: var(--ink);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
}
.person-row:hover { background: var(--n200); }
.person-row.is-selected::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
}
.person-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person-row-name { font-weight: 700; font-size: 16px; }
.person-row-meta { font-size: 12px; color: var(--n700); }
.person-row-days {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ═════════════════════════════════════════════════════════ people: detail */

.detail-head {
  padding: 32px var(--pad) 28px; border-bottom: var(--rule);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.detail-name { font-size: 46px; font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.detail-sub { margin-top: 12px; font-size: 15px; color: var(--n800); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: var(--rule); }
.stat { padding: 24px 32px; border-right: var(--hair); }
.stat:first-child { padding-left: var(--pad); }
.stat:last-child { border-right: 0; }
.stat-value { margin-top: 8px; font-size: 40px; font-weight: 900; letter-spacing: -0.04em; }
.stat-text { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.35; }

.schedule { padding: 28px var(--pad); border-bottom: var(--rule); }
.sched-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 16px; }
.sched-cell {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); color: var(--n700);
}
.sched-cell.is-sent { background: var(--accent); color: var(--accent-100); }
.sched-lead { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.sched-status { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.sched-date { font-size: 12px; opacity: 0.8; }

.saved { padding: 28px var(--pad) 48px; }
.saved-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.idea-row {
  display: grid; grid-template-columns: 72px 1fr auto auto;
  align-items: center; gap: 20px; padding: 16px 0; border-top: var(--hair);
}
.idea-tile { width: 72px; height: 72px; display: block; object-fit: cover; background: var(--n300); }
.idea-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.idea-title { font-weight: 600; font-size: 16px; color: var(--ink); }
.idea-title:hover { color: var(--ink); }
.is-gone .idea-title { text-decoration: line-through; color: var(--n600); }
.idea-shop { font-size: 12px; color: var(--n700); }
.idea-state { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n700); }
.is-gone .idea-state { color: var(--accent-700); }
.is-low .idea-state { color: var(--accent-800); }
.idea-right { display: flex; align-items: center; gap: 18px; }
.idea-price { font-weight: 700; font-size: 16px; }

.empty-note {
  margin-top: 20px; padding: 24px; border: var(--hair);
  font-size: 14px; color: var(--n700);
}
.empty-plain { padding: 24px; font-size: 14px; color: var(--n600); }

/* Placeholder blocks for listings with no picture. A fixed palette as classes
   rather than a colour written into a style attribute, which the CSP drops. */
.tile-0 { background: var(--n300); }
.tile-1 { background: var(--n400); }
.tile-2 { background: var(--n200); }
.tile-3 { background: #9b9797; }
.tile-4 { background: var(--accent-300); }
.tile-5 { background: #c9c5c5; }

/* ════════════════════════════════════════════════════════════════ search */

.search-form {
  display: grid; grid-template-columns: 1fr 120px 120px 190px auto;
  gap: 12px; align-items: end; padding: 24px var(--pad); border-bottom: var(--rule);
}
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding: 20px var(--pad) 0; flex-wrap: wrap;
}
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding: 20px var(--pad) 56px;
}
.rcard { display: flex; flex-direction: column; background: var(--surface); }
.rcard-thumb {
  display: block; aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  background: var(--n300);
}
.rcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rcard-title { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); }
.rcard-title:hover { color: var(--ink); }
.rcard-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: auto;
}
.rcard-price { font-weight: 800; font-size: 17px; }
.rcard-favs { font-size: 12px; color: var(--n700); }
.rcard select { font-size: 13px; }

/* ══════════════════════════════════════════════════════════════ settings */

.settings { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.set-col { border-right: var(--rule); }
.set-col:last-child { border-right: 0; }
.set-block { padding: 28px var(--pad); border-bottom: var(--hair); }
.set-block:last-child { border-bottom: 0; }
.set-value { margin-top: 8px; font-size: 22px; font-weight: 700; }
.set-note { margin-top: 14px; font-size: 13px; color: var(--n700); max-width: 46ch; }
.set-body { margin-top: 12px; font-size: 15px; color: var(--n800); max-width: 46ch; }

/* ════════════════════════════════════════════════════════════════ footer */

.foot {
  padding: 24px var(--pad) 40px; border-top: var(--rule);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.foot-nav {
  display: flex; gap: 24px; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.foot-legal { font-size: 12px; color: var(--n600); max-width: 62ch; }

/* ════════════════════════════════════════════════════════════ responsive */

@media (max-width: 1100px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { border-right: 0; border-bottom: var(--rule); padding: 44px var(--pad) 40px; }
  .display { font-size: 46px; max-width: none; }
  .statement { padding: 48px var(--pad); }
  .statement h2 { font-size: 34px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: var(--rule); }
  .step:last-child { border-bottom: 0; }

  .a-header { flex-direction: column; align-items: stretch; }
  .a-brandcell { border-right: 0; border-bottom: var(--hair); padding: 16px var(--pad); }
  .a-headleft { flex-direction: column; }
  .tabs { overflow-x: auto; }
  .a-headright { padding: 12px var(--pad); border-top: var(--hair); }

  .workspace { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: var(--rule); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: var(--hair); padding-left: var(--pad); }
  .stat:last-child { border-bottom: 0; }
  .detail-name { font-size: 34px; }
  .settings { grid-template-columns: 1fr; }
  .set-col { border-right: 0; border-bottom: var(--rule); }
  .set-col:last-child { border-bottom: 0; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .sched-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .idea-row { grid-template-columns: 56px 1fr; row-gap: 8px; }
  .idea-tile { width: 56px; height: 56px; }
  .idea-state, .idea-right { grid-column: 2; }
  .display { font-size: 36px; }
}
