/* The 6 O'Clock Project · site styles (mobile first) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-var.woff2") format("woff2-variations"), url("../fonts/playfair-display-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Theme tokens: dark (Night) is the default ---------- */
:root {
  --bg: #120A20; --alt: #1B1130; --card: #120A20; --tile: #1B1130; --line: #3A2A5C;
  --text: #F4EBDD; --text2: #CFC4E2; --text3: #9D8FB8;
  --label: #BBA3E6; --accent: #F5B35C; --link: #BBA3E6; --link-h: #D5C6EF;
  --btn: #6636A8; --btn-h: #7C52C2; --ghost: #1B1130; --ghost-h: #261A40;
  --blue: #3D7BFF; --red: #FF3B30; --mid: #6E3BC0; --six: #F4EBDD; --bellc: #E2D3FF;
  --head: rgba(18, 10, 32, 0.94);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* Light mode (vellum) */
:root[data-theme="light"] {
  --bg: #FAF0E4; --alt: #F1E4D3; --card: #FFF9F2; --tile: #FFF9F2; --line: #E3D3BE;
  --text: #190C2D; --text2: #2B2433; --text3: #51485E;
  --label: #51298A; --accent: #8A5A12; --link: #51298A; --link-h: #3C1F68;
  --btn: #51298A; --btn-h: #3C1F68; --ghost: #FFF9F2; --ghost-h: #F1E4D3;
  --blue: #1E4FE0; --red: #D7191F; --mid: #51298A; --six: #190C2D; --bellc: #2A154A;
  --head: rgba(250, 240, 228, 0.94);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 300; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); }
