/* Palimpsest website. The app's own colours and fonts: warm paper by day, the app's dark ember look at night,
   following each visitor's own setting. */
:root {
  --bg: #f7f0e5; --raise: #fffaf3; --sunk: #efe3d2; --line: #dfcdb6; --line-strong: #c8ae8f;
  --text: #2a1d14; --muted: #6b5847; --faint: #8d7765;
  --ember: #c4561f; --ember-bright: #d9642a; --chord: #b04c16; --on-ember: #fffaf3;
  --glow: rgba(196, 86, 31, 0.10); --shadow: 0 1px 2px rgba(60, 38, 20, 0.08), 0 12px 32px rgba(60, 38, 20, 0.10);
  --fill: #ffe58a; --fill-text: #2a1d14;
  --serif: "Iowan Old Style", "Charter", "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Avenir", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110e; --raise: #211813; --sunk: #120d0b; --line: #3a2a20; --line-strong: #4d382a;
    --text: #f4e7d0; --muted: #b7a286; --faint: #8f7a64;
    --ember: #e8743b; --ember-bright: #ff9b4f; --chord: #ffad5f; --on-ember: #1a110c;
    --glow: rgba(232, 116, 59, 0.14); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
    --fill: #6b5418; --fill-text: #fff3cf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110e; --raise: #211813; --sunk: #120d0b; --line: #3a2a20; --line-strong: #4d382a;
  --text: #f4e7d0; --muted: #b7a286; --faint: #8f7a64;
  --ember: #e8743b; --ember-bright: #ff9b4f; --chord: #ffad5f; --on-ember: #1a110c;
  --glow: rgba(232, 116, 59, 0.14); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
  --fill: #6b5418; --fill-text: #fff3cf;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-bright); }
:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 0.2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sans { font-family: var(--sans); }
mark.fill { background: var(--fill); color: var(--fill-text); padding: 0 0.2em; border-radius: 3px; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--raise); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* top bar */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text); text-decoration: none; font-size: 1.45rem; }
.brand svg { width: 1.6rem; height: 1.6rem; color: var(--ember); }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; font-family: var(--sans); font-size: 0.98rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ember); }
.nav .lang { color: var(--faint); }

/* sections */
main { padding-block: 1rem 4rem; }
section { padding-block: 3.2rem; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin: 0 0 0.6rem; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.narrow { max-width: 44rem; }
.center { text-align: center; margin-inline: auto; }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.9rem; padding: 0.6rem 1.3rem;
  font: 600 1rem var(--sans); border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ember); color: var(--ember); background: transparent; cursor: pointer; }
.btn:hover { color: var(--ember-bright); border-color: var(--ember-bright); }
.btn.primary { background: var(--ember); color: var(--on-ember); }
.btn.primary:hover { background: var(--ember-bright); color: var(--on-ember); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.btn.small { min-height: 2.3rem; padding: 0.35rem 0.95rem; font-size: 0.92rem; }

/* hero */
.hero { display: grid; gap: 2.4rem; align-items: center; padding-block: 3rem 3.4rem; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 1.15fr; } }
.hero h1 { margin-bottom: 1rem; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--raise); }
.shot img { width: 100%; }
figcaption { font-family: var(--sans); font-size: 0.86rem; color: var(--faint); margin-top: 0.6rem; }

/* cards */
.grid { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) and (max-width: 1099px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--raise); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.4rem 1.2rem; min-width: 0; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1rem; margin: 0.6rem 0 1rem; font-size: 0.96rem; }
.card li { margin-bottom: 0.35rem; }
.card li::marker { color: var(--ember); }
.card.mark { border-color: var(--ember); box-shadow: 0 0 0 3px var(--glow); }
.plan-price { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin: 0 0 0.6rem; }
.plan-price b { font-size: 1.6rem; color: var(--text); font-weight: 600; }
.icon { width: 2rem; height: 2rem; color: var(--ember); margin-bottom: 0.7rem; }

/* prices page */
.ways { display: grid; gap: 0.5rem; margin-top: 1rem; }
.way { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 0.55rem; font-family: var(--sans); font-size: 0.95rem; }
.way b { font-size: 1.15rem; }
.way .sub { display: block; color: var(--faint); font-size: 0.8rem; }
.note { border-left: 3px solid var(--ember); padding: 0.2rem 0 0.2rem 1rem; margin: 1.4rem 0; }
.offers { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin: 1.4rem 0 0; }
@media (min-width: 720px) { .offers { grid-template-columns: repeat(2, 1fr); } }
.offers li { background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.offers b { display: block; font-family: var(--sans); font-size: 1rem; margin-bottom: 0.2rem; }

/* downloads */
.dl-steps { font-size: 0.95rem; padding-left: 1.2rem; margin: 0.8rem 0 0; }
.dl-steps li { margin-bottom: 0.3rem; }
.need { font-family: var(--sans); font-size: 0.86rem; color: var(--faint); margin: 0 0 0.9rem; }

/* questions */
.faq { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.faq details { background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq details p:last-child { margin-bottom: 0; }

/* the launch list */
.list { background: var(--raise); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.4rem; text-align: center; }
.list form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.2rem; }
.list input[type="email"] { flex: 1 1 16rem; max-width: 22rem; min-height: 2.9rem; padding: 0.5rem 1rem; font: 1rem var(--sans);
  color: var(--text); background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 999px; }
.list input[type="email"]:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--glow); }

/* long text: privacy, terms, help */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; }
.prose h3 { font-size: 1.12rem; margin: 1.4rem 0 0.4rem; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.draft { font-family: var(--sans); font-size: 0.9rem; background: var(--sunk); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 0.8rem 1rem; margin: 1rem 0 1.6rem; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 2rem 2.6rem; font-family: var(--sans); font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; }
.foot-brand { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) { .btn, .nav a { transition: color 0.15s, background 0.15s, border-color 0.15s; } }
