/* restandquest.com: what every page shares (type, colours, the top bar, the footer) and the calm text pages. */
@font-face { font-family: "Germania One"; src: url("/fonts/germania-one.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a1022;
  --ink-2: #111a35;
  --ink-3: #1a2650;
  --gold: #ffcf5a;
  --gold-d: #c98a22;
  --gold-l: #fff0b8;
  --blue: #2c8cff;
  --red: #ff5340;
  --green: #79e35a;
  --text: #f5f2ea;
  --muted: #c3cbe2;
  --display: "Germania One", "Trebuchet MS", system-ui, sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --vh: 100vh;
  --pad: clamp(16px, 4vw, 56px);
  --rim: 0 0 0 2px rgba(255, 207, 90, .55), 0 0 0 5px rgba(10, 16, 34, .9), 0 24px 60px rgba(0, 0, 0, .5);
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--ink); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: max(12px, env(safe-area-inset-top)) var(--pad) 12px; background: linear-gradient(180deg, rgba(7, 11, 26, .96), rgba(7, 11, 26, .9)); box-shadow: 0 1px 0 rgba(255, 207, 90, .3); transition: opacity .3s, background .3s; }
.top__home { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top__home img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 207, 90, .8), 0 4px 10px rgba(0, 0, 0, .4); }
.top__name { font-family: var(--display); font-size: 22px; text-shadow: 0 2px 0 #0a1022, 0 0 8px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s; }
.top__nav { margin-left: auto; display: flex; gap: 6px; }
.top__nav a { font-weight: 700; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 10px; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.top__nav a:hover { background: rgba(255, 255, 255, .12); }
.top__nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 4px 4px; }
.top__soon { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(8, 12, 28, .8); box-shadow: inset 0 0 0 1.5px rgba(255, 207, 90, .7); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(121, 227, 90, .7); animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(121, 227, 90, .7); } 70% { box-shadow: 0 0 0 8px rgba(121, 227, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(121, 227, 90, 0); } }

/* ---------- Store badge and buttons ---------- */
.store { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 14px; border-radius: 16px; background: linear-gradient(180deg, #161616, #000); color: #fff; box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px #3a2306, 0 8px 18px rgba(0, 0, 0, .45); }
.store__ico { width: 28px; height: 28px; fill: var(--gold); flex: none; }
.store__txt { display: flex; flex-direction: column; font-family: var(--display); font-size: 26px; line-height: 1; }
.store__txt small { font-family: var(--body); font-weight: 700; font-size: 12px; line-height: 1.2; color: #d9dbe4; }
.store--big { padding: 12px 26px 12px 18px; }
.store--big .store__txt { font-size: 32px; }
.store--big .store__txt small { font-size: 14px; }
.btn { border: 0; cursor: pointer; font-family: var(--display); font-size: 22px; line-height: 1; padding: 15px 22px 14px; border-radius: 16px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); transition: transform .12s; }
.btn--blue { background: linear-gradient(180deg, #5cb0ff, var(--blue) 50%, #1f6fe8); box-shadow: 0 0 0 2px #0d3c95, inset 0 2px 0 rgba(255, 255, 255, .45), 0 5px 0 #0d3c95, 0 10px 18px rgba(0, 0, 0, .35); }
.btn--blue:hover { transform: translateY(-1px); }
.btn--blue:active { transform: translateY(3px); box-shadow: 0 0 0 2px #0d3c95, inset 0 2px 0 rgba(255, 255, 255, .45), 0 2px 0 #0d3c95; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 3; background: #070b18; box-shadow: 0 -2px 0 rgba(255, 207, 90, .4); }
.foot__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 28px; padding: 30px var(--pad) max(30px, env(safe-area-inset-bottom)); max-width: 1440px; margin: 0 auto; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; text-decoration: none; }
.foot__brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot__line { margin: 0; color: var(--muted); font-size: 15px; }
.foot__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot__nav a { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; padding: 8px 0; }
.foot__nav a:hover { color: var(--gold); text-decoration: underline; }
.foot__fine { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #9aa3bf; }

/* ---------- Text pages: support, privacy, terms, not found ---------- */
.sheet-head { position: relative; padding: calc(max(12px, env(safe-area-inset-top)) + 110px) 0 46px; background: linear-gradient(180deg, rgba(10, 16, 34, .35), rgba(10, 16, 34, .7) 70%, var(--ink)), url("/img/sheet-banner.webp") center 46% / cover, var(--ink-2); box-shadow: inset 0 -1px 0 rgba(255, 207, 90, .25); }
.sheet-head__in { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }
.sheet-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; color: var(--gold-l); text-shadow: 0 3px 0 #3a2306, 2px 2px 0 #3a2306, -2px -2px 0 #3a2306, 2px -2px 0 #3a2306, -2px 2px 0 #3a2306, 0 0 24px rgba(0, 0, 0, .55); }
.updated { margin: 12px 0 0; display: inline-block; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 12, 28, .82); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, .45); }
.sheet { max-width: 720px; margin: 0 auto; padding: 36px var(--pad) 72px; font-size: 18px; line-height: 1.65; color: #e9ecf5; }
.sheet > :first-child { margin-top: 0; }
.sheet h2 { margin: 44px 0 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--gold-l); scroll-margin-top: 90px; }
.sheet h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(255, 207, 90, 0)); }
.sheet p, .sheet ul { margin: 14px 0 0; }
.sheet ul { padding-left: 1.3em; }
.sheet li { margin: 8px 0 0; }
.sheet li::marker { color: var(--gold); }
.sheet strong { color: #fff; }
.sheet a { color: var(--gold-l); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sheet a:hover { color: var(--gold); }
.sheet .lead { font-size: 20px; color: #fff; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 10px; }
  .top__nav { display: none; }
  .top__soon { margin-left: auto; font-size: 13px; padding: 7px 12px; }
  .top__name { font-size: 20px; }
  .foot__in { grid-template-columns: 1fr; }
  .sheet-head { padding-top: calc(max(12px, env(safe-area-inset-top)) + 84px); padding-bottom: 32px; }
  .sheet { font-size: 17px; padding-top: 28px; }
  .sheet h2 { font-size: 26px; margin-top: 36px; }
}
/* the text pages keep their links on a phone: the bar shows them in place of the "Coming soon" pill */
@media (max-width: 760px) {
  body.page-sheet .top__nav { display: flex; margin-left: auto; gap: 0; }
  body.page-sheet .top__nav a { padding: 8px 8px; font-size: 14px; }
  body.page-sheet .top__nav a[href="/"] { display: none; }
  body.page-sheet .top__soon { display: none; }
  body.page-sheet .top__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .dot { animation: none !important; }
}
