/* Muselle: warm paper, near-black ink, a light brown accent and Newsreader titles, like a museum
   wall label. Light by default, dark through prefers-color-scheme. */
:root {
  color-scheme: light dark;
  --bg: #f4f2ee;
  --band: #ece9e3;
  --surface: #fbfaf7;
  --text: #1a1816;
  --muted: #625c55;
  --edge: rgba(26, 24, 22, 0.12);
  --edge-strong: rgba(26, 24, 22, 0.22);
  --accent: #a87a5a;
  --accent-ink: #87603f; /* the accent darkened for small text, to keep contrast on paper */
  --on-accent: #ffffff;
  --shadow: 0 30px 60px -32px rgba(60, 40, 20, 0.45), 0 0 0 1px rgba(26, 24, 22, 0.08);
  --radius: 18px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --band: #1b1815;
    --surface: #221e1a;
    --text: #f2eee8;
    --muted: #a8a097;
    --edge: rgba(242, 238, 232, 0.12);
    --edge-strong: rgba(242, 238, 232, 0.22);
    --accent: #dab294;
    --accent-ink: #dab294;
    --on-accent: #1a1816;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(242, 238, 232, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }

.wrap { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 768px; }
.center { text-align: center; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--edge);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 22px/1 var(--serif); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 380px) { .site-nav { gap: 14px; font-size: 14px; } }

/* Shared type */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.text-link svg { transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(3px); }

.store-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--edge-strong); color: var(--muted);
  font-size: 15px; font-weight: 500; cursor: default;
}
.store-soon svg { width: 18px; height: 18px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500;
}
.button:hover { color: var(--on-accent); filter: brightness(1.05); }

/* Screens */
.screen {
  margin: 0; border-radius: 28px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  max-width: 340px;
}
.screen img { width: 100%; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; margin-bottom: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hero__art { display: flex; justify-content: center; }
.hero__art .screen { width: 100%; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__art .screen { max-width: min(78vw, 320px); }
}

/* Sections */
.section { padding: 96px 0; }
.section--band { background: var(--band); }
.section--quiet { border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.section__head { margin-bottom: 40px; }
.section__title { font-size: clamp(32px, 4.6vw, 48px); }
.section__lede { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 38em; }
.center .section__lede { margin-left: auto; margin-right: auto; }
.section__cta { margin-top: 24px; }
.subhead { font-size: 26px; margin: 80px 0 24px; }
@media (max-width: 640px) { .section { padding: 64px 0; } .subhead { margin-top: 56px; } }

/* What Muselle is */
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
.intro__text p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 36em; }
.intro__text .section__head { margin-bottom: 8px; }
@media (max-width: 820px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Museum-label style blocks: a hairline above, a serif title, a short line of text */
.labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.labels--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.label { border-top: 1px solid var(--edge-strong); padding-top: 14px; }
.label h3, .label h4 { font-size: 21px; margin-bottom: 6px; }
.label p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .labels--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .labels--4 { grid-template-columns: minmax(0, 1fr); } }

/* Features: screen and text, alternating sides */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--edge); }
.feature--flip .feature__copy { order: 2; }
.feature__index { font: 500 15px/1 var(--serif); color: var(--accent-ink); margin-bottom: 14px; font-variant-numeric: oldstyle-nums; }
.feature h3 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.feature__copy p:last-child { color: var(--muted); font-size: 18px; max-width: 30em; }
.feature__art { display: flex; justify-content: center; }
.feature__art .screen { width: 100%; max-width: 320px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature--flip .feature__copy { order: 0; }
  .feature__art .screen { max-width: min(78vw, 300px); }
}

/* Sources */
.sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.sources a {
  display: block; height: 100%; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--edge); color: var(--text); text-decoration: none;
}
.sources a:hover { border-color: var(--accent); }
.sources__name { display: block; font: 500 20px/1.2 var(--serif); margin-bottom: 6px; }
.sources__body { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .sources { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.tiers { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); padding: 28px; }
.tier--pro { border-color: var(--accent); }
.tier h3 { font-size: 28px; margin-bottom: 8px; }
.tier__price { font: 500 22px/1.3 var(--serif); margin-bottom: 18px; }
.tier__price span { font: 15px var(--font); color: var(--muted); }
.tier--pro .plans { margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .tier { padding: 22px 18px; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.checklist svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.checklist--large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-bottom: 36px; }
.checklist--large li { font-size: 18px; }
@media (max-width: 640px) { .checklist--large { grid-template-columns: minmax(0, 1fr); } }

.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--edge); border-radius: 14px; padding: 16px 18px; background: var(--bg); }
.section--band > .wrap > .plans .plan { background: var(--surface); }
.plan--featured { border-color: var(--accent); }
.plan__name { font: 600 15px/1.3 var(--font); letter-spacing: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan__badge { font-size: 12px; font-weight: 600; color: var(--on-accent); background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.plan__price { font: 500 30px/1.2 var(--serif); margin-top: 6px; }
.plan__price span { font: 15px var(--font); color: var(--muted); }
.plan__caption { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Pro page */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 8px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: middle; }
.compare thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 400; }
.compare td { width: 24%; }
.mark svg { width: 22px; height: 22px; color: var(--accent); }
.mark--off svg { color: var(--muted); }
@media (max-width: 480px) { .compare { font-size: 14.5px; } .compare td { width: 27%; } .compare th, .compare td { padding: 12px 4px; } }

.terms-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--muted); }
.terms-list li::marker { color: var(--accent); }
.legal { margin-top: 28px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--edge); }
.faq details:first-child { border-top: 1px solid var(--edge); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font: 500 20px/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 24px/1 var(--font); color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 40em; }

/* Final call to action */
.final { padding: 96px 0 112px; text-align: center; border-top: 1px solid var(--edge); }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 8px; }
.final h2 { font-size: clamp(36px, 5vw, 52px); }
.final p { color: var(--muted); font-size: 18px; margin-bottom: 8px; }

/* Documents */
.doc { padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 10px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 28px; margin: 44px 0 12px; }
.doc h3 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--accent); }
.doc a { overflow-wrap: anywhere; }

/* 404 */
.not-found { padding: 96px 24px 128px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.not-found img { border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 12px; }
.not-found .eyebrow { margin: 0; }
.not-found h1 { font-size: clamp(40px, 6vw, 56px); }
.not-found p { color: var(--muted); margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--band); border-top: 1px solid var(--edge); padding: 56px 0 40px; font-size: 15px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, max-content); gap: 24px 80px; }
.site-footer h2 { font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer__cols a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; }
.site-footer__cols a:hover { color: var(--accent-ink); }
.site-footer__credit { color: var(--muted); margin-top: 40px; max-width: 46em; font-size: 14px; }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--edge); color: var(--muted); font-size: 13px; }
@media (max-width: 480px) { .site-footer__cols { gap: 24px 48px; } }
