@font-face { font-family: "Sarabun"; src: url("Sarabun-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sarabun"; src: url("Sarabun-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --bg-gradient: linear-gradient(135deg, #e8deff 0%, #c8dcff 50%, #d4f5e2 100%);
  --page-bg: #c8dcff;
  --glass-fill: rgba(255, 255, 255, 0.38);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 24px rgba(75, 58, 158, 0.18);
  --text-primary: #2a1f4a;
  --text-secondary: #5b5380;
  --text-muted: #625a86;
  --accent-text: #5246b8;
  --rule: rgba(75, 58, 158, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-gradient: linear-gradient(135deg, #2a1e4c 0%, #1d2148 32%, #16294a 66%, #0f2b3c 100%);
    --page-bg: #16294a;
    --glass-fill: rgba(173, 190, 255, 0.07);
    --glass-border: rgba(196, 208, 255, 0.24);
    --glass-shadow: 0 8px 24px rgba(6, 8, 24, 0.5);
    --text-primary: #e9e6f7;
    --text-secondary: #b0b8d8;
    --text-muted: #949dbd;
    --accent-text: #b3a5ff;
    --rule: rgba(196, 208, 255, 0.14);
  }
}
* { box-sizing: border-box; }
/* Shown past the fixed gradient on overscroll; the gradient's middle stop. */
html { background: var(--page-bg); }
body {
  margin: 0; min-height: 100vh;
  font-family: "Sarabun", system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-gradient) fixed;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }
header { display: flex; align-items: center; gap: 14px; margin: 0 4px 24px; }
header img { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--glass-shadow); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-text); }
.eyebrow a { font-weight: inherit; text-decoration: none; }
h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; }
.wordmark { margin: 0; font-size: 34px; letter-spacing: -0.01em; }
.lede { margin: 6px 0 0; font-size: 18px; color: var(--text-secondary); }
.card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: 24px 22px 8px;
  margin-bottom: 16px;
  -webkit-backdrop-filter: saturate(140%); backdrop-filter: saturate(140%);
}
.app-row { display: flex; gap: 16px; align-items: flex-start; }
.app-row img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-row .placeholder { width: 56px; height: 56px; border-radius: 14px; flex: none;
  border: 1px dashed var(--rule); }
.app-row h3 { margin: 0 0 4px; font-size: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: 15px; }
.status { color: var(--text-muted); font-size: 15px; }
.meta { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }
section { max-width: 62ch; }
h2 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.card > h2:first-child { margin-top: 0; }
p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
a { color: var(--accent-text); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 2px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin: 20px 4px 0; font-size: 13px; color: var(--text-muted); }
@media (max-width: 480px) {
  main { padding-top: 20px; }
  .card { padding: 20px 16px 4px; }
  h1 { font-size: 22px; }
  .wordmark { font-size: 28px; }
}
