/* Patipat pages: the game's tea house — warm cream walls, terracotta, Iznik turquoise. */
:root {
  color-scheme: light;
  --ground: #f7f0e4; --panel: #fffaf2; --line: rgba(74, 52, 38, .14);
  --ink: #3b2a20; --muted: #5f4a3c; --faint: #7a6354;
  --terracotta: #a63f26; --teal: #1d6f69;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden;
  background-image: radial-gradient(90% 50% at 50% -10%, #f8dcc6 0%, transparent 70%); background-repeat: no-repeat; }
img { display: block; max-width: 100%; }
a { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.studio-link { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.studio-link img { width: 26px; height: 26px; }
.studio-link:hover { color: var(--ink); }
.top nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--terracotta); }

/* Legal documents */
.doc { padding-top: clamp(16px, 3vw, 32px); }
.doc h1, .doc h2 { font-family: var(--serif); font-weight: 700; font-variation-settings: 'SOFT' 100; letter-spacing: -.01em; }
.doc h1 { font-size: clamp(40px, 6.4vw, 60px); line-height: 1.02; margin: 8px 0 10px; }
.doc .switch { display: flex; gap: 8px; margin: 18px 0 8px; }
.doc .switch a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.doc .switch a:hover { color: var(--terracotta); border-color: rgba(166, 63, 38, .35); }
.doc article { padding: 22px 0 8px; }
.doc article + article { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 36px; }
.doc article > .mono:first-child { color: var(--teal); }
.doc h2 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.05; margin: 0 0 6px; }
.doc h3 { font: 700 17px/1.4 var(--sans); color: var(--terracotta); margin: 28px 0 6px; }
.doc article h2 + h3, .doc article .mono + h3 { margin-top: 14px; }
.doc p { color: var(--muted); margin: 8px 0; overflow-wrap: anywhere; }

footer.site { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); padding: 26px 0 40px; color: var(--faint); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--terracotta); }
footer.site .social { display: inline-flex; align-items: center; gap: 7px; }
footer.site .social svg { width: 19px; height: 19px; flex: none; }
