/*
 * Didion's site. Brand tokens are the app's, from src/theme.ts, so the two read
 * as one thing.
 *
 * Fonts are self-hosted rather than pulled from Google. On a site whose main
 * page is a privacy policy promising no third-party tracking, loading fonts
 * from Google — which sees the visitor's IP — would undercut the claim.
 */

@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/DMSans_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --cream: #ffead6;
  --card: #fff7ef;
  --border: #f5dcc3;
  --brown: #562915;
  --brown-sub: #7a4a32;
  --brown-2: #8a6551;
  --orange: #eb6424;
  --orange-ink: #b4441a;
  --marigold: #f0a224;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
header.site img { width: 44px; height: 44px; }
header.site a {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  color: var(--brown);
  text-decoration: none;
}

h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  margin: 2.75rem 0 0.75rem;
}
h3 {
  font-size: 1.02rem;
  font-weight: 500;
  margin: 1.75rem 0 0.4rem;
}

.updated {
  color: var(--brown-2);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

p, li { color: var(--brown-sub); }
strong { color: var(--brown); font-weight: 500; }

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

ul { padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

.lede {
  font-size: 1.1rem;
  color: var(--brown-sub);
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--brown-2);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.site a { color: var(--brown-2); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 2rem 1.25rem 3.5rem; }
  h1 { font-size: 1.6rem; }
}

/*
 * Hero wordmark. Only used large: the lockup stacks the name UNDER the mark, so
 * at header size the word would be a few pixels tall and illegible. The header
 * keeps the mark beside live text, which stays crisp at any size and is
 * selectable.
 */
.hero-mark {
  display: block;
  width: 124px;
  height: auto;
  margin: 1rem auto 2rem;
}

/*
 * Landing page only. The mark, the headline and its lede are one hero block, so
 * they centre together — centring the headline while its own subtitle stays
 * ranged left reads as a mistake. Privacy and support keep everything left,
 * where long-form text belongs.
 */
.landing > h1,
.landing > .lede {
  text-align: center;
}
