/* Migraine Diary's own site: the app's coastal palette, serif headings with italic accents, nothing shared with other apps. */
:root {
  --bg: #F5F1E8;
  --card: #FFFCF6;
  --ink: #173C43;
  --muted: #4A5F64;
  --line: #DED9CC;
  --ocean: #146976;
  --on-ocean: #FFFFFF;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #142D33; --card: #1D3A41; --ink: #E4ECE8; --muted: #AFC0BE; --line: #2F4F57; --ocean: #91D4D1; --on-ocean: #142D33;
  }
}
:root[data-theme="dark"] {
  --bg: #142D33; --card: #1D3A41; --ink: #E4ECE8; --muted: #AFC0BE; --line: #2F4F57; --ocean: #91D4D1; --on-ocean: #142D33;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--ocean); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
em { font-style: italic; color: var(--ocean); }

/* Header: the app's own name, never a studio nav. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 16px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Home hero, with the coastal painting running under it edge to edge. */
.hero { text-align: center; padding-block: 40px 8px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.hero .lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 18px auto 24px; }
.badge { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.95rem; color: var(--muted); }
.coast { height: clamp(140px, 24vw, 260px); margin-top: 40px; background: url(/images/coast.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }

/* Features: a matted screenshot beside a few calm lines. */
.feature { display: grid; gap: 24px 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 0; }
@media (min-width: 760px) { .feature { grid-template-columns: 1fr 1fr; } .feature.flip .shot { order: 2; } }
.shot { display: flex; justify-content: center; }
.shot img { width: 100%; max-width: 280px; border-radius: 28px; border: 10px solid #FFFFFF; box-shadow: 0 18px 50px rgba(23, 60, 67, 0.16); background: #FFFFFF; }
.feature h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 14px; }
.feature p { margin: 0 0 12px; color: var(--muted); max-width: 32em; }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.feature li { margin-bottom: 6px; }

.private { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px 22px; margin: 24px 0 56px; }
@media (min-width: 720px) { .private { padding: 40px 44px; } }
.private h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 20px; }
.points { display: grid; gap: 18px; margin: 0 0 18px; padding: 0; list-style: none; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: 0.95rem; }

.note { font-size: 0.92rem; color: var(--muted); }

/* Text pages: privacy and support. */
.page { max-width: calc(44em + 64px); padding-block: 32px 56px; }
.page h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); margin-bottom: 8px; }
.page .meta { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; }
@media (max-width: 560px) {
  .table, .table tbody, .table tr, .table td, .table th { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table td, .table th { border: 0; padding: 2px 0; }
}
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 8px 0 32px; }
.contact p { margin: 0 0 8px; }
.button { display: inline-block; background: var(--ocean); color: var(--on-ocean); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding-block: 24px 40px; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 18px; }

.lost { text-align: center; padding-block: 72px 32px; }
.lost h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin-bottom: 14px; }
.lost p { color: var(--muted); }
.lost img { width: 200px; border-radius: 16px; margin: 24px auto 0; display: block; }
