/* snakebuttwords.com -- the marketing site.
   Plain CSS, no build step, nothing loaded from anywhere else. The palette is
   lifted straight from the game (snakebuttwords/style.css): a light brown table,
   cream keys, a green snake, dark blue bonus keys. */

:root {
  color-scheme: light;
  --table: #ddc39c;
  --table-light: #f0dcbb;
  --table-dark: #c2a67f;
  --key: #f6efdd;
  --key-light: #fffaf0;
  --key-edge: #ab9068;
  --ink: #33240f;
  --ink-soft: #4a3720;
  --green: #3f7f1a;         /* BUTT, on the lighter table only (large text) */
  --green-ink: #2f6b12;     /* green text on cream */
  --green-hi: #8fd94a;
  --green-lo: #58a924;
  --green-edge: #3d7a1e;
  --blue: #2c4f9e;
  --blue-dark: #1a2f66;
  --focus: #1a2f66;
  --font: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --radius: 22px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html {
  background: var(--table);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  /* the game's table, lit from the top here so the title sits on the light part */
  background:
    radial-gradient(130% 70% at 50% 0%, var(--table-light) 0%, var(--table) 55%, var(--table-dark) 120%) no-repeat,
    var(--table);
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; }

a { color: var(--green-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--key-light);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--key-edge);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
}

main { flex: 1 0 auto; }

/* ---------- header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 16px;
}
.brand img { border-radius: 9px; box-shadow: 0 2px 0 var(--key-edge); }
.brand span span { color: var(--green-ink); }

.site-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255, 250, 240, .45);
  border: 2px solid rgba(138, 111, 78, .45);
}
.site-nav a:hover { background: var(--key-light); }
.site-nav a[aria-current="page"] { background: var(--key-light); border-color: #8a6f4e; }

/* ---------- the chunky title ---------- */

.title {
  margin: 0;
  font-weight: 900;
  line-height: .98;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 250, 240, .55);
  overflow-wrap: anywhere;
}
.title .butt { color: var(--green); }

.hero-title { font-size: clamp(40px, 8.4vw, 84px); }
/* the three words stack on a phone, where one line would not fit */
.hero-title span { display: inline-block; }

.page-title { font-size: clamp(32px, 6vw, 54px); }

.tagline {
  margin: 16px 0 0;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 30ch;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
}

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

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 40px;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
}

.hero-copy .soon { margin-top: 28px; }

.hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-points li {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 250, 240, .55);
  border: 1px solid rgba(138, 111, 78, .4);
  border-radius: 999px;
  padding: 4px 12px;
}

/* the decorative board */
.hero-art {
  margin: 0 auto;
  width: 100%;
  max-width: 460px;
}

.word-slab {
  display: flex;
  justify-content: flex-end;
  margin: 0 6px 12px;
}
.word-slab span {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 12px;
  background: #7f9e4c;
  color: #ffffff;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1.15;
  text-shadow: 0 0 14px rgba(255, 255, 255, .85);
}
.word-slab b {
  font-size: .62em;
  letter-spacing: .06em;
  color: #fff6c2;
  text-shadow: 0 0 12px rgba(255, 226, 120, .9);
}

.board-art { display: block; width: 100%; height: auto; }
.board-art text {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}
.board-art text.bonus {
  font-size: 15px;
  text-anchor: end;
  dominant-baseline: auto;
}

/* ---------- "coming soon" in place of the App Store badge ---------- */

.soon {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  padding: 12px 22px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 4px 0 #10204a, 0 8px 16px rgba(20, 30, 70, .25);
  color: #ffffff;
  line-height: 1.2;
}
.soon-small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #dbe6ff;
}
.soon-big {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .02em;
}
.soon-devices {
  font-size: 14px;
  font-weight: 700;
  color: #dbe6ff;
}

/* ---------- sections ---------- */

.section { padding: 36px 0; }
@media (min-width: 860px) { .section { padding: 52px 0; } }

.lede {
  margin: -6px 0 24px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-weight: 600;
}

/* a cream card is a key laid on the table */
.card {
  background: linear-gradient(180deg, var(--key-light) 0%, var(--key) 100%);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--key-edge), 0 8px 16px rgba(80, 55, 25, .18);
  padding: 22px 24px;
}
.card p { margin: 0; }
.card b, .card strong { color: var(--green-ink); }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

/* a little letter key as the bullet */
.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(180deg, #a8e764 0%, #62b52a 100%);
  box-shadow: 0 3px 0 var(--green-edge);
  color: #10250a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.keycap.blue {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 3px 0 #10204a;
  color: #ffffff;
}
.keycap.plain {
  background: linear-gradient(180deg, #ffeec4 0%, #f2d79a 100%);
  box-shadow: 0 0 0 2px #a16b34, 0 3px 0 #8a6f4e;
  color: var(--ink);
}

.blue-word {
  display: inline-block;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--blue-dark);
  color: #ffffff;
  font-weight: 900;
}

