/* tanakitto.me — "Arm's table"
   Warm paper, ink outlines, one coin-gold, the raccoon's leaf green.
   One moment of delight: the coin-draw game on the homepage. */
:root {
  --paper: #fbfaf6;
  --paper-2: #f1efe7;
  --leaf: #dff1e4;      /* soft band, from the raccoon's leaf */
  --leaf-ink: #2f8f4e;  /* leaf green for small marks */
  --ink: #1f2a44;
  --ink-2: #5b6274;
  --rule: #d9d6cc;
  --coin: #f5b82e;
  --coin-dark: #c98a0c;
  --blush: #ffc9d3;
  --demon: #3b2a5e;

  --display: "Mitr", "M PLUS Rounded 1c", sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Thai Looped", "M PLUS Rounded 1c", system-ui, sans-serif;
  --measure: 36rem;
  --wide: 70rem;
  --gutter: clamp(1.25rem, 4.5vw, 2.75rem);
  --shadow: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--coin); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf-ink); outline-offset: 3px; border-radius: 4px; }
[lang="th"] { font-family: "IBM Plex Sans Thai Looped", var(--body); }
[lang="ja"] { font-family: "M PLUS Rounded 1c", var(--body); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header .inner { max-width: var(--wide); margin-inline: auto; padding: 1.1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-decoration: none; }
.wordmark img { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; text-decoration: none; font-weight: 600; font-size: .97rem; padding: .4rem .8rem; border-radius: 10px; }
.site-nav a:hover { background: var(--paper-2); }
.site-nav a[aria-current="page"] { background: var(--leaf); }
.site-nav a.say-hi { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; max-width: var(--measure); }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn { display: inline-block; flex: none; white-space: nowrap; font: 600 1.02rem/1.25 var(--display); padding: .72rem 1.3rem; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--coin); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { margin-bottom: 1rem; }
.names { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.names li { border: 2px solid var(--ink); border-radius: 10px; padding: .2rem .75rem; font-weight: 600; background: #fff; }
.names li span { font-weight: 400; color: var(--ink-2); font-size: .85rem; margin-left: .35rem; font-family: var(--body); }
.hero .lede { margin-bottom: 1.6rem; }
.hero-art { position: relative; justify-self: center; text-align: center; }
.hero-art .raccoon { width: min(18rem, 70vw); mix-blend-mode: multiply; }
.hero-art .bubble { position: absolute; top: .5rem; left: -1.5rem; transform: rotate(-4deg); }
.bubble { display: inline-block; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: .5rem .9rem; font-weight: 600; box-shadow: var(--shadow); max-width: 15rem; text-align: left; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band { background: var(--leaf); border-block: 2.5px solid var(--ink); }
.head { display: grid; grid-template-columns: 5fr 7fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem; }
.head p { margin: 0; color: var(--ink-2); max-width: 34rem; }

/* What I do — uneven rows, not three cards */
.roles { list-style: none; margin: 0; padding: 0; border-top: 2.5px solid var(--ink); }
.roles li { display: grid; grid-template-columns: 9rem 1fr 1.2fr; gap: 1rem 2.5rem; padding-block: 1.75rem; border-bottom: 1.5px solid var(--rule); align-items: start; }
.roles .when { font-family: var(--display); font-weight: 500; color: var(--leaf-ink); }
.roles h3 { font-size: 1.45rem; }
.roles p { margin: 0; color: var(--ink-2); }
.chips { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li { font-size: .82rem; font-weight: 600; padding: .15rem .6rem; border-radius: 8px; background: var(--paper-2); color: var(--ink); }

/* ---------- The coin game (the one delight) ---------- */
.game { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.table { background: #fff; border: 2.5px solid var(--ink); border-radius: 22px; padding: 1.4rem; box-shadow: 7px 7px 0 var(--ink); }
.table .top { display: flex; gap: 1rem; align-items: flex-end; margin-bottom: .75rem; }
.table .raccoon { width: 7.5rem; flex: none; mix-blend-mode: multiply; transform-origin: 50% 100%; }
.table .raccoon.hop { animation: hop .35s ease; }
.table .raccoon.shake { animation: shake .4s ease; }
@keyframes hop { 40% { transform: translateY(-10px); } }
@keyframes shake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.table .bubble { box-shadow: none; flex: 1; max-width: none; margin-bottom: 2.2rem; position: relative; min-height: 3.4rem; }
.table .bubble::after { content: ""; position: absolute; left: -11px; bottom: 12px; width: 16px; height: 16px; background: #fff; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.score { display: flex; justify-content: space-between; font-weight: 600; }
.demons i { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid var(--ink); margin-left: .2rem; vertical-align: -1px; }
.demons i.on { background: var(--demon); }
.tray { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 3.3rem; padding: .7rem; margin: .7rem 0 1rem; background: var(--paper-2); border-radius: 14px; }
.tray:empty::before { content: "Coins you draw land here"; color: var(--ink-2); font-size: .9rem; align-self: center; }
.chip { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2.5px solid var(--ink); animation: drop .35s cubic-bezier(.3,1.6,.5,1); }
.chip.gold { background: var(--coin); box-shadow: inset -3px -3px 0 var(--coin-dark); }
.chip.demon { background: var(--demon); color: var(--blush); }
@keyframes drop { from { transform: translateY(-24px) scale(.6); opacity: 0; } }
.controls { display: flex; gap: .6rem; }
.controls .btn { flex: 1; text-align: center; }

/* ---------- Games ---------- */
.games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.game-card { display: flex; flex-direction: column; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.game-card .art { height: 8.5rem; border-bottom: 2.5px solid var(--ink); display: grid; place-items: center; }
.game-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.game-card h3 { font-size: 1.5rem; }
.game-card h3 a { text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--coin); }
.game-card .alt { color: var(--ink-2); margin-bottom: .6rem; }
.game-card p { margin: 0 0 .9rem; }
.award { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 8px; background: var(--coin); border: 2px solid var(--ink); }
.award.quiet { background: var(--paper-2); }
.art.mm { background: var(--demon); } .art.ww { background: #ffe3b0; } .art.tt { background: var(--leaf); } .art.man { background: var(--blush); }

.awards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.awards li { border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: .4rem .8rem; font-weight: 600; font-size: .95rem; }
.awards li b { color: var(--leaf-ink); }

/* ---------- Work (automation) ---------- */
.flows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.flows li { padding-block: 1.1rem; border-top: 1.5px solid var(--rule); }
.flows h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; }
.flows p { margin: .25rem 0 0; color: var(--ink-2); font-size: .97rem; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .82rem; font-weight: 600; }
.flow span { background: var(--paper-2); border-radius: 6px; padding: .1rem .5rem; }
.flow span + span::before { content: "→ "; color: var(--ink-2); font-weight: 400; }

/* ---------- Story timeline (a true sequence) ---------- */
.story { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; max-width: 48rem; }
.story::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; border-left: 2.5px dashed var(--ink-2); }
.story li { position: relative; padding-bottom: 1.6rem; }
.story li::before { content: ""; position: absolute; left: -1.75rem; top: .45rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); }
.story li.now::before { background: var(--coin); }
.story li.gap::before { background: var(--paper-2); border-style: dashed; }
.story time { font-family: var(--display); font-weight: 500; color: var(--leaf-ink); }
.story h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; margin: .1rem 0 .2rem; }
.story p { margin: 0; color: var(--ink-2); }

/* ---------- Simple lists ---------- */
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 1.5rem 3rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding-block: .6rem; border-bottom: 1.5px solid var(--rule); }
.plain li span { color: var(--ink-2); }

/* ---------- Writing ---------- */
.post-link { display: block; text-decoration: none; padding: 1.2rem 0; border-top: 1.5px solid var(--rule); max-width: 46rem; }
.post-link h3 { margin-bottom: .3rem; }
.post-link:hover h3 { text-decoration: underline; text-decoration-color: var(--coin); text-decoration-thickness: 2px; }
.post-link p { margin: 0; color: var(--ink-2); }

.article { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.article header { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: .8rem 0; }
.article .dek { font-size: 1.2rem; color: var(--ink-2); }
.article p { font-size: 1.1rem; line-height: 1.8; }
.article h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.meta { color: var(--ink-2); font-size: .95rem; }
.author { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); color: var(--ink-2); }
.author img { width: 4rem; mix-blend-mode: multiply; flex: none; }
.author p { margin: 0 0 .3rem; }

/* ---------- Page head ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; max-width: 44rem; }
.page-head h1 { margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
.form { display: grid; gap: 1.05rem; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; padding: 1.5rem; box-shadow: 6px 6px 0 var(--ink); }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: .7rem .85rem; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--coin); }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.form-note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status[data-state="error"] { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.channels { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.channels li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-bottom: 1.5px solid var(--rule); }
.channels span { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; border-top: 2.5px solid var(--ink); }
.site-footer .inner { max-width: var(--wide); margin-inline: auto; padding: 1.75rem var(--gutter) 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; color: var(--ink-2); font-size: .92rem; }
.site-footer .bye { display: flex; align-items: center; gap: .6rem; }
.site-footer .bye img { width: 2.6rem; mix-blend-mode: multiply; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0; padding: 0; }
.site-footer a { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 54rem) {
  .hero, .game, .head, .split, .contact { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .raccoon { width: 11rem; }
  .hero-art .bubble { left: auto; right: -2.5rem; top: 0; font-size: .9rem; }
  .roles li { grid-template-columns: 1fr; gap: .35rem; }
  .games, .flows { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.section.tight { padding-top: 0; }
.post-link.boxed { border-top: 2.5px solid var(--ink); }
.mb { margin-bottom: 2rem; }
.after-list { margin-top: 1.25rem; }
.page-head.wide { max-width: none; }
.split .award { margin-top: .9rem; display: inline-block; }
.page-head .awards { margin-top: 1.5rem; }

/* ---------- Writing: diary + articles ---------- */
.lang-tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .05rem .45rem; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); vertical-align: 1px; margin-left: .35rem; }
.mood-inline { font-size: .85rem; color: var(--ink-2); margin-left: .35rem; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.post-list .post-link { border-top: 1.5px solid var(--rule); }
.writing-section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.jump { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 600; }
.empty-note { color: var(--ink-2); font-style: italic; }
.article .mood { color: var(--ink-2); margin: .5rem 0 0; }
.article .chips { margin-top: .8rem; }
.article .cover { width: 100%; border: 2.5px solid var(--ink); border-radius: 16px; margin: 0 0 2rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--ink); margin: 1.5rem 0; }
.post-body ul, .post-body ol { font-size: 1.1rem; line-height: 1.75; padding-left: 1.4rem; }
.post-body li { margin-bottom: .4rem; }
.post-body blockquote { margin: 1.5rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--coin); background: var(--paper-2); border-radius: 0 12px 12px 0; }
.post-body code { font-size: .95em; background: var(--paper-2); padding: .1rem .35rem; border-radius: 5px; }
.post-body pre { background: var(--ink); color: var(--paper); padding: 1rem; border-radius: 12px; overflow-x: auto; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 1rem; }
.post-body th, .post-body td { border: 1.5px solid var(--rule); padding: .5rem .7rem; text-align: left; }
.post-body pre { position: relative; }
.copy-btn { position: absolute; top: .5rem; right: .5rem; font: 600 .8rem/1 var(--body, inherit); padding: .4rem .7rem; border-radius: 8px; border: 2px solid var(--paper); background: var(--coin); color: var(--ink); cursor: pointer; }
/* Boxes you can use in a post: <div class="tldr">, <div class="callout">, <div class="story-box"> */
.post-body .tldr, .post-body .callout, .post-body .story-box, .post-body .kw-check { margin: 1.8rem 0; padding: 1.1rem 1.3rem; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.post-body .tldr { background: #fff6dc; }
.post-body .callout { background: #ffe9ed; }
.post-body .story-box { background: #dff1e4; }
.post-body .kw-check { background: #fff; }
.post-body .tldr > :first-child, .post-body .callout > :first-child, .post-body .story-box > :first-child, .post-body .kw-check > :first-child { margin-top: 0; }
.post-body .tldr > :last-child, .post-body .callout > :last-child, .post-body .story-box > :last-child { margin-bottom: 0; }
.kw-fields { display: grid; gap: .8rem; margin: 1rem 0; }
@media (min-width: 720px) { .kw-fields { grid-template-columns: 1fr 1fr; } }
.kw-fields label { display: grid; gap: .35rem; font-weight: 600; }
.kw-fields textarea { width: 100%; font: inherit; font-size: .95rem; padding: .6rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); resize: vertical; }
.kw-result { margin-top: 1rem; }
.kw-score b { font: 600 1.8rem/1 var(--display); margin-right: .3rem; }
.kw-bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.kw-bar span { display: block; height: 100%; background: var(--leaf); transition: width .5s; }
.kw-result h4 { margin: 1rem 0 .4rem; font-size: 1rem; }
.kw-chip { display: inline-block; margin: 0 .2rem .35rem 0; padding: .15rem .6rem; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.kw-chip.ok { background: #dff1e4; color: #1d5e33; }
.kw-chip.no { background: #ffe9ed; color: #8a2335; border: 1.5px dashed #c2413a; }
.kw-privacy { font-size: .85rem; color: var(--ink-2); margin: 1rem 0 0; }
.post-body ul.checklist { list-style: none; padding-left: 0; }
.post-body ul.checklist li { padding-left: 2rem; position: relative; }
.post-body ul.checklist li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.15rem; height: 1.15rem; border: 2.5px solid var(--ink); border-radius: 5px; background: #fff; }

/* ---------- Food pricing sheet page ---------- */
.fp .section > h2 { margin-bottom: .8rem; }
.fp-hook { background: #fff6dc; border: 2.5px solid var(--ink); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow); }
.fp-numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.2rem 0; }
@media (min-width: 760px) { .fp-numbers { grid-template-columns: repeat(4, 1fr); } }
.fp-numbers div { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: .7rem .9rem; }
.fp-numbers span { display: block; font-size: .85rem; color: var(--ink-2); }
.fp-numbers b { font: 600 1.7rem/1.2 var(--display); }
.fp-numbers .warn { color: #b3541e; }
.fp-numbers .good { color: #2f8f4e; }
.fp-cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .fp-cards { grid-template-columns: 1fr 1fr; } }
.fp-card { background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fp-card h3 { margin-top: 0; }
.fp-card .btns { margin-top: auto; padding-top: .6rem; }
.fp-ticks { list-style: none; padding: 0; }
.fp-ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; line-height: 1.6; }
.fp-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: #2f8f4e; }
.fp-steps, .fp-tabs { padding-left: 1.4rem; line-height: 1.7; }
.fp-steps li { margin-bottom: .5rem; }
.fp-tabs > li { margin-bottom: 1.6rem; }
.fp-tabs { list-style: none; padding-left: 0; }
.fp-tabs > li { border-left: 4px solid var(--coin); padding-left: 1rem; }
.fp-tabs h3 { margin: 0 0 .4rem; }
.fp-tabs ul { padding-left: 1.2rem; }
.fp-swatch { display: inline-block; padding: 0 .45rem; margin: 0 .25rem; border-radius: 5px; border: 1.5px solid var(--rule); font-size: .9em; }
.fp-swatch.yellow { background: #fff2cc; }
.fp-swatch.grey { background: #eeeeee; }
.fp-shot { margin: 1.2rem 0; }
.fp-shot img { display: block; max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 12px; }
.fp-shot figcaption { font-size: .88rem; color: var(--ink-2); margin-top: .4rem; }
.fp-faq details { border-top: 1.5px solid var(--rule); padding: .8rem 0; }
.fp-faq summary { font-weight: 600; cursor: pointer; }
.fp-faq details p { margin: .5rem 0 0; }
.fp-end { border-top: 2.5px solid var(--ink); }

/* ---------- Mythnute page ---------- */
.mythnute .mn-banner { display: block; width: 100%; height: clamp(120px, 18vw, 200px); object-fit: cover; object-position: center; border: 2.5px solid var(--ink); border-radius: 16px; background: #1d1d22; margin: .8rem 0 1.4rem; }
.mythnute .mn-title { display: flex; align-items: center; gap: 1rem; }
.mythnute .mn-title img { width: 84px; height: 84px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none; }
.mythnute .mn-title h1 { margin: 0; }
.mythnute .mn-title .dek { margin: .3rem 0 0; }

/* ---------- Language versions of a post ---------- */
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0; font-size: .9rem; color: var(--ink-2); }
.lang-switch ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.lang-switch a, .lang-switch [aria-current] { display: inline-block; padding: .15rem .65rem; border-radius: 999px; border: 2px solid var(--ink); font-weight: 600; text-decoration: none; }
.lang-switch [aria-current] { background: var(--ink); color: var(--paper); }
.lang-switch a:hover { background: var(--leaf); }
.post-item .also-in { margin: -.6rem 0 1rem; font-size: .85rem; color: var(--ink-2); }
.post-item .also-in .lang-tag { text-decoration: none; }

/* =====================================================================
   Design D (Nov 2026): chunky Anton headings + full-width colour bands
   + retro "window" cards. Each page has its own band colour.
   ===================================================================== */
:root {
  --xl: "Anton", "Mitr", "M PLUS Rounded 1c", sans-serif;
  --cream: #fdf3dc;
  --purple: #5b3fa8;
  --green: #267a41;
  --coral: #ff7a59;
  --sky: #bfe3ff;
  --band: var(--cream);
  --band-ink: var(--ink);
  --shadow: 5px 5px 0 var(--ink);
}
body { overflow-x: clip; }
.pg-home, .pg-about-me, .pg-food-pricing { --band: var(--coin); }
.pg-projects { --band: var(--purple); --band-ink: #fff; }
.pg-work { --band: var(--green); --band-ink: #fff; }
.pg-blog { --band: var(--coral); }
.pg-contact-me { --band: var(--blush); }
.pg-ja { --band: var(--sky); }

/* Header sits on the page's colour */
.site-header { background: var(--band); color: var(--band-ink); }
.wordmark { font-family: var(--xl); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.65rem; color: var(--band-ink); }
.site-nav ul { gap: .45rem; }
.site-nav a { border: 2.5px solid var(--ink); background: var(--cream); color: var(--ink); border-radius: 999px; padding: .28rem .9rem; font-family: var(--display); font-weight: 600; transition: transform .1s, box-shadow .1s; }
.site-nav a:hover { background: #fff; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.site-nav a.say-hi { background: var(--coral); color: var(--ink); }
.pg-blog .site-nav a.say-hi { background: #fff; }

/* Page heads become full-width colour bands */
.page-head { max-width: none; background: var(--band); color: var(--band-ink); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.8rem, 7vw, 4.5rem); margin-bottom: clamp(1rem, 3vw, 2rem); }
.page-head > * { max-width: 46rem; }
.page-head.wide > * { max-width: none; }
.page-head .muted, .page-head .lede { color: var(--band-ink); }
.page-head a:not(.btn) { color: var(--band-ink); }
.page-head h1, .hero h1 { font-family: var(--xl); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: .92; letter-spacing: -.005em; margin-bottom: 1.2rem; }
.page-head .awards li, .page-head .names li { color: var(--ink); }
.kicker { font: 500 .9rem/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }

/* Section headings: big and loud */
.head h2, .section > h2, .split h2, .section > .wrap > h2, .fp .section > h2 { font-family: var(--xl); font-weight: 400; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: .95; letter-spacing: -.005em; }
.split h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.head { align-items: end; }

/* Full-width colour bands for sections */
.band { background: var(--leaf); border: 0; }
.band.purple { background: var(--purple); color: #fff; }
.band.green { background: var(--green); color: #fff; }
.band.coral { background: var(--coral); }
.band.yellow { background: var(--coin); }
.band.cream { background: var(--cream); }
.band.ink { background: var(--ink); color: var(--cream); }
.band.purple .head p, .band.green .head p, .band.ink .head p { color: inherit; opacity: .9; }
.band.purple a:not(.btn), .band.green a:not(.btn) { color: inherit; }

/* Retro window cards: a title bar with three dots, optional file name */
.win, .game-card, .form, .table, .fp-card { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 var(--ink); background: #fff; color: var(--ink); }
.win { overflow: hidden; }
.win::before, .game-card::before, .form::before, .table::before, .fp-card::before {
  content: attr(data-file); display: block; height: 2.3rem; line-height: 2.15rem; padding-left: 4.6rem;
  font: 500 .82rem/2.15rem "IBM Plex Mono", ui-monospace, monospace; color: var(--ink); white-space: nowrap; overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 1.15rem 50%, #ff6b4a .36rem, var(--ink) .37rem .5rem, transparent .52rem),
    radial-gradient(circle at 2.25rem 50%, var(--coin) .36rem, var(--ink) .37rem .5rem, transparent .52rem),
    radial-gradient(circle at 3.35rem 50%, #7bd389 .36rem, var(--ink) .37rem .5rem, transparent .52rem),
    var(--cream);
}
.form::before { margin: -1.5rem -1.5rem .4rem; border-radius: 9px 9px 0 0; }
.table::before { margin: -1.4rem -1.4rem 1rem; border-radius: 9px 9px 0 0; }
.fp-card::before { margin: -1.3rem -1.3rem .8rem; border-radius: 9px 9px 0 0; }
.win img { display: block; width: 100%; height: auto; }

/* Game cards: numbered, bigger titles */
.games { counter-reset: g; gap: 2.4rem 2rem; }
.game-card { position: relative; counter-increment: g; overflow: visible; }
.game-card > .art { border-bottom: 3px solid var(--ink); }
.game-card::after { content: counter(g, decimal-leading-zero); position: absolute; top: -1.9rem; right: .9rem; font: 400 3.6rem/1 var(--xl); color: var(--coin); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.game-card h3 { font-family: var(--xl); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; letter-spacing: .01em; }
.game-card .body { border-radius: 0 0 9px 9px; }
.game-card > .art { overflow: hidden; }
.game-card > .art img { width: 100%; height: 100%; object-fit: cover; }

/* The scrolling strip */
.strip { background: var(--ink); color: var(--cream); font: 400 clamp(1.5rem, 3vw, 2.1rem)/1 var(--xl); text-transform: uppercase; white-space: nowrap; overflow: hidden; padding: .9rem 0; transform: rotate(-1.4deg); margin: -1.2rem -2vw; position: relative; z-index: 2; border-block: 3px solid var(--coin); }
.strip span { display: inline-block; animation: strip 22s linear infinite; }
.strip i { color: var(--coin); font-style: normal; margin: 0 1.4rem; }
@keyframes strip { to { transform: translateX(-50%); } }

/* Homepage hero */
.home-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.home-hero > * { max-width: none; }
.home-hero h1 { font-size: clamp(4rem, 11.5vw, 9.5rem); }
.home-hero h1 .o { color: var(--coral); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.home-hero .win { transform: rotate(2.5deg); max-width: 26rem; justify-self: center; }
.home-hero .win img { mix-blend-mode: multiply; }
.home-hero .names { margin-bottom: 1.2rem; }

/* Buttons pick up the chunkier look */
.btn { border-width: 3px; border-radius: 999px; }
.btn.dark { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--cream); }

/* Work flows become small cards */
.flows { gap: 1.4rem 1.6rem; }
.flows li { background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: 5px 5px 0 var(--ink); }
.band.green .flows li, .band.purple .flows li { color: var(--ink); }
.flows li a { color: var(--ink); }

/* Big "Say hi" */
.say-big { font: 400 clamp(4rem, 13vw, 9rem)/.9 var(--xl); text-transform: uppercase; margin: 0 0 1rem; }
.say-big a { text-decoration: none; }
.say-big .o { color: var(--coral); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

/* Footer on ink */
.site-footer { background: var(--ink); color: var(--cream); border-top: 0; margin-top: 0; }
.site-footer .inner, .site-footer a { color: var(--cream); }
.site-footer .bye img { mix-blend-mode: normal; border-radius: 50%; background: #fff; }
main { padding-bottom: clamp(3rem, 8vw, 5rem); }
main:has(> .band:last-child), main:has(> section.cream:last-child) { padding-bottom: 0; }

/* Articles stay calm: a thin band on top only */
.pg-post .site-header, .pg-mythnute .site-header { border-bottom: 3px solid var(--ink); }

@media (max-width: 54rem) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero .win { max-width: 18rem; order: 2; }
  .game-card::after { font-size: 3rem; top: -1.6rem; }
}
@media (max-width: 40rem) {
  .site-nav a { padding: .2rem .7rem; font-size: .9rem; }
  .wordmark { font-size: 1.35rem; }
}
.band .awards li { color: var(--ink); }
.band .awards li b { color: var(--green); }
.band .game h2 { font-family: var(--xl); font-weight: 400; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: .95; margin-bottom: 1rem; }
.band.coral .muted { color: var(--ink); opacity: .8; }
.band.cream .game .btns { margin-top: 1.2rem; }
.game-card h3 [lang="th"], .game-card h3:lang(th) { font-family: "Mitr", sans-serif; font-weight: 600; text-transform: none; font-size: 1.55rem; line-height: 1.25; }
/* Thai and Japanese headings: Anton has no Thai/Japanese letters, so use Mitr / M PLUS at a calmer size */
:lang(th) .page-head h1, :lang(ja) .page-head h1, :lang(ja) .hero h1, .page-head h1:lang(th) { font-family: "Mitr", "M PLUS Rounded 1c", sans-serif; font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.2; }
:lang(th) .head h2, :lang(th) .section > h2, :lang(th) .fp-hook h2, :lang(ja) .head h2, :lang(ja) .section > h2 { font-family: "Mitr", "M PLUS Rounded 1c", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.25; }
.pg-contact-me main { padding-bottom: 0; }
.pg-contact-me .page-head { margin-bottom: 0; }

/* Short stacked sections (Games page): less air between them, a line to separate */
.section.item { padding-block: clamp(2rem, 4.5vw, 3.25rem); border-top: 2px dashed var(--rule); }
.page-head + .section.item { border-top: 0; }
.section.item:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
/* Tag chips without arrows */
.flow.tags span + span::before { content: none; }
/* Tools page: three across on wide screens */
@media (min-width: 64rem) {
  .pg-tools .games.tools, .flows.books { grid-template-columns: repeat(3, 1fr); }
  .pg-tools .games.tools .game-card h3 { font-size: 1.7rem; }
}
.pg-tools .section + .section.tight { padding-top: 0; }
.tool-jump { margin-top: 1.2rem; gap: .5rem; }
.tool-jump a { text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: .35rem .9rem; background: #fff; color: var(--ink); }
.tool-jump a:hover { background: var(--coin); }
.section .head h2 small { display: block; font-size: .42em; font-weight: 500; color: var(--ink-2); margin-top: .35rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
