/* 5394 Studios — single-page studio site.
   Shares the Camp Roostly navy (#1E3A52) + cream (#FFF8EC) palette and adds
   the new logo's gold (#C2A14D) as the accent so the page reads as one brand.
   The chickadee mark belongs to the product; the studio uses the 5394 emblem. */
* { box-sizing: border-box; }
:root {
  --brand: #1E3A52;
  --brand-light: #FFF8EC;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --bg: #fafafa;
  --card: #ffffff;
  --card-text: #333333;
  --accent: #2f6f4f;            /* muted green — the "live" badge */
  --gold: #C2A14D;              /* logo gold — primary accent */
  --gold-soft: rgba(194, 161, 77, 0.14);
  --gold-border: rgba(194, 161, 77, 0.45);
  --shadow: 0 8px 24px rgba(30, 58, 82, 0.10);
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── Header / wordmark */
header {
  padding: 16px 20px;
  background: var(--brand-light);
  border-bottom: 1px solid var(--border);
}
header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-emblem {
  width: 38px;
  height: 38px;
  flex: none;
  background: #fff;
  border-radius: 9px;
  padding: 3px;
  border: 1px solid rgba(30, 58, 82, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand-mark {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.brand-word {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ── Layout */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Hero */
.hero {
  padding: 48px 0 28px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--brand);
}
.hero-rule {
  width: 72px;
  height: 3px;
  margin: 0 0 22px;
  border: 0;
  border-radius: 3px;
  background: var(--gold);
}
.lede {
  font-size: 18px;
  color: var(--card-text);
  max-width: 60ch;
}

/* ── Section headings */
.products h2,
.writing h2,
.contact h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 40px 0 16px;
}
.products h2::before,
.writing h2::before,
.contact h2::before {
  content: "";
  flex: none;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

/* ── Cards (shared) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow);
}
.product-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.product-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--brand);
}
.product-logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
/* Push the status badge to the far edge of the card head (product cards only,
   so the newsletter/book heads keep their tighter layout). */
.products .product-head .badge { margin-left: auto; }
.product p {
  margin: 0 0 14px;
  color: var(--card-text);
}
.product-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.product-link:hover { text-decoration: underline; }

/* ── Badges */
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-live {
  background: rgba(47, 111, 79, 0.12);
  color: var(--accent);
  border: 1px solid rgba(47, 111, 79, 0.35);
}
.badge-soon {
  background: rgba(30, 58, 82, 0.08);
  color: var(--brand);
  border: 1px solid rgba(30, 58, 82, 0.25);
}
.badge-news {
  background: rgba(255, 103, 25, 0.12);
  color: #cf5310;
  border: 1px solid rgba(255, 103, 25, 0.35);
}

/* ── Writing: newsletter feature + books */
.byline {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.newsletter {
  display: grid;
  grid-template-columns: 230px 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.newsletter:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow);
}
.newsletter-img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}
.newsletter-body {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.newsletter-body p {
  margin: 0 0 12px;
  color: var(--card-text);
}
.newsletter-link,
.book-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
}
.newsletter:hover .newsletter-link,
.book:hover .book-link { text-decoration: underline; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.book {
  display: flex;
  gap: 16px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.book:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow);
}
.book-cover {
  width: 92px;
  height: auto;
  align-self: flex-start;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.book-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.book-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 3px;
}
.book-sub {
  font-size: 14px;
  color: var(--card-text);
  margin: 0 0 8px;
}

/* ── Contact */
.contact { padding: 8px 0 32px; }
.contact a { color: var(--brand); }

/* ── Footer */
footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.footer-social {
  margin: 0 0 10px;
}
.footer-social a {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.footer-social a:hover { text-decoration: underline; }

/* ── Responsive */
@media (max-width: 560px) {
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) {
  .hero { padding: 36px 0 20px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 16px; }
}

/* ── Dark mode — respects system preference, mirrors the app's
   navy/cream inversion. Gold brightens so it reads on the dark surface. */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #9aa5b1;
    --border: #2a3340;
    --bg: #12181f;
    --brand: #cfe0f0;
    --brand-light: #1a2430;
    --card: #1a2430;
    --card-text: #d4dae1;
    --gold: #d9bd6e;
    --gold-soft: rgba(217, 189, 110, 0.16);
    --gold-border: rgba(217, 189, 110, 0.5);
  }
  .badge-news { color: #ff8a4d; }
}
