/* Wishes' pages, in the app's design tokens (Wishes/DesignSystem/DesignTokens.swift):
   Rasa for titles, Noto Sans Display for text, the warm-neutral palette. */

@font-face {
  font-family: "Rasa";
  src: url("fonts/Rasa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Display";
  src: url("fonts/NotoSansDisplay.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #F6F3ED;
  --text: #2C281F;
  --text-support: #6E6757;
  --separator: rgb(44 40 31 / 0.10);
  --link-underline: rgb(44 40 31 / 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0D0B08;
    --text: #FAF8F3;
    --text-support: #E4DFD5;
    --separator: rgb(250 248 243 / 0.12);
    --link-underline: rgb(250 248 243 / 0.40);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Noto Sans Display", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

@media (min-width: 600px) {
  .page { padding: 56px 24px 64px; }
}

/* The app's name and icon, linking to the App Store. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 0.5px var(--separator);
}

.brand span {
  font-family: "Rasa", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

h1 {
  margin: 40px 0 4px;
  font-family: "Rasa", Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.updated {
  margin: 0;
  color: var(--text-support);
  font-size: 15px;
}

.lede {
  margin: 24px 0 0;
}

h2 {
  margin: 40px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

p, ul { margin: 0 0 12px; }

ul { padding-left: 20px; }

li { margin-bottom: 8px; }

li::marker { color: var(--text-support); }

strong { font-weight: 600; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  color: var(--text-support);
  font-size: 15px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

footer nav a { text-decoration: none; }

footer nav a:hover { text-decoration: underline; }

footer nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

footer p { margin: 0; }
