/* One More Book — shared styling for the support and privacy pages.
   Colours are lifted from the app's own palette (OneMoreBook/Design/Theme.swift)
   so the website and the app look like the same thing. */

:root {
  --paper:     #FFF6EA;
  --raised:    #FFFFFF;
  --shelf:     #F3E3CE;
  --ink:       #2E2A33;
  --ink-soft:  #6E6675;
  --hairline:  #E7DAC8;
  --blueberry: #4C6FE7;
  --tangerine: #D4541A;
  --meadow:    #1E8F66;
  --grape:     #7B4FC4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #221E2A;
    --raised:    #2E2836;
    --shelf:     #2A2434;
    --ink:       #F6F0E7;
    --ink-soft:  #B6ADBE;
    --hairline:  #3D3548;
    --blueberry: #5C7CF0;
    --tangerine: #E06326;
    --meadow:    #27A477;
    --grape:     #9068D6;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 72px;
}

/* --- Header ------------------------------------------------------------ */

header {
  padding: 56px 0 34px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blueberry);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.mark svg { width: 32px; height: 32px; fill: #fff; }

.wordmark { font-size: 20px; font-weight: 800; line-height: 1.15; }
.wordmark span { display: block; color: var(--tangerine); }

h1 {
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(18px, 3vw, 20px);
  color: var(--ink-soft);
  margin: 0;
  max-width: 34em;
}

/* --- Cards ------------------------------------------------------------- */

section {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 26px 26px 28px;
  margin: 0 0 20px;
}

section h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 4px;
}

section > p:first-of-type { margin-top: 8px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

a { color: var(--blueberry); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }

/* --- Numbered / bulleted lists ----------------------------------------- */

ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grape);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong { display: block; }

/* --- Faq --------------------------------------------------------------- */

.faq { border-top: 1px solid var(--hairline); padding-top: 18px; margin-top: 18px; }
.faq:first-of-type { border-top: 0; padding-top: 0; margin-top: 14px; }
.faq h3 { margin-top: 0; }
.faq p { color: var(--ink-soft); }

/* --- Contact ----------------------------------------------------------- */

.contact { background: var(--shelf); border-color: transparent; }
.contact .email {
  display: inline-block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
}
.reply { color: var(--ink-soft); font-size: 15px; margin-top: 12px; }

/* --- Footer ------------------------------------------------------------ */

footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  padding-top: 10px;
}

footer a { margin: 0 8px; }

/* --- Privacy page tweaks ----------------------------------------------- */

.updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 24px; }

.back {
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
