:root {
  color-scheme: dark;
  --page: #202b28;
  --panel: #293632;
  --ink: #f5eedc;
  --subtle: #c3cec4;
  --gold: #edd097;
  --line: #4e5b51;
  --serif: "Libre Caslon Display", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 "DM Sans", sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; }
.masthead a, nav a, .footer a { text-decoration: none; }
.wordmark { color: var(--ink); font: 27px/1 var(--serif); }
.masthead a:last-child, nav, .footer { font-size: .875rem; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 78px); padding-block: clamp(32px, 7vw, 84px); }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1; }
h1 { margin-block: 10px 20px; font-size: clamp(3.75rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.05rem; line-height: 1.4; }
.lede { max-width: 38ch; color: var(--subtle); font-size: 1.125rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 5px; background: var(--gold); color: #24291d; font-weight: 700; text-decoration: none; }
.primary:hover { background: #f7e1b3; color: #24291d; }
.primary:disabled { cursor: wait; opacity: .7; }
.install-options { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 22px; }
.install-option { display: grid; justify-items: start; gap: 6px; }
.platform { color: var(--subtle); font-size: .8125rem; font-weight: 700; }
.store-badge, .store-badge img { display: block; }
.install-options .primary { gap: 9px; padding-inline: 13px; }
.apk-download { margin-block: 20px; }
.apk-download .metadata { margin-top: 8px; }
.metadata, figcaption { color: var(--subtle); font-size: .8125rem; }
.preview { min-width: 0; padding: clamp(14px, 2vw, 26px); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.preview-images { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.7vw, 18px); }
.preview img { display: block; width: 100%; height: auto; border: 1px solid #687166; border-radius: 8px; }
figcaption { margin-top: 14px; }
.guide { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 32px; padding-block: 48px 70px; }
nav { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; align-self: start; }
nav a:hover, .masthead a:hover, .footer a:hover { text-decoration: underline; }
.guide section { max-width: 720px; }
.guide section + section { margin-top: 52px; }
.steps { margin: 28px 0 18px; padding-left: 1.4em; }
.steps li { padding-left: .5em; margin-bottom: 22px; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.steps p, details p, dialog p { color: var(--subtle); margin-top: .35rem; }
.reference { margin-top: 14px; font-size: .875rem; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { margin-top: 16px; }
summary { font-weight: 600; }
.footer { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-block: 22px; }
dialog { width: min(460px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 28px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
dialog::backdrop { background: rgb(9 14 12 / .8); }
dialog h2 { font-size: 2.35rem; padding-right: 30px; }
.close-form { position: absolute; top: 12px; right: 12px; }
.close { width: 38px; height: 38px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font-size: 1.4rem; }
.email-label { display: block; margin-top: 20px; font-weight: 600; }
input[type="email"] { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #7f8b7d; border-radius: 5px; background: var(--page); color: var(--ink); }
.consent { display: flex; align-items: start; gap: 9px; font-size: .875rem; margin-top: 14px; }
.consent input { flex: none; width: 17px; height: 17px; accent-color: var(--gold); }
#signup .reference { display: inline-block; margin-top: 10px; }
#signup-error { color: #ffc6b5; }
#submit-signup, #apk-link { display: flex; width: 100%; margin-top: 18px; }
@media (max-width: 700px) {
  .hero, .guide { grid-template-columns: 1fr; }
  .preview { max-width: 470px; }
  nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 3.25rem; }
  dialog { padding: 20px; }
}
