/* ============================================================
   DESIGNIGRAMS — shared look for the public pages ("diagram notebook").
   Dot-grid paper, thin ink lines, small mono labels like a drawing set.
   COLOR  paper #f6f4ee, ink #22223a, pink #d6338f (text: #b0206f), blue #2a6fdb
   TYPE    Space Grotesk for reading and headings, IBM Plex Mono for labels
   ============================================================ */
:root {
  --paper: #f6f4ee; --ink: #22223a; --soft: #4a4a60; --mute: #63637a; --line: #22223a;
  --pink: #d6338f; --pink-text: #b0206f; --pink-wash: #fdeef6; --blue: #2a6fdb; --blue-wash: #eaf1fd; --white: #fff;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; min-width: 0 }
html { background: var(--paper); scroll-behavior: smooth }
body { margin: 0; color: var(--ink); font: 17px/1.55 'Space Grotesk', system-ui, sans-serif; overflow-x: clip;
  background-color: var(--paper); background-image: radial-gradient(rgba(34,34,58,.16) 1px, transparent 1.2px); background-size: 22px 22px }
a { color: inherit }
a:hover { color: var(--pink-text) }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance }
p { text-wrap: pretty }
img { max-width: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { animation: none !important; transition: none !important } }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)) }
.mono { font-family: var(--mono) }
.label { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute) }
.box { background: var(--white); border: 1.5px solid var(--line) }
.tag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border: 1.5px solid var(--pink); color: var(--pink-text); background: var(--white) }

/* header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: 20px }
.name { font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em }
header.top nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 14px }
header.top nav a { text-decoration: none }
header.top nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px }
.note-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; transition: box-shadow .12s ease, translate .12s ease }
.note-btn:hover { color: var(--ink); translate: -2px -2px; box-shadow: 3px 3px 0 var(--pink) }
.note-btn svg { width: 17px; height: 17px; flex: none }

/* buttons */
.btn { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; font: 600 16.5px/1.2 'Space Grotesk', sans-serif; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--ink); color: #fff; transition: translate .12s ease, box-shadow .12s ease }
.btn:hover { color: #fff; translate: -2px -2px; box-shadow: 4px 4px 0 var(--pink) }
.btn.light { background: var(--white); color: var(--ink) }
.btn.light:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--blue) }
.btn:disabled { opacity: .6; cursor: default; translate: none; box-shadow: none }
.acts { display: flex; flex-wrap: wrap; gap: 12px }
@media (max-width: 640px) { .acts .btn { flex: 1 1 200px } }

/* a section heading drawn like a title block: Games ———— SHEET 02 */
.sheet-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px }
.sheet-head h2 { font-size: clamp(32px, 4.4vw, 42px) }
.sheet-head .rule { flex: 1; border-bottom: 1.5px solid var(--line); translate: 0 -8px }
.sheet-head .label { white-space: nowrap }
@media (max-width: 560px) { .sheet-head .rule, .sheet-head .label { display: none } }

/* figures */
figure.fig { margin: 0 }
.cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--mute) }

/* numbered cards (01, 02, 03) */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.trio > div { background: var(--white); border: 1.5px solid var(--line); padding: 18px 20px }
.trio .n { margin: 0 0 8px; font-family: var(--mono); font-size: 12.5px; color: var(--pink-text) }
.trio h3 { font-size: 20px; letter-spacing: -.015em; margin-bottom: 6px }
.trio p { margin: 0; color: var(--soft); font-size: 16px }
@media (max-width: 820px) { .trio { grid-template-columns: minmax(0, 1fr) } }

/* the Venn diagram */
.venn { width: 100%; display: block }

/* forms */
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font: 16.5px/1.4 'Space Grotesk', sans-serif }
textarea { min-height: 110px; resize: vertical }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 0 }
.f { margin-bottom: 16px }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px }
@media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr) } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.msg { margin: 0 0 16px; padding: 10px 12px; border: 1.5px solid var(--line); font-weight: 600; background: var(--pink-wash) }
.msg.ok { background: #e3f6df }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--mute) }

/* footer */
footer.foot { border-top: 1.5px solid var(--line); background: var(--white) }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); font-family: var(--mono); font-size: 13px; color: var(--soft) }
