/* MarsDawn legal & support pages. Palette mirrors the Dawn preview theme (DESIGN.md). */

:root {
  color-scheme: light dark;
  --paper: #FFFDFB;
  --sand: #F6F0EC;
  --ink: #26211F;
  --dust: #6F6660;
  --hairline: #EADFD8;
  --ember: #C8471B;
  --link: #B03C0C;
  --rule: #D97A4A;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "PingFang SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1A1F;
    --sand: #262229;
    --ink: #EBE4DF;
    --dust: #A39992;
    --hairline: #3A343A;
    --ember: #FF8A50;
    --link: #FF9E6B;
    --rule: #E08A5C;
  }
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: color-mix(in srgb, var(--ember) 24%, transparent); }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px 96px;
}

/* Masthead: the icon's sunrise, the name, one quiet line. */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand strong { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
.lang {
  font-size: 0.9rem;
  color: var(--dust);
}
.lang a { color: var(--dust); }
.lang [aria-current="true"] { color: var(--ink); font-weight: 600; }

.intro { padding: 56px 0 8px; }
.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro p {
  margin: 0;
  max-width: 34rem;
  color: var(--dust);
  font-size: 1.1rem;
  text-wrap: pretty;
}
.updated { margin-top: 16px !important; font-size: 0.9rem !important; }

/* The one-line answer people came for. */
.summary {
  margin: 36px 0 8px;
  padding: 20px 22px;
  background: var(--sand);
  border-radius: 8px;
  font-size: 1.05rem;
}
.summary p { margin: 0; }

h2 {
  margin: 48px 0 10px;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 {
  margin: 28px 0 6px;
  font-size: 1.05rem;
  font-weight: 650;
}
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 6px; }
li::marker { color: var(--ember); }
strong { font-weight: 650; }
code {
  font: 0.9em var(--mono);
  background: var(--sand);
  padding: 0.12em 0.36em;
  border-radius: 4px;
}
kbd {
  font: 0.85em var(--font);
  padding: 0.05em 0.4em;
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--paper);
}

/* Contact block on the support page. */
.contact {
  margin: 36px 0 8px;
  padding: 24px 22px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
}
.contact h2 { margin-top: 0; }
.contact .email {
  display: inline-block;
  margin: 4px 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
}

.faq h3 { margin-top: 32px; }

.footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--dust);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer a { color: var(--dust); }

/* Home page links */
.links { list-style: none; padding: 0; margin: 32px 0 0; }
.links li + li { margin-top: 10px; }
.links a { font-size: 1.1rem; font-weight: 600; }
