/* Oodal website: apricot and plum, matching Shared/BrandPalette.swift. */
:root {
  --apricot: #E07F4F;
  --apricot-soft: #F2A878;
  --plum: #6B2E5C;
  --rose: #D2385A;
  --sage: #5E8C6A;
  --marigold: #D9A21B;
  --cream: #FFF7EF;

  --bg: #FFF7EF;
  --surface: #FFFFFF;
  --text: #2B1A26;
  --muted: #6E5D68;
  --line: #EADCD0;
  --link: #6B2E5C;
  color-scheme: light;
}

/* Dark colors. theme.js sets data-theme from the device setting or the visitor's choice. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17111A;
  --surface: #221A25;
  --text: #F5ECE6;
  --muted: #B3A3AE;
  --line: #3A2E3D;
  --link: #F2A878;
  --plum: #B5679C;
  --sage: #8FBF9A;
  --marigold: #F2C14E;
  --rose: #F2677F;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero img { width: 128px; height: 128px; filter: drop-shadow(0 12px 24px rgba(107, 46, 92, .18)); }
.hero h1 {
  font-size: clamp(40px, 8vw, 60px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 28px 0 12px;
}
.hero p { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 30em; }
.badge {
  display: inline-block; margin-top: 28px; padding: 12px 22px; border-radius: 999px;
  background: var(--plum); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
}
[data-theme="dark"] .badge { color: #17111A; }

/* Feature grid */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px; padding: 24px 0 64px;
}
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

/* Long-form pages */
.page { padding: 56px 0 72px; }
.page h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 36px; font-size: 15px; }
.page h2 { font-size: 22px; margin: 40px 0 8px; }
.page h3 { font-size: 18px; margin: 24px 0 4px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.summary {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--apricot);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 8px;
}
.summary p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { font-size: 14px; }
.tmdb { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-basis: 100%; }
.tmdb img { height: 14px; width: auto; }

/* App icon: the light or dark rendering, matching the theme. */
.icon-dark { display: none; }
[data-theme="dark"] .icon-light { display: none; }
[data-theme="dark"] .icon-dark { display: inline; }

/* Appearance switch in the footer. */
.theme-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.theme-switch button {
  font: inherit; font-size: 13px; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--plum); color: #fff; }
[data-theme="dark"] .theme-switch button[aria-pressed="true"] { color: #17111A; }
.theme-switch button:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
