/* John's Lists, brand v2 "Kitchen Table". Self-hosted OFL fonts, no third-party requests, no trackers. */
@font-face { font-family: "Fraunces JL"; src: url("assets/fonts/Fraunces-Soft-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces JL"; src: url("assets/fonts/Fraunces-Soft-600Italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree JL"; src: url("assets/fonts/Figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree JL"; src: url("assets/fonts/Figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree JL"; src: url("assets/fonts/Figtree-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Mono JL"; src: url("assets/fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #23203a;          /* 14.8:1 on cream */
  --cream: #fff7ec;
  --cream-2: #fbebd6;
  --muted: #5f5a70;        /* 6.2:1 on cream */
  --tang: #ff9f5a;         /* fills only, ink text on it 7.7:1 */
  --tang-text: #b8470f;    /* 5.0:1 on cream */
  --mint: #9fd9be;
  --sky: #b9d4ff;
  --butter: #ffd66b;
  --peach: #ffd2b3;
  --green-text: #0f6b4f;   /* 6.1:1 on cream */
  --line: #eadcc6;
  --display: "Fraunces JL", Georgia, "Times New Roman", serif;
  --sans: "Figtree JL", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono JL", ui-monospace, Menlo, monospace;
  --measure: 72rem;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; font-weight: 600; }
a:hover { color: var(--tang-text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 0 0 12px 0; z-index: 10; }
.skip:focus { left: 0; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header.site { position: sticky; top: 0; z-index: 5; background: rgba(255, 247, 236, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand img { width: 2.1rem; height: 2.1rem; }
.brand:hover { color: var(--ink); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
nav a { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
nav a:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; isolation: isolate; }
.hero::before { content: ""; position: absolute; width: 46rem; height: 44rem; right: -14rem; top: -10rem; border-radius: 52% 48% 44% 56% / 48% 56% 44% 52%; background: var(--cream-2); z-index: -1; }
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; background: var(--butter); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.03em; margin: 1.1rem 0 1.2rem; max-width: 9.6ch; }
.hero h1 em { color: var(--tang-text); font-style: italic; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.btn { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 16px; border: 2px solid var(--ink); font-weight: 800; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn.primary { background: var(--tang); }
.note { font-size: 0.95rem; color: var(--muted); max-width: 40rem; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; margin: 0; }
.price-note, .small-print, .buying .legal, footer.site p {
  font-size: 0.75rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
  max-width: 46rem;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 0.7rem;
}
.price-note { margin: 0; max-width: 40rem; }
.small-print a, .buying .legal a, footer.site a { font-weight: 400; }
.ticks { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.4rem; max-width: 40rem; }
.ticks li { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 600; font-size: 0.92rem; }
.ticks li::before { content: "✓ "; color: var(--green-text); font-weight: 800; }

.hero-art { position: absolute; right: -1rem; top: 2.5rem; width: 27rem; height: 24rem; }
.hero-art img { position: absolute; width: 23rem; border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.hero-art .a { right: 0; top: 0; transform: rotate(4deg); }
.hero-art .b { left: 0; top: 10rem; transform: rotate(-3deg); }
.hero h1, .hero .lede, .hero .price-note { position: relative; }
@media (max-width: 1180px) { .hero-art { display: none; } }
@media (min-width: 1181px) { .hero-art { display: block; } }

/* Sections */
section { padding: 3.5rem 0; }
section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.6rem; }
section h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; margin: 1.6rem 0 0.4rem; }
.section-intro { color: var(--muted); max-width: 44rem; margin: 0 0 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.6rem; }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.12s, box-shadow 0.12s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.card a.cover { display: block; border-bottom: 2px solid var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.card h3 a { color: var(--ink); text-decoration: none; font-weight: 600; }
.card h3 a:hover { color: var(--tang-text); }
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 0.6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; }
.price { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.price.free { background: var(--mint); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 0.7rem; font-family: var(--sans); font-weight: 800; font-size: 0.95rem; }
.vat { font-size: 0.85rem; color: var(--muted); }
.card .meta a { margin-left: auto; }

.bundle { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bundle-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.bundle a.cover img { border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.teasers { background: #f1fbf5; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about p, .buying p { max-width: 46rem; }
.buying .box { background: none; border: none; box-shadow: none; padding: 0; max-width: 46rem; }
.buying .box p, .buying .legal { font-size: 0.75rem; line-height: 1.45; font-weight: 400; color: var(--muted); margin: 0 0 0.7rem; max-width: 46rem; }
.buying .box p:last-child { margin-bottom: 0; }

/* Privacy page */
.doc-page { max-width: 48rem; }
.doc-page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.doc-page ul { padding-left: 1.2rem; }
.doc-page li { margin: 0.4rem 0; }
.doc-page li::marker { color: var(--tang-text); }
.updated { display: inline-block; font-family: var(--mono); font-size: 0.85rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; }

footer.site { background: transparent; color: var(--muted); padding: 1.6rem 0 2.2rem; margin-top: 1rem; border-top: 1px dashed var(--line); }
footer.site p { font-size: 0.75rem; line-height: 1.45; font-weight: 400; color: var(--muted); max-width: 46rem; margin: 0 0 0.45rem; }
footer.site a { color: var(--green-text); font-weight: 400; }
footer.site a:hover { color: var(--tang-text); }
footer nav { margin-top: 0.4rem; }
footer nav a { font-size: 0.75rem; font-weight: 400; color: var(--muted); }

@media (max-width: 800px) {
  .bundle-inner { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.7rem 1.5rem; }
  header.site { position: static; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  nav a { padding: 0.35rem 0.6rem; font-size: 0.92rem; }
  .card .meta a { margin-left: 0; }
}

/* SEO / review additions: labels, licence line, FAQ and 404, same Kitchen Table tokens */
.badge-soon {
  display: inline-block;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.card .licence {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.doc-page h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 1.6rem 0 0.4rem;
}
.not-found { padding: 4rem 0 3rem; }
.not-found .actions { margin: 1.6rem 0 1.2rem; }
footer.site .tm { margin-top: 0.6rem; }
