/* aong.dev: the pages behind the islands (project pages, the install guide, privacy, 404). They share the front
   page's look (css/isle.css): the same fonts, inks and liquid glass, over a still sea and sky instead of the 3D scene.
   The colour tokens at the top mirror isle.css; change them in both. The second block gives the older names the
   project pages' own stylesheets were written with (--panel, --line, --leaf...), so those sheets follow this look.
   Fonts are self-hosted (SIL Open Font License 1.1, see fonts/LICENSE-manrope.txt, LICENSE-inconsolata.txt and LICENSE-pixelify-sans.txt). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(../fonts/inconsolata-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/pixelify-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/pixelify-sans-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #0a2a3d;
  --ink-soft: rgba(10, 42, 61, 0.8);
  --ink-faint: rgba(10, 42, 61, 0.6);
  --tint: 255, 255, 255;
  --glass-fill: 0.66;
  --wash: rgba(10, 42, 61, 0.07);
  --wash-2: rgba(10, 42, 61, 0.13);
  --rule: rgba(10, 42, 61, 0.14);
  --solid: #0a2a3d;
  --on-solid: #ffffff;
  --accent: #b4560a;
  --on: #0f9d8a;
  --shade: rgba(2, 24, 40, 0.3);
  --over: #f4fbff;
  --over-shadow: rgba(0, 35, 60, 0.55);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inconsolata", ui-monospace, "Cascadia Mono", Consolas, monospace;   /* titles */
  --pixel: "Pixelify Sans", "Inconsolata", ui-monospace, monospace;            /* titles of anything Balatro */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 56px);
  --backdrop: radial-gradient(60% 34% at 72% 6%, rgba(255, 244, 214, 0.75), transparent 70%), linear-gradient(#5fa9de 0%, #a9d8ee 34%, #58c2c4 58%, #17809c 82%, #0c5877 100%);
  color-scheme: light;

  /* the older names */
  --ink-dim: var(--ink-soft);
  --panel: rgba(var(--tint), var(--glass-fill));
  --glass: rgba(var(--tint), var(--glass-fill));
  --glass-edge: rgba(255, 255, 255, 0.5);
  --panel-solid: #f1f8fb;
  --panel-sub: var(--wash);
  --line: var(--rule);
  --menu-bg: rgba(244, 251, 255, 0.95);
  --focus: var(--ink);
  --f-head: var(--sans);
  --f-body: var(--sans);
  --f-label: var(--sans);
  --leaf: #3fb98a; --leaf-deep: #177a57;
  --sky: #5aa9e6; --sky-deep: #1f6aa8;
  --sun: #f0b54a; --sun-deep: #a8740f;
  --berry: #e58099; --berry-deep: #a23d5c;
  --night: #071a2e;
  --r: 26px;
  --bar: 76px;
}
:root[data-theme="dark"] {
  --ink: #f4fbff;
  --ink-soft: rgba(240, 250, 255, 0.8);
  --ink-faint: rgba(240, 250, 255, 0.58);
  --tint: 8, 30, 48;
  --glass-fill: 0.58;
  --wash: rgba(255, 255, 255, 0.1);
  --wash-2: rgba(255, 255, 255, 0.17);
  --rule: rgba(255, 255, 255, 0.14);
  --solid: #ffffff;
  --on-solid: #06283b;
  --accent: #ffd27a;
  --on: #35c4b0;
  --shade: rgba(2, 24, 40, 0.5);
  --backdrop: radial-gradient(40% 22% at 76% 8%, rgba(190, 215, 255, 0.28), transparent 70%), linear-gradient(#050f24 0%, #0d2748 36%, #0c3d55 60%, #082c44 100%);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --panel-solid: #0c2a40;
  --menu-bg: rgba(8, 30, 48, 0.95);
  --sky-deep: #9fd0f5; --sun-deep: #f0b54a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--ink); font: 500 16px/1.55 var(--sans); background: #0c5877; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--backdrop); }
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h3, h4 { letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86em; background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; border-radius: 999px; background: #fff; color: #0b3550; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Balatro pages (html.balatro): titles in the pixel face, and Balatro's paint swirl (balatro/js/swirl.js draws it
   on #swirl) in place of the sea and sky */
html.balatro { --display: var(--pixel); }
html.balatro h1, html.balatro h2, html.balatro h3, html.balatro h4 { font-weight: 600; letter-spacing: 0; }
html.balatro .brand { --display: "Inconsolata", ui-monospace, monospace; }
#swirl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; image-rendering: pixelated; pointer-events: none; background: radial-gradient(circle at 50% 40%, #5aa58d, #2a6b50); }
html[data-theme="dark"] #swirl { background: radial-gradient(circle at 50% 40%, #2a6b50, #0e271f); }
html.balatro body { background: #0e271f; }
html.balatro body::before { display: none; }

/* liquid glass, as on the front page */
.glass, .panel {
  position: relative; isolation: isolate; color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.1)), rgba(var(--tint), var(--glass-fill));
  -webkit-backdrop-filter: blur(26px) saturate(1.45) brightness(1.04);
  backdrop-filter: blur(26px) saturate(1.45) brightness(1.04);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.8), inset 1px 0 0.5px rgba(255, 255, 255, 0.4),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.24), inset -1px 0 0.5px rgba(255, 255, 255, 0.16),
    inset 0 0 26px rgba(255, 255, 255, 0.1), 0 18px 50px -12px var(--shade), 0 2px 6px rgba(2, 24, 40, 0.16);
}
:root[data-theme="dark"] .glass, :root[data-theme="dark"] .panel {
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.3), inset 1px 0 0.5px rgba(255, 255, 255, 0.14), inset 0 0 26px rgba(255, 255, 255, 0.04), 0 18px 50px -12px var(--shade), 0 2px 6px rgba(2, 24, 40, 0.16);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --glass-fill: 0.86; } }
.panel { border-radius: var(--r); }

