/*
 * Days and Tales — the public legal and support pages.
 *
 * One stylesheet for all five pages. Deliberately small and dependency-free: these pages
 * are the ones an App Store reviewer opens, and the one place where a build step, a
 * framework or a CDN that happens to be down turns into a rejection. No JavaScript is
 * loaded anywhere on this site, which is also why the cookie section of the privacy
 * policy can say what it says.
 *
 * Colours are the Story Sprout palette from the brand delivery, so the pages and the app
 * are visibly the same product.
 */

:root {
  --paper: #FFF7F0;
  --card: #FFFFFF;
  --ink: #382D25;
  --ink-soft: #6E6058;
  --ink-faint: #9B8579;
  --line: #EADDD1;
  --coral: #E8887D;
  --coral-deep: #A55449;
  --mint: #A8D8B9;
  --apricot: #F8D9C4;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 0 72px;
}

/* ---------- masthead ---------- */

header.site {
  padding-block: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand svg { display: block; width: 40px; height: 40px; }

.brand span {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.012em;
}

h1 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 26px 0 0;
}

.dateline {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 14px;
}

.lede {
  margin-top: 18px;
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------- body ---------- */

main { margin-top: 30px; }

h2 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 40px 0 0;
  text-wrap: balance;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 26px 0 0;
}

p, ul, ol, table { margin: 14px 0 0; }

ul, ol { padding-left: 22px; }

li + li { margin-top: 8px; }

li::marker { color: var(--coral-deep); }

a { color: var(--coral-deep); text-underline-offset: 2px; }

a:hover { color: var(--ink); }

strong { font-weight: 700; }

/* ---------- pieces ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 24px;
}

.card h2, .card h3 { margin-top: 0; }

.card.accent { border-left: 3px solid var(--coral); }

.scroll { overflow-x: auto; margin-top: 16px; }

table { border-collapse: collapse; width: 100%; font-size: 15.5px; }

th, td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.fill {
  background: #FFF0B8;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

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

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-top: 18px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--coral-deep);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 22px;
  border-radius: 11px;
  background: var(--coral);
  color: #FFF;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid var(--coral-deep);
}

.button:hover { background: var(--coral-deep); color: #FFF; }

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 26px;
}

.cards a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}

.cards a:hover { border-color: var(--coral); }

.cards strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  display: block;
}

.cards span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

footer a { color: var(--ink-soft); }

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .card { padding: 18px 18px; }
}
