/* Fonts are served from this folder: no request leaves for a font service. */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-soft-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-soft-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The five colours of the logo, plus the tints needed to build an interface from them. */
  --bg: #201610;        /* logo: the dark of the tagline */
  --surface: #2b1f17;
  --surface-2: #36281e;
  --line: #4a382b;
  --text: #e9dab3;      /* logo: the cream of the letters */
  --muted: #b5a27d;
  --faint: #7c6a51;
  --accent: #f2a619;    /* logo: the yellow outline */
  --mustard: #f2a619;
  --red: #de2928;       /* logo: the red blocks */
  --orange: #ea6a20;    /* halfway between the yellow and the red */
  --deep: #8f1d1b;      /* the red, darkened */
  --radius: 22px;
  --pad: clamp(20px, 5vw, 64px);
  --sans: 'Outfit', 'Avant Garde', 'Century Gothic', 'Helvetica Neue', sans-serif;
  --display: 'Fraunces', 'Cooper Black', 'Souvenir', Georgia, serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* one soft, warm light from the upper left: a lamp, not a glow effect */
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(1000px 600px at 10% -10%, rgba(242, 166, 25, 0.08), transparent 62%), var(--bg);
  background-attachment: fixed;
}

/* The seventies sunset: banded arcs rising out of the top right corner. */
.sun {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(36vw, 430px);
  aspect-ratio: 1;
  background: radial-gradient(100% 100% at 100% 0,
    var(--mustard) 0 34%, var(--bg) 34% 38%,
    var(--orange) 38% 54%, var(--bg) 54% 58%,
    var(--red) 58% 74%, var(--bg) 74% 78%,
    var(--deep) 78% 94%, transparent 94%);
  transform-origin: 100% 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.has-query .sun { transform: scale(0.3); }

.top, .page, .foot { position: relative; z-index: 1; }

.label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- frame ---------- */

/* Everything sits on one left line and one right line: the edges of this frame. */
.top, .page, .foot {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.top { padding-top: 22px; }

.wordmark { display: inline-block; line-height: 0; }
.wordmark img { display: block; height: 104px; width: auto; transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.has-query .wordmark img { height: 84px; }

.page {
  flex: 1;
  padding-top: clamp(48px, 11vh, 128px);
  padding-bottom: 96px;
  transition: padding-top 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-query .page { padding-top: clamp(28px, 5vh, 56px); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  padding-top: 20px;
  padding-bottom: 28px;
}

/* the rule above the footer stops at the same two lines as everything else */
.foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--line);
}

/* ---------- hero ---------- */

.hero {
  overflow: hidden;
  max-height: 420px;
  transition: max-height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease, margin 0.45s ease;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.has-query .hero { max-height: 0; opacity: 0; margin-bottom: 0; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  font-weight: 800;
  line-height: 0.95;
  /* tight but not touching: the seventies headline setting */
  letter-spacing: -0.035em;
}

h1 em { font-style: italic; font-weight: 700; color: var(--red); }

.lede {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- the field ---------- */


.field {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.field:hover { border-color: #6b5340; }
.field:focus-within { border-color: var(--accent); background: var(--surface-2); }

#q {
  display: block;
  width: 100%;
  resize: none;
  overflow: hidden;
  border: 0;
  padding: 24px 64px 24px 28px;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

#q::placeholder { color: var(--faint); }
#q:focus { outline: none; }

.key {
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 0.8rem;
  transition: opacity 0.2s ease;
}

.field:focus-within .key { opacity: 0; }

.understood { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.understood .label { flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.chip {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1;
  animation: rise 0.22s ease both;
  transition: border-color 0.2s ease;
}

.chip:hover { border-color: #6b5340; }

.chip button { border: 0; background: none; color: inherit; font: inherit; cursor: default; }

.chip .chip-label { padding: 10px 4px 10px 16px; }
.chip .chip-label[data-cycle] { cursor: pointer; }
.chip .chip-label[data-cycle]:hover { color: var(--accent); }

.chip .chip-x { padding: 0 12px 1px 7px; color: var(--muted); font-size: 1.05rem; cursor: pointer; transition: color 0.2s ease; }
.chip .chip-x:hover { color: var(--accent); }

.chip.is-term { background: transparent; }
.chip.is-not { border-style: dashed; color: var(--muted); }
.chip.is-sort { color: var(--mustard); }
.chip.is-changed { border-color: var(--accent); }

button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- suggestions ---------- */

.examples { margin-top: 36px; }

.examples ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }

.examples li { animation: rise 0.4s ease both; }
.examples li:nth-child(2) { animation-delay: 0.05s; }
.examples li:nth-child(3) { animation-delay: 0.1s; }
.examples li:nth-child(4) { animation-delay: 0.15s; }
.examples li:nth-child(5) { animation-delay: 0.2s; }
.examples li:nth-child(6) { animation-delay: 0.25s; }

.examples button {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-align: left;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.examples button:hover { border-color: var(--mustard); background: var(--mustard); color: var(--bg); transform: translateY(-2px); }

.counts { margin: 34px 0 0; color: var(--faint); }

/* ---------- results ---------- */

.results { margin-top: 44px; }

.status { margin: 0 0 14px; }

.notice {
  margin: 14px 0 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.notice button {
  margin: 0 6px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }

.rows > li { border-top: 1px solid var(--line); transition: border-color 0.2s ease; }
.rows > li:hover { border-top-color: var(--red); }

.row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(150px, 220px);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  color: inherit;
  text-decoration: none;
  animation: rise 0.3s ease both;
}

.row-kind { line-height: 1.7; }
.row-kind .live-dot { color: var(--red); }

.row h3 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.row h3::after {
  content: '→';
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.row:hover h3 { color: var(--accent); }
.row:hover h3::after { opacity: 1; transform: none; }

.row.is-partner .row-kind { color: var(--mustard); }

.row-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

.row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; font-size: 0.82rem; }
.row-tags span { padding: 2px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.row-tags .hit { border-color: var(--mustard); background: var(--mustard); color: var(--bg); font-weight: 500; }

.row-sources { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.row-sources li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.row-sources .price { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.row-sources .price.free { color: var(--mustard); }

.more {
  margin-top: 28px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.more:hover { border-color: var(--accent); }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  .wordmark img { height: 84px; }
  .has-query .wordmark img { height: 72px; }
  .understood { flex-direction: column; align-items: flex-start; gap: 10px; }
  #q { padding: 20px 22px; }
  .key { display: none; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .row-kind br { display: none; }
  .row-kind span + span::before { content: ' · '; }
  .row-sources li { justify-content: flex-start; }
}

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

/* ---------- live site additions ---------- */

a { color: inherit; }


.chip.is-miss { border-style: dashed; color: var(--faint); }

.foot a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.foot a:hover { color: var(--accent); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* age gate: shown until the visitor confirms, remembered in their own browser */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: var(--pad);
}

html.age-ok .gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }

.gate-box { width: 100%; max-width: 1180px; margin: 0 auto; }
.gate-logo { display: block; width: min(460px, 82vw); height: auto; margin: 0 0 44px; }

.gate h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gate p { max-width: 34rem; margin: 22px 0 0; color: var(--muted); font-size: 1.15rem; font-weight: 300; }

.gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }

.gate button {
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--bg);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gate button:hover { background: var(--red); color: var(--text); transform: translateY(-2px); }
.gate-actions a { color: var(--muted); }

/* text pages */
.prose { max-width: 42rem; }
.prose h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 36px;
}
.prose h2 {
  margin: 44px 0 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prose p, .prose li { color: #d6c69f; font-size: 1.1rem; font-weight: 300; line-height: 1.75; }
.prose p { margin: 16px 0 0; }
.prose ul { margin: 16px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--mustard); }

/* not found */
.lost h1 { margin-top: 14px; }
.lost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px !important; }
.pill-button {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--bg) !important;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pill-button:hover { background: var(--red); color: var(--text) !important; transform: translateY(-2px); }
.quiet-link { color: var(--muted) !important; }