/* top: the name on the left, a small glass pill on the right */
.top { position: absolute; z-index: 30; top: calc(14px + env(safe-area-inset-top)); left: max(var(--pad), env(safe-area-inset-left)); right: max(var(--pad), env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; }
.brand { font: 700 26px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--over); text-shadow: 0 1px 14px var(--over-shadow), 0 1px 2px var(--over-shadow); padding: 4px 2px 8px; transition: opacity 0.3s; }
.brand:hover { opacity: 0.8; }
.bar { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 5px; border-radius: 999px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink-soft); transition: background-color 0.25s, color 0.25s; }
.icon-btn:hover, .icon-btn:active { background: var(--wash-2); color: var(--ink); }
.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

/* a page: a column of glass sheets */
.page { max-width: 860px; margin: 0 auto; padding: var(--bar) 20px 0; display: grid; gap: 18px; align-content: start; }
.back, .page-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--over); text-shadow: 0 1px 8px var(--over-shadow); transition: opacity 0.3s;
}
.back:hover, .page-back:hover { opacity: 0.78; }
.sheet { display: grid; gap: 14px; padding: 28px 30px; }
.sheet h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.02; }
.sheet h2 { font-size: 1.6rem; }
.sheet h3 { font-size: 1.2rem; }
.sheet p, .sheet li { color: var(--ink-soft); }
.sheet .small, .small { font-size: 0.9rem; }
.label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.facts { display: grid; gap: 8px; margin: 0; }
.facts div { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 13px 16px; border-radius: 16px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-soft); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); }
.chip-open { background: color-mix(in srgb, var(--on) 22%, transparent); }
.chip-soon { color: var(--ink-faint); }
.chip-dev { background: color-mix(in srgb, var(--sun) 30%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notfound { justify-items: start; margin-top: 14vh; }

/* buttons: one solid kind for the main thing to do, one quiet kind for the rest. Hover changes the fill and the
   outline, nothing moves. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px;
  font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; background: var(--wash); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule); transition: background-color 0.4s, box-shadow 0.4s, color 0.4s;
}
.btn:hover { background: var(--wash-2); box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.btn-leaf, .btn-green, .btn-main { background: var(--solid); color: var(--on-solid); box-shadow: 0 0 0 2px transparent, 0 6px 20px -6px rgba(0, 30, 50, 0.45); }
.btn-leaf:hover, .btn-green:hover, .btn-main:hover { background: color-mix(in srgb, var(--solid) 84%, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 75%, transparent), 0 6px 20px -6px rgba(0, 30, 50, 0.45); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 13.5px; }
.btn-off, .btn[disabled] { background: var(--wash); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--rule); cursor: default; }
.btn-off:hover { background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 44px var(--pad) 20px; font-size: 12.5px; color: var(--over); text-shadow: 0 1px 8px var(--over-shadow); }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 640px) {
  .top { top: calc(10px + env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); }
  .brand { font-size: 23px; }
  .page { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .sheet { padding: 22px 20px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}
/* touch screens: phones zoom in on any text field under 16px, so fields are never smaller than that */
@media (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea { font-size: max(16px, 1em); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01s !important; animation-duration: 0.01s !important; } }
