@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap');

/* Sill One pages. The frame (ground, panels, text, lines, links, buttons, footer) is Dave on Duty:
   the tokens below plus /dodgames/extras.css, which loads after this sheet and adds the effects.
   Sill One keeps its own voice inside its own content: the Newsreader serif for the title, the
   tagline and its card headings, and sage and mint for numbering, free prices and the tagline. */
:root {
  color-scheme: dark;
  /* Dave on Duty frame */
  --bg: #04060d;
  --bg-2: #0d142b;
  --panel: #111a36;
  --ink: #e8ecff;
  --ink-2: #9aa5c9;
  --ink-3: #8a95bb;
  --line: rgba(148, 163, 255, .14);
  --line-2: rgba(148, 163, 255, .24);
  --link: #8fd8ff;
  --link-2: #c3ecff;
  --violet: #8b93ff;
  --head: 'Sora', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Sill One, inside its own content */
  --sage: #8fb79b;
  --mint: #c7e2d0;
  --lamp: #f2b963;
  --serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 16px; background: var(--link); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
/* the game's serif: its title, and the headings of its own cards */
.hero h1, .card h3, .room h3, .plan h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 700 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--link); }

/* masthead, as on the hub */
.masthead { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.masthead nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.masthead nav a { text-decoration: none; color: var(--ink-2); }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }

/* the game page */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head art" "body art"; column-gap: 64px; padding: 72px 0 80px; }
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; }
.hero-art { grid-area: art; align-self: center; margin: 0; }
.hero-art img { width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.app-icon { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; }
.hero h1 { font-size: clamp(60px, 8.6vw, 108px); letter-spacing: -.03em; line-height: 1; }
.tagline { margin: 12px 0 0; color: var(--mint); font: italic 400 clamp(26px, 2.8vw, 34px)/1.2 var(--serif); }
.lead { margin: 28px 0 30px; max-width: 34em; color: var(--ink-2); font-size: 17.5px; }
.release { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.release-mark { color: var(--lamp); font-size: 26px; line-height: 1; }
.release small { display: block; color: var(--ink-3); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.release strong { font-size: 16px; font-weight: 600; }
a.release { color: inherit; text-decoration: none; transition: border-color .2s; }
a.release:hover { border-color: var(--lamp); }
.fine { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 13px; }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: end; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { margin: 0 0 12px; max-width: 38em; color: var(--ink-2); font-size: 16.5px; }
.section-head p + p { margin-top: 12px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* Sill One's own cards: a serif heading and a sage italic numeral */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.num { color: var(--sage); font: italic 400 22px/1 var(--serif); letter-spacing: 0; }
.card h3 { margin: 14px 0 10px; font-size: 27px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.room { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.room-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.room h3 { font-size: 23px; }
.price { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 20px; color: var(--ink-2); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.price.free { border-color: var(--sage); background: var(--sage); color: var(--bg); }
.room p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.note-line { margin: 22px 0 0; color: var(--ink-3); font-size: 13.5px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { padding: 32px 32px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.plan h3 { margin: 0 0 12px; font-size: 30px; }
.plan p, .plan li { color: var(--ink-2); font-size: 15.5px; }
.plan p { margin: 0 0 12px; }
.plan p:last-child { margin-bottom: 0; }
.plan ul { margin: 0 0 14px; padding-left: 1.15em; }
.plan li { margin-bottom: 6px; }
.plan li::marker { color: var(--sage); }
.plan strong { color: var(--ink); font-weight: 600; }
.plan a { color: var(--link); text-underline-offset: 3px; }
.plan a:hover { color: var(--link-2); }
.keep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; }
.keep p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.keep strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; font-size: 15.5px; }

/* several species, not one: the hero bento and the "On the sill" strip (real in-game captures) */
.hero-plants { display: grid; grid-template-columns: minmax(0, 1.39fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px; }
.hp-tile { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.hp-main { grid-row: 1 / 3; border-radius: 20px; }
.hero-plants .hp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.hp-main img { aspect-ratio: 1100 / 790; }
.hp-name { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(4, 6, 13, .72); color: var(--mint); font: italic 400 15px/1.3 var(--serif); }
.hp-cap { grid-column: 1 / -1; margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.plants-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin: 56px 0 18px; }
.plants-head h3 { font: 400 clamp(26px, 2.8vw, 32px)/1.1 var(--serif); letter-spacing: -.015em; }
.plants-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.plants { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.plants figure { margin: 0; }
.plants img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.plants figcaption { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.plants figcaption strong { display: block; color: var(--ink); font: 400 17px/1.25 var(--serif); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.gallery figcaption strong { display: block; color: var(--ink); font-weight: 600; }

.help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.help h2 { margin: 0 0 18px; font-size: clamp(30px, 3.6vw, 42px); }
.help p { margin: 0 0 22px; color: var(--ink-2); }
.contact { color: var(--link); font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(143, 216, 255, .5); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact:hover { color: var(--link-2); border-color: var(--link-2); }
.links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.links a:hover strong { color: var(--link); }
.links strong { display: block; font-size: 16.5px; font-weight: 600; }
.links small { display: block; color: var(--ink-2); font-size: 13.5px; }
.links .arrow { color: var(--violet); }

/* policy and support pages */
.doc { max-width: 780px; margin: 0 auto; padding: 60px 0 88px; }
.doc h1 { margin: 0 0 24px; font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.doc-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 36px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: 15px; }
.doc-meta dt { color: var(--ink-3); }
.doc-meta dd { margin: 0; }
.doc h2 { margin: 56px 0 14px; font-size: clamp(24px, 2.8vw, 30px); }
.doc h3 { margin: 30px 0 8px; font: 600 17px/1.4 var(--body); letter-spacing: 0; color: var(--ink); }
.doc p, .doc li, .doc td { color: var(--ink-2); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--violet); }
.doc strong, .doc .ui { color: var(--ink); font-weight: 600; }
.doc a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--link-2); text-decoration-thickness: 2px; }
.doc code { font: 14.5px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; }
.doc .lede { color: var(--ink); font-size: 18.5px; }
.doc table { width: 100%; margin: 18px 0 26px; border-collapse: collapse; font-size: 15.5px; }
.doc th, .doc td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc thead th { color: var(--link); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.doc tbody th { width: 38%; color: var(--ink); font-weight: 600; }
.toc { margin: 0 0 8px; padding: 18px 24px 16px; border: 1px solid var(--line); border-radius: 14px; }
.doc .toc h2 { margin: 0 0 10px; color: var(--link); font: 700 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.note { margin: 24px 0; padding: 16px 20px; border-left: 3px solid #818cf8; border-radius: 0 12px 12px 0; background: var(--bg-2); }
.note p:last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(92deg, #818cf8 0%, #22d3ee 100%); color: #04101f; font-weight: 700; text-decoration: none; }
.doc-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "art" "body"; padding: 56px 0 64px; }
  .hero-art { margin: 32px 0 30px; }
  .section-head, .help { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plants { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 86px; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
  .masthead nav { flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
  .hero { padding: 40px 0 52px; }
  .hero-art { margin: 26px 0 24px; }
  .hero-art img { border-radius: 14px; }
  .lead { font-size: 16.5px; margin-top: 0; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2, .help h2 { font-size: 29px; }
  .cards, .rooms { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 22px 22px 24px; }
  .card h3 { font-size: 24px; margin-top: 10px; }
  .plan { padding: 24px 22px; }
  .plan h3 { font-size: 27px; }
  .keep { grid-template-columns: minmax(0, 1fr); padding: 20px 22px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .hero-plants { gap: 8px; }
  .hp-tile, .hp-main { border-radius: 12px; }
  .hp-name { left: 6px; bottom: 6px; padding: 3px 8px; font-size: 12.5px; }
  .plants { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .plants-head { margin-top: 40px; }
  .gallery a { border-radius: 14px; }
  .gallery figcaption { font-size: 13px; }
  .doc { padding: 40px 0 64px; }
  .doc h1 { font-size: 36px; }
  .doc-meta { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 18px; }
  .doc-meta dd { margin-bottom: 8px; }
  .doc-meta dd:last-child { margin-bottom: 0; }
  .doc h2 { margin-top: 44px; }
  .toc ol { columns: 1; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tbody th { padding: 14px 0 2px; border-bottom: 0; width: 100%; }
  .doc td { padding: 0 0 14px; }
  .footer { padding: 26px 0 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
