/* VisibleHour — shared styling for sthreelabs.com/visiblehour pages
   Sensory & Focus chapter (departs from paperback collection — same family as Ninety.)
   - Warm grey palette (NOT paperback cream, NOT bright white)
   - System sans typography (NOT paperback Crimson Pro)
   - Warm amber accent — VisibleHour's per-app accent, restrained use only
   - sthreelabs wordmark in footer keeps Crimson Pro + brand orange
     (mirrors the in-app footer; the studio mark is paperback even when the
     surrounding chapter aesthetic departs)
*/

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;500&display=swap');

:root {
  --canvas:        #DDDBD6;   /* warm muted grey, slightly tan-leaning */
  --canvas-soft:   #E5E2DD;
  --ink:           #26241F;   /* warm dark grey, never pure black */
  --ink-muted:     rgba(38, 36, 31, 0.55);
  --rule:          rgba(38, 36, 31, 0.18);
  --accent:        #C8843C;   /* VisibleHour's session amber — restrained use only */
  --studio-orange: #C56F2E;   /* sthreelabs wordmark color, matches the website + in-app footer */
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas:        #1B1B19;
    --canvas-soft:   #23231F;
    --ink:           #DDDBD6;
    --ink-muted:     rgba(221, 219, 214, 0.55);
    --rule:          rgba(221, 219, 214, 0.16);
    --accent:        #E89548;   /* lifted amber for dark-mode legibility */
    --studio-orange: #E89556;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 56px 28px 80px; }
.wrap.wide { max-width: 980px; }

/* Header */
header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px; margin-bottom: 36px;
}
header.site .brand {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500; font-size: 19px;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
}
header.site nav { display: flex; gap: 18px; }
header.site nav a {
  font-size: 14px; color: var(--ink-muted);
  text-decoration: none; letter-spacing: 0.01em;
}
header.site nav a:hover { color: var(--accent); }

/* Breadcrumb */
.breadcrumb {
  font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em;
  text-transform: uppercase; margin: 0 0 32px;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Headings */
h1 {
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 52px);
  letter-spacing: -0.015em; line-height: 1.1;
  margin: 24px 0 12px;
}
h1 .smallcaps {
  display: block;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 500;
}
h2 {
  font-weight: 500;
  font-size: 22px; margin: 40px 0 8px;
  letter-spacing: -0.005em;
}
h2 .chap {
  font-weight: 500; font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); margin-right: 10px; vertical-align: 0.18em;
  text-transform: uppercase;
}
h3 {
  font-weight: 500; font-size: 16px;
  margin: 24px 0 6px;
  letter-spacing: 0.01em;
}

/* Body copy */
p, li { font-size: 17px; line-height: 1.6; }
p { margin: 0 0 14px; }

ul { padding-left: 22px; margin: 8px 0 14px; }
li { margin-bottom: 4px; }
li::marker { color: var(--ink-muted); }

p.lead {
  font-size: 19px; line-height: 1.5; color: var(--ink);
  margin-bottom: 20px;
}
p.muted { color: var(--ink-muted); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

em { font-style: italic; }
strong { font-weight: 500; color: var(--ink); }

/* Ornament — chapter prefers a single thin rule, not the paperback "· · ·" */
.ornament {
  border-top: 1px solid var(--rule);
  margin: 40px auto;
  width: 100%;
}

/* App Store badge */
.app-store-badge { display: inline-block; line-height: 0; }
.app-store-badge img { height: 48px; width: auto; }

/* Press kit specific */
.fact-grid {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 8px 24px;
  margin: 18px 0;
  font-size: 15px;
}
.fact-grid dt { color: var(--ink-muted); font-weight: 500; }
.fact-grid dd { margin: 0; color: var(--ink); }

.asset-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin: 16px 0 24px;
}
.asset-list a {
  display: block; text-decoration: none;
  border: 1px solid var(--rule); padding: 12px;
  background: var(--canvas-soft); color: var(--ink);
  font-size: 13px; line-height: 1.4;
  transition: border-color 0.15s ease;
}
.asset-list a:hover { border-color: var(--accent); color: var(--ink); }
.asset-list .filename {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--ink-muted); margin-top: 4px;
}

blockquote {
  margin: 0 0 14px; padding: 8px 0 8px 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink); font-style: normal;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px; background: var(--canvas-soft);
  padding: 2px 6px; border-radius: 3px; color: var(--ink);
}

/* Footer */
footer.site {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--rule);
  margin-top: 56px; padding-top: 18px;
  font-size: 13px; color: var(--ink-muted);
  flex-wrap: wrap; gap: 12px;
}
footer.site a { color: var(--ink-muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* The "sthreelabs" wordmark in the footer stays in the studio register
   (Crimson Pro Light + brand orange) even though the surrounding chapter
   aesthetic is sans + warm grey. The studio mark is paperback. */
.brandmark {
  font-family: 'Crimson Pro', Georgia, serif !important;
  font-weight: 300;
  font-size: 15px;
  color: var(--studio-orange) !important;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brandmark:hover { color: var(--studio-orange) !important; opacity: 0.8; }

@media (max-width: 480px) {
  .wrap { padding: 36px 20px 60px; }
  header.site { flex-direction: column; gap: 10px; align-items: flex-start; }
  header.site nav { gap: 14px; }
  .fact-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .fact-grid dt { margin-top: 8px; }
}
