/* Steady Stoic · steadystoic.com. Self-contained, no external requests. */
/* Palette: "Ink & Champagne" — matches the app's dark theme + App Store shots. */
:root {
  --bg: #10142a;
  --bg-top: #171c38;
  --bg-bottom: #0a0c18;
  --surface: #191e3a;
  --surface-2: #1d2344;
  --border: #2b3358;
  --accent: #d9b46b;          /* champagne / bronze */
  --accent-deep: #c39a4b;
  --accent-soft: rgba(217, 180, 107, 0.10);
  --accent-line: rgba(217, 180, 107, 0.28);
  --text: #f0ead9;            /* warm cream */
  --text-secondary: #a7adc9;  /* muted lavender-grey */
  --ink: #14110a;            /* dark text on champagne */
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 42%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site {
  padding: 28px 0 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.5);
}
.brand .name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.2px; }

/* Hero */
.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 24px 0 36px;
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0 48px; align-items: stretch; }
  .hero-device { align-self: stretch; }
  .hero-art { height: 100%; max-width: none; object-fit: cover; object-position: center; }
}
.hero-copy { text-align: center; }
@media (min-width: 820px) { .hero-copy { text-align: left; } }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 16px;
}
.hero-sub {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 auto 26px;
  max-width: 46ch;
}
@media (min-width: 820px) { .hero-sub { margin-left: 0; margin-right: 0; } }
.hero-device { display: flex; justify-content: center; }
.hero-art {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 40px 84px -34px rgba(0, 0, 0, 0.85);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* App Store button */
.cta-row { margin: 0 0 22px; }
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 11px 22px 11px 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 26px -12px rgba(217, 180, 107, 0.55);
}
.appstore-btn:hover { transform: translateY(-1px); background: #e6c884; box-shadow: 0 14px 30px -12px rgba(217, 180, 107, 0.65); }
.appstore-btn svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.appstore-btn span { display: flex; flex-direction: column; line-height: 1.14; text-align: left; }
.appstore-btn span small {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.75;
}
.appstore-btn span { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; }

/* Privacy chips */
.privacy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
@media (min-width: 820px) { .privacy-chips { justify-content: flex-start; } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 13px;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Showcase gallery — App Store style strip */
.showcase { padding: 40px 0 8px; text-align: center; }
.showcase h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.6vw, 34px);
  margin: 0 0 12px;
  line-height: 1.15;
}
.showcase-lead {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 auto 30px;
  max-width: 52ch;
}
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.gallery figure {
  flex: 0 0 auto;
  width: 270px;
  max-width: 80vw;
  margin: 0;
  scroll-snap-align: center;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.75);
}
.gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

/* What's inside */
.inside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  margin-top: 56px;
  text-align: center;
}
.inside h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 18px;
}
.authors {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.authors li {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  padding: 6px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.inside-note { color: var(--text-secondary); font-size: 15px; margin: 0 auto; max-width: 52ch; }

/* Closing line */
.closing {
  text-align: center;
  color: var(--text-secondary);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 48px 0 8px;
}

/* Content pages */
main.page { padding: 24px 0 64px; }
main.page h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 40px);
  margin: 24px 0 6px;
}
main.page h2 {
  font-size: 20px;
  margin: 36px 0 10px;
}
main.page p, main.page li { color: var(--text); }
main.page .muted { color: var(--text-secondary); }
main.page a { color: var(--accent); }
.updated { color: var(--text-secondary); font-size: 15px; margin-top: 0; }
.lead { font-size: 19px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 24px;
  margin-top: 12px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  margin-top: 8px;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 0 48px;
  color: var(--text-secondary);
  font-size: 15px;
  text-align: center;
}
footer.site a { color: var(--text-secondary); text-decoration: none; margin: 0 10px; }
footer.site a:hover { color: var(--accent); }
footer.site .copy { margin-top: 12px; opacity: 0.8; }
