/* Playroom Layout Studio — "Drawing set": grid paper, ink lines, tape-measure yellow. */

@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bai-jamjuree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bai-jamjuree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bai-jamjuree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bai-jamjuree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bai-jamjuree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bai-jamjuree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/pt-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/pt-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #edf0f3;
  --grid: #dce2e8;
  --grid-major: #cdd4dc;
  --card: #ffffff;
  --ink: #1c2230;
  --soft: #4f5969;
  --line: #cdd4dc;
  --tape: #f2c230;
  --tape-dark: #7a5d00;
  --warn: #b3261e;
  --sans: "Bai Jamjuree", "Segoe UI", Arial, sans-serif;
  --mono: "PT Mono", "Courier New", monospace;
  --shadow: 10px 10px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, li, summary, td, th, a { overflow-wrap: anywhere; hyphens: auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--tape-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid #2b63c6; outline-offset: 3px; }

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.kicker { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tape-dark); margin: 0 0 10px; }
.small { font-size: 0.92rem; color: var(--soft); }

/* ---------- Header with the tape strip ---------- */

.top { background: var(--card); border-bottom: 2px solid var(--ink); position: relative; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; text-decoration: none; }
.nav { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 500; text-decoration: none; border: 1.5px solid transparent; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { background: var(--tape); border-color: var(--ink); }

.tape {
  height: 16px;
  background-color: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 6px);
  background-size: 100% 11px, 100% 7px, 100% 4px;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--ink);
}

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 22px; font-weight: 700; }
h1 span { display: inline; }
.taped { background: linear-gradient(transparent 12%, var(--tape) 12%, var(--tape) 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 6px; }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 36em; margin: 0 0 22px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.facts li { font-family: var(--mono); font-size: 0.9rem; padding: 4px 10px; border: 1.5px solid var(--ink); background: var(--card); }
.facts-dark li { background: transparent; border-color: var(--paper); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.text-link { font-weight: 700; }

.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--tape); }
.play-icon { width: 26px; height: 26px; color: var(--tape); flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; letter-spacing: 0.04em; }
.play-big { font-size: 1.2rem; font-weight: 700; }
.play-soon { cursor: default; background: var(--card); color: var(--ink); box-shadow: 6px 6px 0 var(--grid-major); }
.play-soon .play-icon { color: var(--soft); }

.hero-plan { position: relative; padding-top: 34px; }
.dim { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--soft); position: absolute; top: 0; left: 0; right: 10px; display: flex; align-items: center; gap: 10px; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.dim span { flex: none; max-width: 80%; }
.frame { margin: 0; border: 3px solid var(--ink); box-shadow: var(--shadow); background: var(--card); }

/* ---------- Sheets ---------- */

section { scroll-margin-top: 16px; }
.section-head { margin-bottom: 36px; max-width: 760px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; }

.sheets { padding: 72px 0; border-top: 2px solid var(--ink); background: rgba(255, 255, 255, 0.55); }
.sheet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding: 48px 0; border-top: 1px dashed var(--soft); }
.sheet:first-of-type { border-top: 0; }
.sheet-flip .sheet-copy { order: 2; }
.sheet-no { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; color: var(--soft); }
.sheet-no span { display: inline-grid; place-items: center; min-width: 52px; height: 52px; font-size: 1.4rem; color: var(--ink); background: var(--tape); border: 2px solid var(--ink); }
.sheet-copy p { margin: 0 0 16px; color: var(--soft); max-width: 34em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 16px; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 -0.5px var(--ink); }
.sheet-shot { display: flex; justify-content: center; }
.shot { margin: 0; width: min(360px, 78vw); }
.shot.frame { box-shadow: var(--shadow); }

/* ---------- Key and spec ---------- */

.key { padding: 72px 0; border-top: 2px solid var(--ink); }
.legend { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: var(--card); }
.legend li { display: flex; gap: 14px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legend li:nth-child(3n) { border-right: 0; }
.legend li:nth-last-child(-n + 3) { border-bottom: 0; }
.legend h3 { font-size: 1.05rem; margin: 0 0 4px; }
.legend p { margin: 0; font-size: 0.95rem; color: var(--soft); }
.sym { width: 48px; height: 48px; flex: none; }

.spec table { width: 100%; border-collapse: collapse; background: var(--card); border: 2px solid var(--ink); }
.spec caption { text-align: left; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; padding: 0 0 10px; color: var(--soft); }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-family: var(--mono); font-weight: 400; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--tape); border-bottom: 2px solid var(--ink); }
.spec tbody th { width: 34%; font-weight: 700; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }

/* ---------- Extras, FAQ ---------- */

.extras { padding: 72px 0; border-top: 2px solid var(--ink); background: rgba(255, 255, 255, 0.55); }
.extra-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.extra-list li { border-top: 2px solid var(--ink); padding-top: 14px; position: relative; }
.extra-list li::before { content: ""; position: absolute; top: -8px; left: 0; width: 2px; height: 14px; background: var(--ink); }
.extra-list h3 { font-size: 1.12rem; margin: 0 0 6px; }
.extra-list p { margin: 0; color: var(--soft); }

.faq { padding: 72px 0; border-top: 2px solid var(--ink); }
details { border: 2px solid var(--ink); background: var(--card); margin-bottom: 12px; }
summary { cursor: pointer; padding: 14px 20px 14px 52px; font-weight: 700; min-height: 48px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--mono); background: var(--tape); border: 1.5px solid var(--ink); line-height: 1; }
details[open] summary::before { content: "\2212"; }
details[open] summary { border-bottom: 1px dashed var(--soft); }
details p { margin: 0; padding: 14px 20px 18px; color: var(--soft); }

.band { background: var(--ink); color: var(--paper); padding: 64px 0; }
.band a { color: var(--paper); text-decoration-color: var(--tape); }
.band h2 { margin-bottom: 18px; }
.band-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.band .small { color: #c4ccd6; margin-top: 18px; }
.band .play-soon { background: var(--ink); color: var(--paper); border-color: var(--paper); box-shadow: 6px 6px 0 var(--tape); }
.band .play-soon .play-icon { color: var(--tape); }

/* ---------- Text pages ---------- */

.page { padding: 48px 0 72px; }
.doc { background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 40px 44px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.doc p { margin: 0 0 12px; }
.toc { border: 1.5px solid var(--ink); padding: 14px 20px; margin: 20px 0 8px; background: var(--paper); }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 4px 0; }
.steps { margin: 0; padding-left: 24px; }
.steps li { margin: 8px 0; padding-left: 4px; }
.steps li::marker { font-family: var(--mono); font-weight: 700; }
.doc .spec { margin: 12px 0 16px; }

/* ---------- Footer title block ---------- */

.foot { padding: 48px 0 40px; border-top: 2px solid var(--ink); }
.titleblock { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border: 2px solid var(--ink); background: var(--card); }
.tb-cell { padding: 12px 16px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-cell:nth-child(3) { border-right: 0; }
.tb-wide { grid-column: span 3; border-right: 0; }
.tb-cell:last-child { border-bottom: 0; }
.tb-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.tb-v { font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-links a { margin-right: 14px; }
.tb-name .tb-v { font-size: 1.1rem; }
.foot-note { font-size: 0.9rem; color: var(--soft); margin: 16px 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .sheet, .band-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sheet-flip .sheet-copy { order: 0; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend li:nth-child(3n) { border-right: 1px solid var(--line); }
  .legend li:nth-child(2n) { border-right: 0; }
  .legend li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .legend li:nth-last-child(-n + 2) { border-bottom: 0; }
  .extra-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 52px; }
  .lead { font-size: 1.08rem; }
  .legend, .extra-list { grid-template-columns: minmax(0, 1fr); }
  .legend li, .legend li:nth-child(3n), .legend li:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .legend li:last-child { border-bottom: 0; }
  .doc { padding: 26px 18px; box-shadow: 6px 6px 0 var(--ink); }
  .frame, .shot.frame { box-shadow: 6px 6px 0 var(--ink); }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .tb-cell, .tb-cell:nth-child(3) { border-right: 0; }
  .tb-wide { grid-column: auto; }
  .spec th, .spec td { padding: 10px 12px; }
  .spec tbody th { width: 40%; }
  .brand { font-size: 1rem; }
  .nav a { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
