/* therealflow.tv — SuitesFlow brand system: ink, parchment, gold; Cormorant Garamond + Jost */
:root {
  --ink: #1A1916;
  --ink-2: #3A3732;
  --muted: #6B665E;
  --paper: #FFFFFF;
  --cream: #F6F5F4;
  --parchment: #EDE5D8;
  --gold: #D4A85A;
  --gold-text: #8A6528; /* gold dark enough for text on white */
  --line: #E4DDD1;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { font: 500 1.7rem/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.wordmark b { font-weight: 600; font-style: italic; color: var(--gold-text); }
.site-head nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-head nav a { text-decoration: none; font-weight: 400; font-size: 0.98rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { border-bottom-color: var(--gold); }
@media (max-width: 640px) {
  .site-head__in { height: auto; padding-top: 14px; padding-bottom: 10px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-head nav ul { gap: 20px; }
}

/* Buttons: sf-btn — gold fill on hover, arrow turns, ripple on click */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sf-btn { --h: 48px; position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 22px; border-radius: 999px; font: 400 0.98rem/1 var(--sans); text-decoration: none; transition: color .3s, border-color .3s; }
.sf-btn svg { width: 18px; height: 18px; flex: none; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.sf-btn::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1); z-index: -1; }
.sf-btn:hover::before, .sf-btn:focus-visible::before { transform: scaleX(1); }
.sf-btn:hover .i-arrow, .sf-btn:focus-visible .i-arrow { transform: rotate(360deg); }
.sf-btn--solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.sf-btn--solid:hover { color: var(--ink); border-color: var(--gold); }
.sf-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.sf-btn--ghost:hover { border-color: var(--gold); }
.sf-btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.text-link { display: inline-block; font-weight: 400; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--gold-text); }

/* Type helpers */
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 56ch; }
.h-section { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 24px; }
.h-small { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin: 0 0 12px; }
.h-display { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; max-width: 16ch; }
.meta { display: flex; gap: 16px; color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.meta span:empty { display: none; }
.quiet { color: var(--muted); font-size: 0.98rem; }
.empty { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: .98; letter-spacing: -0.02em; max-width: 11ch; margin-bottom: 28px; }
.host { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; text-decoration: none; color: var(--ink-2); max-width: 46ch; font-size: 0.98rem; line-height: 1.45; }
.host img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--parchment); }
.host b { font-weight: 500; color: var(--ink); }
.phone { margin: 0; justify-self: center; width: min(320px, 100%); }
.phone__screen { border: 10px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink); box-shadow: 18px 18px 0 var(--parchment); }
.phone figcaption { margin-top: 26px; font-size: 0.9rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero__in { grid-template-columns: 1fr; gap: 48px; }
}