a:hover { color: var(--link-h); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--btn); color: #F4EBDD; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #F4EBDD; }
.spectrum { height: 5px; background: linear-gradient(90deg, #3556B8 0%, #6636A8 35%, #6636A8 65%, #B23A48 100%); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 60px 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { gap: 40px; }
.stack-md { gap: 24px; }
.stack-sm { gap: 12px; }
.measure { max-width: 760px; }
.band { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
main section[id] { scroll-margin-top: 76px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--label); }
.eyebrow-accent { color: var(--accent); }
.h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.06; letter-spacing: -0.02em; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.14; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text2); }
.lead-hero { font-size: 18px; max-width: 640px; }
.small { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text2); }
.pullquote { margin: 6px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 23px; line-height: 1.35; color: var(--text); }
.h1, .h2, .ptitle, .card-title, .chan-title, .pullquote { text-wrap: balance; }
.nowrap { white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--head);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar { max-width: 1160px; margin: 0 auto; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 8px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 37px; }
.wordmark { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.nav-desktop { display: none; }
.navlink { color: var(--text2); text-decoration: none; }
.navlink:hover { color: var(--text); }
.iconbtn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--ghost); color: var(--text); cursor: pointer;
}
.iconbtn:hover { background: var(--ghost-h); }
.iconbtn svg { width: 20px; height: 20px; }
.icon-sun { display: block; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
.icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { border-top: 1px solid var(--line); padding: 4px 20px 20px; display: flex; flex-direction: column; }
.mlink { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 400; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.mlink:hover { color: var(--text); }
.mobile-ctas { padding-top: 18px; }
/* Without JavaScript the menu button cannot work, so show the links instead */
.no-js .menu-btn, .no-js .theme-btn { display: none; }
.no-js .mobile-menu { display: flex !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.btn-primary { background: var(--btn); color: #F4EBDD; }
.btn-primary:hover { background: var(--btn-h); color: #F4EBDD; }
.btn-ghost { background: var(--ghost); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--ghost-h); color: var(--text); }
.btn-cream { background: #F4EBDD; color: #190C2D; }
.btn-cream:hover { background: #FFF9F2; color: #190C2D; }
.btn .ico-substack { width: 18px; height: 20px; }
.btn .ico-youtube { width: 28px; height: 20px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 44px; }
.hero-art { display: none; }
.hero-art img { width: 100%; max-width: 340px; height: auto; }

/* ---------- About ---------- */
.split { display: grid; gap: 20px; }
.cards { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-title { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--text); }

/* ---------- Clock ---------- */
.clock { display: grid; gap: 28px; grid-template-areas: "head" "fig" "body"; }
.clock-head { grid-area: head; }
.clock-fig { grid-area: fig; display: flex; justify-content: center; }
.clock-fig svg { width: 100%; max-width: 380px; height: auto; }
.clock-body { grid-area: body; }
.s-mid { stop-color: var(--mid); }
.s-blue { stop-color: var(--blue); }
.s-red { stop-color: var(--red); }
.f-blue { fill: var(--blue); }
.f-red { fill: var(--red); }
.f-text { fill: var(--text); }
.f-text3 { fill: var(--text3); }
.f-six { fill: var(--six); }
.f-bell { fill: var(--bellc); }
.clock-label { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.clock-sub { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.clock-six { font-family: var(--serif); font-size: 72px; font-weight: 500; }
.bell-light { display: none; }
:root[data-theme="light"] .bell-dark { display: none; }
:root[data-theme="light"] .bell-light { display: inline; }

/* ---------- Principles ---------- */
.pgrid { display: grid; gap: 16px; }
.pcard { gap: 14px; }
.pnum { font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--accent); line-height: 1; }
.ptitle { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 27px; color: var(--text); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.chev { flex: none; width: 18px; height: 18px; transition: transform 0.2s ease; }
details[open] > summary .chev { transform: rotate(180deg); }
.principle-more { border-top: 1px solid var(--line); padding-top: 6px; }
.more { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; color: var(--link); }
.fulltext { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; font-size: 15px; line-height: 1.7; color: var(--text2); }
.fulltext p { margin: 0; }
.fulltext .closing { color: var(--text); }

/* ---------- Framework ---------- */
.fw-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.fw { background: var(--tile); border: 1px solid var(--line); border-radius: 12px; }
.fw-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 4px 20px; font-size: 16px; font-weight: 600; color: var(--text); }
.fw-sum .chev { width: 20px; height: 20px; color: var(--link); }
.tiles { display: grid; gap: 0 32px; padding: 0 20px 8px; }
.tile { border-top: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.tile-num { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.06em; }
.tile-title { font-weight: 600; font-size: 16px; color: var(--text); }
.tile-text { font-size: 14px; line-height: 1.55; color: var(--text2); }

/* ---------- Channels (purple panel in both themes) ---------- */
.channels { background: #51298A; }
.channels .eyebrow { color: #F5B35C; }
.channels .h2 { color: #F4EBDD; }
.chan { display: grid; gap: 16px; }
.chan-card { background: #3C1F68; border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.chan-card .btn { width: 100%; margin-top: 6px; }
.chan-tag { display: flex; align-items: center; gap: 12px; color: #F5B35C; }
.chan-tag span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.chan-tag .ico-substack { width: 28px; height: 32px; }
.chan-tag .ico-youtube { width: 45px; height: 32px; }
.chan-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 29px; color: #F4EBDD; }
.chan-text { margin: 0; font-size: 17px; line-height: 1.65; color: #F4EBDD; }
.soon {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(244, 235, 221, 0.4); color: #F4EBDD; font-size: 14px; font-weight: 500;
}
.channels-note { margin: 0; font-size: 16px; line-height: 1.6; color: #F4EBDD; }
.channels-note a { color: #F5B35C; font-weight: 500; }
.channels-note a:hover { color: #FFF9F2; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 33px; }
.foot-brand span { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.foot-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text3); }
.footcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footcol { display: flex; flex-direction: column; }
.foot-h { color: var(--text3); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; padding-bottom: 6px; }
.flink { color: var(--text2); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; overflow-wrap: anywhere; }
.flink:hover { color: var(--text); }

/* ---------- Simple pages (privacy, 404) ---------- */
.prose { max-width: 720px; }
.prose h1 { margin: 0 0 24px; }
.prose h2 { margin: 36px 0 12px; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--text2); }
.prose ul { padding-left: 22px; }
.prose .meta { font-size: 14px; color: var(--text3); }

/* ---------- Breakpoints ---------- */
@media (max-width: 359px) { .wordmark { display: none; } }
@media (min-width: 600px) {
  .h1 { font-size: 56px; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .chan-card .btn { width: auto; align-self: flex-start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 28px 12px; }
  .fw-sum { padding: 4px 28px; }
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .chan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .chan-card { padding: 36px; }
  .foot { flex-direction: row; justify-content: space-between; }
  .footcols { display: flex; gap: 48px; }
}
@media (min-width: 900px) {
  .wrap { padding: 100px 32px; }
  .foot { padding-top: 56px; padding-bottom: 64px; }
  .h2 { font-size: 46px; line-height: 1.08; }
  .lead { font-size: 18px; }
  .lead-hero { font-size: 20px; }
  .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; padding-top: 96px; }
  .hero-art { display: flex; justify-content: center; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; }
  .card { padding: 28px; }
  .pcard { padding: 32px; }
  .clock { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "fig head" "fig body"; column-gap: 72px; row-gap: 20px; }
  .clock-fig { align-self: center; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
  main section[id] { scroll-margin-top: 88px; }
}
@media (min-width: 960px) {
  .navbar { padding: 12px 32px; gap: 12px; }
  .wordmark { font-size: 22px; }
  .nav-desktop { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; margin-right: 8px; }
  .menu-btn { display: none; }
  .mobile-menu, .no-js .mobile-menu { display: none !important; }
}
@media (min-width: 1100px) {
  .h1 { font-size: 76px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
