/* Royal App Labs: one stylesheet for every page. No web fonts, scripts, or trackers: the pages load nothing from
   anywhere else. */

:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --ink: #1b2420;
  --muted: #5a645f;
  --line: #e3ddcf;
  --green: #0d5240;
  --green-ink: #0d5240;
  --gold: #9a6f17;
  --gold-soft: #d8b25a;
  --note: #fbf3df;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #12201b;
    --ink: #ece7da;
    --muted: #a3ada7;
    --line: #24362f;
    --green: #0d5240;
    --green-ink: #7cc7a8;
    --gold: #dcb860;
    --gold-soft: #dcb860;
    --note: #1d2a1f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header and footer */

.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 20px/1.2 var(--serif); letter-spacing: 0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; flex: none; }
.site-head nav { display: flex; gap: 22px; font-size: 15px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }

.site-foot { border-top: 1px solid var(--line); margin-top: 72px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 40px; }
.site-foot a { color: var(--muted); }

/* Home */

.hero { padding: 88px 0 64px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 16ch; font: 600 clamp(38px, 6vw, 60px)/1.08 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.hero p { margin: 22px 0 0; max-width: 34em; color: var(--muted); font-size: 19px; }

.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}
.app-head { display: flex; align-items: center; gap: 22px; }
.app-icon { width: 88px; height: 88px; flex: none; border-radius: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(13, 82, 64, 0.18); }
.app-head h2 { margin: 0; font: 600 34px/1.1 var(--serif); }
.app-head p { margin: 6px 0 0; color: var(--muted); }
.badge { display: inline-block; margin-top: 10px; padding: 4px 12px; border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--gold); font-size: 13px; font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 36px; margin: 36px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); list-style: none; }
.features h3 { margin: 0 0 6px; font: 600 19px/1.3 var(--serif); }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.support { padding: 72px 0 0; }
.support h2 { margin: 0 0 10px; font: 600 30px/1.2 var(--serif); }
.support p { margin: 0 0 8px; color: var(--muted); }
.mail { font-size: 19px; font-weight: 600; }

/* Policy pages */

.doc { padding: 64px 0 0; }
.doc h1 { margin: 0; font: 600 clamp(34px, 5vw, 46px)/1.1 var(--serif); }
.doc .updated { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 44px 0 10px; font: 600 24px/1.25 var(--serif); }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { margin: 28px 0 0; padding: 16px 20px; background: var(--note); border-left: 3px solid var(--gold-soft); border-radius: 0 12px 12px 0; }
.note p { margin: 0; }
.short { margin: 28px 0 0; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.short h2 { margin-top: 0; }
.short ul { margin-bottom: 0; }

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 56px 0 44px; }
  .hero p { font-size: 17px; }
  .app { padding: 24px 20px; border-radius: 20px; }
  .app-head { align-items: flex-start; gap: 16px; }
  .app-icon { width: 64px; height: 64px; border-radius: 15px; }
  .app-head h2 { font-size: 28px; }
  .short { padding: 20px; }
}
