/* settled.games: the room every page of the site stands in (docs/briefs/the-website.md).
   BRAND: Undermountain, not parchment; dark only; light has a source; New York for what is read
   aloud, the system sans for the rest, monospaced small caps for stamps. Nothing else: no web
   font, no script from anyone else, no cookie. */

:root {
  --floor: #0E111B; --wall: #1A2130; --surface: #151B29;
  --lantern: #F2B33D; --hot: #FFE7B0; --circle: #5DE0F0; --bone: #EDE6D6; --ember: #E2543B; --moss: #8FD18C;
  --bone-85: rgba(237,230,214,.85); --bone-70: rgba(237,230,214,.7); --bone-55: rgba(237,230,214,.55);
  --bone-40: rgba(237,230,214,.4); --bone-12: rgba(237,230,214,.12); --bone-07: rgba(237,230,214,.07);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", Consolas, monospace;
  --measure: 1120px; --gutter: clamp(22px, 5vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--floor); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--floor); color: var(--bone); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; position: relative; }
::selection { background: rgba(242,179,61,.3); color: var(--bone); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 4px; border-radius: 6px; }
img, svg, canvas { display: block; }

/* The floor is stone, not vector: a grain over everything, and the dark gathering at the edges. */
.grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .09; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dark { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, rgba(0,0,0,0) 46%, rgba(0,0,0,.5) 100%); }

/* Stamps: the small caps the app marks things with. */
.stamp { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-55); }
.stamp.lit { color: var(--lantern); }
.stamp.cold { color: var(--circle); }

/* The logo: the die and the name, the word in the serif, in Bone, no full stop. */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone);
  font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.012em; line-height: 1; }
.lockup img { width: 30px; height: 30px; }

/* The foot of every page. */
.foot { position: relative; z-index: 2; margin: 0 auto; max-width: var(--measure); padding: 44px var(--gutter) calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bone-07); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-left: auto; }
.foot nav:first-child { margin-left: 0; }
.foot nav a { font-size: 15px; color: var(--bone-70); text-decoration: none; padding: 8px 0; }
.foot nav a:hover { color: var(--bone); text-decoration: underline; text-decoration-color: var(--bone-40); text-underline-offset: 4px; }
.foot .made { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--bone-40); }

/* ---------- The reading pages: privacy, terms, support, publishers ---------- */
.page { position: relative; z-index: 2; margin: 0 auto; max-width: 760px; padding: calc(34px + env(safe-area-inset-top)) var(--gutter) 96px; }
.page > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(56px, 11vh, 110px); }
.page > header a { text-decoration: none; }
.page > header a.back { font-size: 15px; color: var(--bone-55); text-decoration: none; padding: 10px 0; }
.page > header a.back:hover { color: var(--bone); }
.page .lamp { position: absolute; z-index: -1; left: 0; right: 0; top: -220px; height: 620px; pointer-events: none;   /* never wider than the page: a phone is not made to scroll sideways for a glow */
  background: radial-gradient(ellipse 450px 310px at 50% 40%, rgba(242,179,61,.17) 0%, rgba(242,179,61,.07) 30%, rgba(242,179,61,.02) 52%, rgba(242,179,61,0) 70%); }
.page h1 { margin: 14px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6.4vw, 58px); line-height: 1.04; letter-spacing: -.02em; }
.page .lede { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 24px); line-height: 1.4; color: var(--bone-85); max-width: 34em; }
.page .dated { margin-top: 26px; }
.page h2 { margin: 72px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -.012em; }
.page h3 { margin: 34px 0 0; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; }
.page p, .page li { color: var(--bone-70); max-width: 38em; }
.page p { margin: 14px 0 0; }
.page strong { color: var(--bone); font-weight: 600; }
.page ul { margin: 14px 0 0; padding: 0; list-style: none; }
.page li { position: relative; padding-left: 22px; margin-top: 10px; }
.page li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--lantern); opacity: .75; }
.page a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(242,179,61,.55); text-underline-offset: 4px; }
.page a:hover { text-decoration-color: var(--lantern); }

/* What is kept, set out as the app sets out a night: one slab a row. */
.kept { margin: 26px 0 0; display: grid; gap: 10px; }
.kept article { background: rgba(26,33,48,.72); border: 1px solid var(--bone-07); border-radius: 20px; padding: 20px 22px 18px; }
.kept h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--bone); }
.kept dl { margin: 12px 0 0; display: grid; grid-template-columns: 7.2em 1fr; gap: 7px 14px; }
.kept dt { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-40); padding-top: .42em; }
.kept dd { margin: 0; color: var(--bone-70); font-size: 16px; line-height: 1.5; }
.kept dd b { color: var(--bone); font-weight: 600; }

/* A question and its answer, on the support page. */
.asked { margin-top: 26px; border-top: 1px solid var(--bone-07); }
.asked details { border-bottom: 1px solid var(--bone-07); }
.asked summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--bone); }
.asked summary::-webkit-details-marker { display: none; }
.asked summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--bone-55); border-bottom: 1.5px solid var(--bone-55); transform: rotate(45deg); transition: transform .25s ease; }
.asked details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.asked details > div { padding: 0 0 22px; }
.asked details > div p:first-child { margin-top: 0; }

.write { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--lantern); color: var(--floor) !important;
  font-weight: 600; font-size: 17px; text-decoration: none !important; box-shadow: 0 10px 28px rgba(242,179,61,.24); transition: transform .14s ease; }
.write:active { transform: scale(.97); }

@media (max-width: 560px) {
  .kept dl { grid-template-columns: 1fr; gap: 2px; }
  .kept dt { padding-top: 10px; }
  .foot nav { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
