/* Birdsong Match's palette, taken from the game: sea teal, sunset gold, sand,
   driftwood, berry red and the parchment of the board cells.
   No web fonts and no scripts: this site loads nothing from anyone else. */
:root {
  color-scheme: light dark;
  --page:#fbf3e2; --paper:#fff9ec; --ink:#20352f; --muted:#4b5d56; --line:rgba(32,53,47,0.16);
  --sea:#1d7f93; --sea-deep:#145a68; --gold:#e9a83a; --gold-deep:#9a6312; --berry:#c8384a; --wood:#8a5a32;
  --button:#285c4e; --button-ink:#ffffff; --link:#16677a;
  --serif:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  --sans:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page:#13201d; --paper:#1b2b27; --ink:#f3ead6; --muted:#c9c2b0; --line:rgba(243,234,214,0.16);
    --sea:#5fc3d6; --sea-deep:#8fd7e4; --gold:#f2bf5e; --gold-deep:#f2bf5e; --berry:#f07b8b; --wood:#d4a274;
    --button:#3f8a75; --button-ink:#ffffff; --link:#8fd7e4;
  }
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--sans); background:var(--page); color:var(--muted); line-height:1.7;
       font-size:1.04rem; -webkit-font-smoothing:antialiased; }
h1,h2,h3 { font-family:var(--serif); font-weight:700; color:var(--ink); line-height:1.16; }
a { color:var(--link); }
strong { color:var(--ink); font-weight:700; }
img { max-width:100%; height:auto; display:block; }
.wrap { max-width:1080px; margin:0 auto; padding:0 20px; }
.container { max-width:800px; margin:0 auto; padding:0 20px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

nav { position:sticky; top:0; z-index:30; background:color-mix(in srgb, var(--page) 92%, transparent);
      backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.nav-inner { max-width:1080px; margin:0 auto; padding:12px 20px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; }
.brand { font-family:var(--serif); font-size:1.3rem; font-weight:700; color:var(--ink); text-decoration:none; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.brand img { width:34px; height:34px; border-radius:9px; }
.nav-links { display:flex; flex-wrap:wrap; gap:4px 22px; font-size:0.92rem; font-weight:600; }
.nav-links a { color:var(--ink); text-decoration:none; }
.nav-links a:hover { text-decoration:underline; }
@media (max-width:640px) { .nav-links { gap:16px; } .nav-links a.opt { display:none; } }

/* Home hero: the restored Arrival Shore panorama under the sea and sky. */
.hero { position:relative; text-align:center; color:#fff; overflow:hidden;
        background:#145a68 url(art/sea.jpg) center top / cover no-repeat; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(12,40,48,0.35), rgba(12,40,48,0.15) 45%, rgba(12,40,48,0.55)); }
.hero .inner { position:relative; z-index:1; padding:56px 20px 30px; }
.hero .icon { width:120px; height:120px; border-radius:28px; margin:0 auto 18px; box-shadow:0 10px 30px rgba(0,0,0,0.35); }
.hero h1 { color:#fff; font-size:clamp(2.3rem,7vw,3.8rem); text-shadow:0 3px 14px rgba(0,0,0,0.45); }
.hero .tagline { font-family:var(--serif); font-size:clamp(1.15rem,3.4vw,1.55rem); margin:8px auto 22px; max-width:28em; text-shadow:0 2px 10px rgba(0,0,0,0.5); }
.hero .panorama { position:relative; z-index:1; width:100%; }
.cta { display:inline-flex; align-items:center; gap:10px; padding:13px 24px; border-radius:999px; background:var(--button); color:var(--button-ink);
       font-weight:700; text-decoration:none; border:2px solid #d9bc7f; box-shadow:0 4px 14px rgba(0,0,0,0.25); }
.cta:hover { filter:brightness(1.1); }
.hero .fine { margin-top:12px; font-size:0.92rem; text-shadow:0 1px 6px rgba(0,0,0,0.6); }

section { padding:64px 0; }
section.paper { background:var(--paper); }
.eyebrow { font-size:0.78rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:var(--gold-deep); margin-bottom:10px; }
h2 { font-size:clamp(1.7rem,4vw,2.4rem); margin-bottom:14px; }
.intro { max-width:40em; margin-bottom:30px; }
.center { text-align:center; }
.center .intro { margin-left:auto; margin-right:auto; }

/* The tiles, as they look on the board. */
.pieces { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin:0 auto; max-width:760px; }
.pieces figure { width:112px; background:#f6e6c4; border:2px solid #b7955e; border-radius:18px; padding:10px 8px 8px; }
.pieces img { width:76px; height:76px; object-fit:contain; margin:0 auto 4px; }
.pieces figcaption { font-size:0.82rem; font-weight:700; color:#4a3a22; text-align:center; line-height:1.3; }

/* Before and after: the same panorama strip at two restoration stages. */
.restore { display:grid; gap:18px; }
.restore figure { border-radius:16px; overflow:hidden; border:1px solid var(--line); background:var(--paper); }
.restore img { width:100%; }
.restore figcaption { padding:10px 14px; font-size:0.94rem; }
.restore figcaption b { color:var(--ink); }
@media (min-width:760px) { .restore.pair { grid-template-columns:1fr 1fr; } }

.shots { display:flex; flex-wrap:wrap; justify-content:center; gap:22px; }
.shots img { width:min(300px,86vw); border-radius:22px; border:3px solid var(--ink); box-shadow:0 10px 26px rgba(0,0,0,0.2); }

.features { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
.feature { background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:20px; }
section.paper .feature { background:var(--page); }
.feature h3 { font-size:1.15rem; margin-bottom:6px; }

/* Legal and support pages. */
.page-header { padding:48px 0 26px; border-bottom:1px solid var(--line); background:var(--paper); }
.page-header h1 { font-size:clamp(2rem,6vw,3rem); margin-bottom:8px; }
.updated { display:inline-block; margin-top:8px; font-size:0.8rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-deep); }
main.doc { padding:36px 0 70px; }
main.doc h2 { font-size:1.55rem; margin:40px 0 12px; padding-bottom:8px; border-bottom:3px solid var(--gold); }
main.doc h3 { font-size:1.15rem; margin:22px 0 8px; }
main.doc p { margin-bottom:14px; }
main.doc ul { padding-left:22px; margin-bottom:14px; }
main.doc li { margin-bottom:6px; }
.summary { background:var(--paper); border:1px solid var(--line); border-left:6px solid var(--sea); border-radius:12px; padding:20px 22px; margin:8px 0 18px; }
.summary ul { margin-bottom:0; }
.callout { background:var(--paper); border:1px solid var(--line); border-left:6px solid var(--gold); border-radius:10px; padding:16px 20px; margin:20px 0; }
.table-wrap { overflow-x:auto; margin-bottom:16px; }
table { border-collapse:collapse; width:100%; font-size:0.95rem; }
th, td { border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top; }
th { background:var(--paper); color:var(--ink); }
details { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px 18px; margin-bottom:12px; }
summary { cursor:pointer; font-weight:700; color:var(--ink); }
details p { margin-top:10px; margin-bottom:0; }

footer { border-top:1px solid var(--line); padding:30px 0 40px; font-size:0.92rem; text-align:center; }
footer .links { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 20px; margin:8px 0; }
footer a { color:var(--ink); }