/* Video cards (vertical Shorts) */
.vcard { display: block; text-decoration: none; color: var(--ink); }
.vcard__media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--parchment); border-radius: var(--radius); }
.vcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; transition: background .3s, transform .3s; }
.vcard__play svg { width: 24px; height: 24px; margin-left: 3px; }
.vcard:hover .vcard__play, .vcard:focus-visible .vcard__play { background: var(--gold); transform: scale(1.06); }
.vcard__title { display: block; margin-top: 12px; font-weight: 400; line-height: 1.35; font-size: 0.98rem; }
.vcard__date { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.vcard--large { color: var(--paper); }
.vcard--large .vcard__media { border-radius: 0; }
.vcard--large .vcard__title, .vcard--large .vcard__date { display: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 36px 22px; }

/* Bands */
.band { padding: 80px 0; }
.band--tight { padding: 40px 0 88px; }
.band--parchment { background: var(--parchment); }
.band--tracker { background: var(--cream); }
.band--follow { padding: 64px 0 88px; border-top: 1px solid var(--line); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.row-head .h-section { margin-bottom: 28px; }

/* Episodes */
.episode-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
.ep-hero { display: grid; grid-template-columns: 168px 1fr; gap: 28px; align-items: start; }
.ep-hero__art { width: 168px; height: 168px; object-fit: cover; border-radius: var(--radius); }
.ep-hero__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 12px; }
.ep-hero__title a { text-decoration: none; }
.ep-hero__title a:hover { color: var(--gold-text); }
.ep-hero__ex { color: var(--ink-2); }
.audio { width: 100%; max-width: 520px; margin-top: 8px; height: 44px; }
.eplist { list-style: none; margin: 0; padding: 0; }
.eprow a { display: grid; grid-template-columns: 76px 1fr auto; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.eprow__date { color: var(--muted); font-size: 0.88rem; padding-top: 6px; grid-row: span 2; }
.eprow__title { font: 500 1.45rem/1.2 var(--serif); }
.eprow__dur { color: var(--muted); font-size: 0.88rem; padding-top: 6px; grid-row: 1; grid-column: 3; }
.eprow__ex { color: var(--ink-2); font-size: 0.96rem; grid-column: 2 / span 2; }
.eprow a:hover .eprow__title { color: var(--gold-text); }
.eplist--tight .eprow a { grid-template-columns: 1fr auto; padding: 14px 0; }
.eplist--tight .eprow__date { grid-row: auto; grid-column: 2; padding: 0; order: 2; }
.eplist--tight .eprow__title { font-size: 1.15rem; }
.eplist--tight .eprow__ex, .eplist--tight .eprow__dur { display: none; }
.episode-feature__side .text-link { margin-top: 16px; }
@media (max-width: 860px) {
  .episode-feature { grid-template-columns: 1fr; gap: 48px; }
  .ep-hero { grid-template-columns: 1fr; }
  .ep-hero__art { width: 120px; height: 120px; }
  .eprow a { grid-template-columns: 1fr auto; }
  .eprow__date { grid-row: auto; padding: 0; }
  .eprow__title { grid-column: 1 / -1; }
  .eprow__ex { grid-column: 1 / -1; }
  .eprow__dur { grid-row: 1; grid-column: 2; padding: 0; }
}

/* Tracker teaser */
.tracker-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.tracker-teaser .actions { margin-top: 8px; }
.market-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.market-list li { border: 1px solid var(--line); background: var(--paper); padding: 8px 16px; border-radius: 999px; font-size: 0.95rem; }
@media (max-width: 860px) { .tracker-teaser { grid-template-columns: 1fr; gap: 36px; } }

/* About strip */
.about-strip { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; max-width: 920px; }
.about-strip img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--parchment); }
.about-strip p { max-width: 62ch; }
@media (max-width: 700px) { .about-strip { grid-template-columns: 1fr; gap: 28px; } .about-strip img { width: 140px; height: 140px; } }

/* Channel links */
.channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.channels a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 400; transition: border-color .3s; }
.channels a:hover { border-color: var(--gold); }
.channels svg { width: 22px; height: 22px; flex: none; }
.channels--compact { display: flex; flex-wrap: wrap; gap: 6px; }
.channels--compact a { border: 0; padding: 8px; }
.channels--compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Page heads */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 18px; max-width: 18ch; }
.podcast-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.podcast-head img { width: 200px; height: 200px; border-radius: var(--radius); object-fit: cover; }
@media (max-width: 700px) { .podcast-head { grid-template-columns: 1fr; } .podcast-head img { width: 140px; height: 140px; } }

