/* Theostella website. Same look as the app: sky-blue welcome, Newsreader wordmark, wine accents. */
:root {
  --sky0: #5F89A5; --sky1: #7FA9C2; --sky2: #A6C4D5; --sky3: #D6E5EC;
  --wine: #6B0F1F; --navy: #13293A; --deep: #0B1A26; --soft: #25394A;
  --ink: #0B0D10; --paper: #F7F4EE; --line: rgba(19, 41, 58, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --brand: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--deep); font-family: var(--sans); line-height: 1.6; }
a { color: var(--navy); }
img, svg { display: block; }

/* ---------- home: hero ---------- */
.hero {
  min-height: 100svh; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky0) 0%, var(--sky1) 40%, var(--sky2) 70%, var(--sky3) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 20px 96px; text-align: center;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(234,242,246,0.9));
}
.hero > * { position: relative; z-index: 1; }
.star { width: 104px; height: 104px; margin-bottom: 18px; }
.wordmark { font-family: var(--brand); font-size: clamp(46px, 9vw, 72px); color: #fff; letter-spacing: -0.4px; line-height: 1; margin: 0; font-weight: 300; }
.wordmark b { font-weight: 500; }
.tagline { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 2.4px; color: var(--wine); margin: 18px 0 0; }
.headline { font-family: var(--serif); font-weight: 400; color: var(--wine); font-size: clamp(40px, 7vw, 64px); line-height: 1.05; margin: 64px 0 0; }
.headline em { font-style: italic; font-weight: 300; }
.lede { font-family: var(--brand); font-weight: 300; font-size: clamp(19px, 2.6vw, 23px); line-height: 1.5; color: var(--navy); max-width: 560px; margin: 20px auto 0; }
.soon { margin-top: 40px; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 15px 26px; font-weight: 500; font-size: 15px; letter-spacing: 0.2px; }
.soon small { color: #B4BCC6; font-size: 13px; font-weight: 400; }
.hero .contact { margin-top: 18px; font-size: 14px; color: var(--soft); }
.hero .contact a { color: var(--navy); }

/* ---------- home: sections ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
section.block { padding: 88px 0 8px; }
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: 2.2px; color: var(--wine); text-transform: uppercase; margin: 0 0 14px; }
h2.serif { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.5vw, 48px); line-height: 1.08; color: var(--deep); margin: 0 0 28px; }
h2.serif em { color: var(--wine); font-weight: 300; }
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--brand); font-weight: 300; font-size: 22px; color: var(--wine); line-height: 1.3; }
.steps h3 { font-family: var(--brand); font-weight: 500; font-size: 22px; margin: 0 0 6px; color: var(--deep); line-height: 1.3; }
.steps p { margin: 0; color: var(--soft); font-size: 16px; }
.meaning p { font-family: var(--brand); font-weight: 300; font-size: 21px; line-height: 1.6; color: var(--navy); margin: 0 0 18px; }
.meaning strong { font-weight: 500; color: var(--deep); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 6px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.fact b { display: block; font-family: var(--brand); font-weight: 500; font-size: 19px; margin-bottom: 6px; color: var(--deep); }
.fact span { color: var(--soft); font-size: 15px; }

/* ---------- inner pages ---------- */
.bar { background: linear-gradient(180deg, var(--sky0), var(--sky1)); }
.bar .in { max-width: 760px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.home-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.home-link svg { width: 34px; height: 34px; }
.home-link span { font-family: var(--brand); font-size: 26px; font-weight: 300; letter-spacing: -0.2px; }
.home-link span b { font-weight: 500; }
.page { padding-top: 48px; padding-bottom: 32px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 54px); line-height: 1.05; color: var(--wine); margin: 0 0 10px; }
.page .meta { color: var(--soft); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-family: var(--brand); font-weight: 500; font-size: 22px; color: var(--deep); margin: 40px 0 10px; line-height: 1.3; }
.doc p, .doc li { font-size: 16px; color: #1E3040; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 6px 0; }
.doc p { margin: 0 0 14px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; }
.toc p { margin: 0 0 6px; font-weight: 600; font-size: 13px; letter-spacing: 1.6px; color: var(--wine); text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 15px; }
.toc li { margin: 3px 0; break-inside: avoid; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-family: var(--brand); font-weight: 500; font-size: 19px; color: var(--deep); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 22px; color: var(--wine); font-weight: 300; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 18px; color: var(--soft); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 0 0 18px; }
.card h2 { margin-top: 0; }

/* ---------- footer ---------- */
footer { margin-top: 88px; border-top: 1px solid var(--line); }
footer .in { max-width: 760px; margin: 0 auto; padding: 28px 20px 44px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--navy); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .toc ol { columns: 1; }
  .steps li { grid-template-columns: 40px 1fr; }
  .headline { margin-top: 48px; }
}
