/* Kettle & Pencil site (rulings I6, I14, I16). Brand v3: brand/README.md. Fonts are served from here, so no
   visitor's browser asks a font service for anything. Body text never under 18px; never gray. */
@font-face { font-family: 'Bitter'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/bitter-800.woff2') format('woff2'); }
@font-face { font-family: 'Bitter'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/bitter-700.woff2') format('woff2'); }
@font-face { font-family: 'Bitter'; font-weight: 400 500; font-style: italic; font-display: swap; src: url('/fonts/bitter-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/atkinson-400.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/atkinson-700.woff2') format('woff2'); }

:root { --ink: #2A2420; --paper: #F7F1E6; --plum: #5C2448; --brass: #B8782A; --lake: #25708F; --leaf: #2A4F27; --finch: #D9A21B; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Atkinson Hyperlegible', Verdana, sans-serif; font-size: 20px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--plum); }
img { max-width: 100%; height: auto; }
.serif { font-family: Bitter, Georgia, serif; }
.amp { font-family: Bitter, Georgia, serif; font-style: italic; font-weight: 500; color: var(--plum); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; }
.sec { padding: 56px 16px; }
.rule-t { border-top: 2px solid var(--brass); }
.rule-b { border-bottom: 2px solid var(--brass); }
.h1 { font-family: Bitter, Georgia, serif; font-weight: 800; font-size: 44px; line-height: 1.06; letter-spacing: -0.015em; }
.h2 { font-family: Bitter, Georgia, serif; font-weight: 800; font-size: 34px; line-height: 1.1; }
.h3 { font-family: Bitter, Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.25; }
.lead { font-size: 22px; }
.small { font-size: 18px; }
.tick { display: block; width: 40px; height: 3px; background: var(--brass); }
.stack { display: flex; flex-direction: column; }
.g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; } .g36 { gap: 36px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; padding: 12px 16px; background: var(--ink); color: var(--paper); z-index: 10; }

.hdr { padding: 16px; border-bottom: 2px solid var(--brass); }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); }
.logo .word { font-family: Bitter, Georgia, serif; font-weight: 700; font-size: 26px; line-height: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 14px 28px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 10px; font-weight: 700; font-size: 21px; text-decoration: none; }
.btn:hover { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-soon { background: transparent; color: var(--ink); border: 2px dashed var(--ink); cursor: default; }
.btn-soon:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.tlink { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; font-size: 20px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn:focus-visible, .tlink:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.pill { align-self: flex-start; padding: 6px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 700; font-size: 18px; }

.hero { display: flex; flex-direction: column; gap: 36px; }
.hero .cover { width: 100%; max-width: 420px; align-self: center; box-shadow: 0 18px 40px -18px rgba(42, 36, 32, 0.45); }
.books { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 20px; padding: 24px; border: 2px solid var(--ink); border-radius: 14px; }
.card img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.next { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.soon { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 280px; padding: 28px; border-radius: 14px; }
.band { background: var(--lake); color: var(--paper); }
.band .inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.band .h2, .band p { color: var(--paper); }
.foot { display: flex; flex-direction: column; gap: 24px; }
.flinks { display: flex; flex-wrap: wrap; column-gap: 28px; }
.flinks a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 20px; }

/* The homepage's try-it puzzle. */
.play { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.board { position: relative; width: 336px; }
.cells { display: grid; grid-template-columns: repeat(8, 42px); grid-auto-rows: 42px; }
.cell { width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 8px; cursor: pointer; background: transparent; color: var(--ink); font-family: 'Atkinson Hyperlegible', sans-serif; font-weight: 700; font-size: 26.67px; line-height: 42px; text-align: center; }
.cell:hover { box-shadow: inset 0 0 0 2px var(--brass); }
.cell[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ring { position: absolute; z-index: 1; pointer-events: none; border: 3px solid var(--lake); border-radius: 18px; }
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.words li { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.words li.got { background: var(--lake); color: var(--paper); text-decoration: line-through; }
.sr { position: absolute; left: -9999px; }

/* The bonus page. */
.badge { width: 96px; height: auto; transform: scaleX(-1); flex-shrink: 0; }
.pvrow { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pv { width: 100%; max-width: 330px; }
.pv img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); box-shadow: 0 18px 40px -18px rgba(42, 36, 32, 0.45); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; }
.more { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* The privacy page. */
.prose { max-width: 720px; }
.prose h2 { font-family: Bitter, Georgia, serif; font-weight: 700; font-size: 28px; margin: 36px 0 12px; }
.prose p, .prose li { margin: 0 0 14px; }

@media (min-width: 760px) {
  .sec { padding: 88px 40px; }
  .hdr { padding: 20px 40px; }
  .h2 { font-size: 44px; }
  .books, .next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play { flex-direction: row; align-items: flex-start; gap: 48px; }
  .badge { width: 180px; }
  .pvrow { flex-direction: row; justify-content: center; gap: 64px; }
  .pv { max-width: 380px; }
}
@media (min-width: 960px) {
  .hero { flex-direction: row; align-items: center; gap: 64px; }
  .h1 { font-size: 68px; }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .band .inner { flex-direction: row; align-items: center; gap: 56px; }
  .foot { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .more { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