/* Episode page */
.episode { padding: 56px 0 88px; }
.episode__head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 18px 0 14px; }
.episode__head .audio { margin-top: 16px; max-width: none; }
.episode__head .actions { margin-top: 16px; }
.back { font-size: 0.92rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.back:hover { color: var(--ink); border-color: var(--gold); }
.prose { margin-top: 40px; font-family: var(--serif); font-size: 1.32rem; line-height: 1.7; font-weight: 500; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose h2, .prose h3 { margin: 1.4em 0 .5em; color: var(--ink); }
.episode__foot { margin-top: 56px; }
.byline { display: flex; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.byline p { margin: 0; }

/* Tracker page */
.tracker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.globe-wrap { position: sticky; top: 92px; }
.globe { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: none; }
.globe:active { cursor: grabbing; }
.globe svg { width: 100%; height: 100%; display: block; }
.globe .sphere { fill: var(--cream); stroke: var(--line); }
.globe .land { fill: var(--parchment); stroke: #D9CDB9; stroke-width: .5; }
.globe .grat { fill: none; stroke: #ECE6DC; stroke-width: .5; }
.globe .mk { fill: var(--gold); stroke: var(--ink); stroke-width: 1.2; cursor: pointer; }
.globe .mk.is-on { fill: var(--ink); stroke: var(--gold); stroke-width: 2.5; }
.globe .mk-label { font: 500 13px var(--sans); fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; opacity: 0; transition: opacity .2s; }
.globe g:hover .mk-label, .globe g:focus .mk-label, .globe g.is-on .mk-label { opacity: 1; }
.globe g:focus { outline: none; }
.globe g:focus .mk { stroke: var(--gold); stroke-width: 3; }
.globe-hint { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { font: 400 0.92rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover { border-color: var(--gold); }
.filter-status { color: var(--muted); font-size: 0.9rem; min-height: 1.4em; }
.projects { list-style: none; margin: 0; padding: 0; }
.proj { padding: 26px 0; border-bottom: 1px solid var(--line); }
.proj[hidden] { display: none; }
.proj h3 { font-size: 1.7rem; margin-bottom: 4px; }
.proj__loc { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.proj dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0 0 14px; }
.proj dt { font-size: 0.8rem; color: var(--muted); }
.proj dd { margin: 0; font-weight: 400; font-size: 0.97rem; line-height: 1.4; }
.proj dd a { text-decoration-color: var(--gold); }
@media (max-width: 900px) {
  .tracker { grid-template-columns: 1fr; gap: 24px; }
  .globe-wrap { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) { .proj dl { grid-template-columns: 1fr; } }

/* FAQ — dark ink accordion would be a big black block; kept light per brand */
.faq details { border-bottom: 1px solid #D9CDB9; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 500 1.4rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 400 1.1rem/1 var(--sans); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); max-width: 64ch; }
.cta-quiet p { color: var(--ink-2); max-width: 60ch; }

/* About page */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.about__portrait { width: 320px; height: 320px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--parchment); }
.about .lede a { text-decoration-color: var(--gold); }
.about .prose { margin-top: 24px; font-size: 1.28rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .about__portrait { width: 180px; height: 180px; } }

/* Footer */
.site-foot { background: var(--cream); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.site-foot__in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.wordmark--foot { font-size: 1.5rem; }
.foot-tag { color: var(--muted); margin-top: 8px; }
.foot-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.foot-legal p { margin: 0; max-width: 70ch; }

/* Video player dialog */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.player::backdrop { background: rgba(26, 25, 22, .86); }
.player__frame { width: min(400px, 92vw, calc(88vh * 9 / 16)); aspect-ratio: 9 / 16; background: var(--ink); }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Breadcrumbs */
.crumbs { padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.86rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '/'; margin: 0 10px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs + .page-head, .crumbs + .episode, .crumbs + .video-page, .crumbs + .project-page { padding-top: 32px; }

/* Footer links */
.foot-nav { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.92rem; }
.foot-nav a { text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.faq-more { margin-top: 28px; color: var(--ink-2); }

/* Video page */
.video-page { padding: 56px 0 88px; }
.video-page__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.video-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.phone--page { justify-self: start; }
.prose--video { margin-top: 20px; font-size: 1.22rem; }
.video-page .byline { margin: 40px 0 0; }
.video-more { margin-top: 72px; }
@media (max-width: 860px) { .video-page__in { grid-template-columns: 1fr; gap: 36px; } .phone--page { justify-self: center; } }

/* Tracker project page */
.project-page { padding: 56px 0 88px; }
.project-page h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 36px 0 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.82rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 400; }
.facts dd a { text-decoration-color: var(--gold); }
.project-note { margin-top: 20px; font-size: 0.9rem; }
.mini-list { list-style: none; margin: 0 0 28px; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-list a { font: 500 1.2rem/1.3 var(--serif); text-decoration: none; }
.mini-list a:hover { color: var(--gold-text); }
.mini-list span { color: var(--muted); font-size: 0.9rem; text-align: right; }
.project-page .h-small { margin-top: 48px; }
.proj h3 a { text-decoration: none; }
.proj h3 a:hover { color: var(--gold-text); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .mini-list li { flex-direction: column; gap: 2px; } .mini-list span { text-align: left; } }

/* Glossary */
.toc ul { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; text-decoration: none; }
.toc a:hover { border-color: var(--gold); }
.terms { margin: 0 0 40px; }
.term { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.term h2 { font-size: 1.9rem; }
.term dd { margin: 10px 0 0; font-size: 1.1rem; color: var(--ink-2); max-width: 64ch; }
.term:target h2 { color: var(--gold-text); }