.white-word {
  display: inline-block;
  padding: 0 7px;
  border-radius: 6px;
  background: #3f7f1a;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: .06em;
}

/* the points table: letters x letters x 10 */
.points {
  margin-top: 28px;
  overflow-x: auto;
}
.points table {
  border-collapse: separate;
  border-spacing: 6px;
  margin: 0 auto;
  text-align: center;
  font-weight: 900;
}
.points caption {
  caption-side: top;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.points th, .points td {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.2;
}
.points th {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink);
  background: rgba(255, 250, 240, .5);
}
.points td {
  font-size: 20px;
  color: #10250a;
  background: linear-gradient(180deg, var(--green-hi) 0%, var(--green-lo) 100%);
  box-shadow: 0 3px 0 var(--green-edge);
}
.points th[scope="row"] { text-align: left; white-space: nowrap; }

/* features */
.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  padding: 16px 18px;
}
.features .tick {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

/* screenshots, once they exist */
.shots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots img {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 4px 0 var(--key-edge), 0 10px 22px rgba(80, 55, 25, .25);
}

.cta { text-align: center; }
.cta .soon { align-items: center; }
.cta p.note { margin: 18px auto 0; max-width: 46ch; color: var(--ink-soft); font-weight: 600; }

/* ---------- long-form pages: privacy, support ---------- */

.page .wrap { max-width: 820px; }
.page-head { padding: 36px 0 18px; }
.page-head .tagline { max-width: none; }
.effective {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prose { padding: 26px 28px; }
@media (max-width: 520px) { .prose { padding: 20px 18px; } }
.prose > * + * { margin-top: 16px; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--green-ink); }
.prose h2 { font-size: 22px; margin: 28px 0 0; letter-spacing: .06em; }
.prose h2:first-child { margin-top: 0; }
.prose .big {
  font-size: 22px;
  font-weight: 900;
  color: var(--green-ink);
}
.prose a { overflow-wrap: anywhere; }

.stack > * + * { margin-top: 18px; }

.faq { margin: 0; }
.faq dt { font-weight: 900; font-size: 19px; line-height: 1.3; }
.faq dd { margin: 6px 0 0; }
.faq dd + dt { margin-top: 22px; padding-top: 22px; border-top: 2px dashed rgba(138, 111, 78, .35); }

.contact-line {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding: 60px 0 40px;
}
.lost .title { font-size: clamp(56px, 14vw, 120px); }
.lost .tagline { margin-left: auto; margin-right: auto; }
.lost-keys {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
}
.lost-keys span {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

.button {
  display: inline-block;
  margin-top: 26px;
  background: linear-gradient(180deg, var(--green-hi) 0%, var(--green-lo) 100%);
  border-radius: 16px;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #10240c;
  box-shadow: 0 4px 0 var(--green-edge);
}
.button:hover { color: #10240c; filter: brightness(1.05); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-edge); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px;
  background: rgba(90, 68, 40, .12);
  border-top: 2px solid rgba(138, 111, 78, .35);
}
.site-footer .wrap {
  padding-top: 20px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.site-footer li + li::before {
  content: "\00B7";
  padding: 0 10px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--green-ink); }

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

/* read by screen readers, not seen: keeps SNAKEBUTTWORDS one chunky word on
   screen while it is still read out as three */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.prose h2.big { text-transform: none; letter-spacing: .01em; }

/* ---------- small phones ---------- */
.site-nav a { white-space: nowrap; }

@media (max-width: 560px) {
  .site-nav ul { gap: 5px; }
  .site-nav a { font-size: 11.5px; padding: 6px 9px; letter-spacing: .08em; }
  .points table { border-spacing: 3px; }
  .points th, .points td { min-width: 0; padding: 7px 4px; }
  .points th { font-size: 12px; letter-spacing: 0; }
  .points td { font-size: 15px; }
  .points caption { font-size: 12.5px; }
}

/* on the table (not on a card) links stay dark brown, underlined */
.cta a { color: var(--ink); }
.cta a:hover { color: var(--green-ink); }
.cta p.note { color: var(--ink); }

@media (max-width: 560px) {
  .site-footer li.email { flex-basis: 100%; text-align: center; }
  .site-footer li.email::before { content: none; }
}

/* paragraph rhythm inside the long-form cards (after the margin resets above) */
.card.prose > * + * { margin-top: 16px; }
.card.prose > h2:not(:first-child) { margin-top: 28px; }
