/* Sources and posts — generated by build.py. Apple-style, mobile first. */

:root {
  color-scheme: light dark;

  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-instant: 100ms;
  --dur-fast: 160ms;
  --dur-base: 240ms;

  /* Light: warm paper, charcoal type, amber used sparingly for links. */
  --bg: #F6F4F1;
  --bg-secondary: #EEEBE6;
  --bg-elevated: #FFFFFF;
  --label: #1A1917;
  --label-2: rgba(60, 54, 46, 0.80); /* was 0.64; >=4.5:1 on --bg and --bg-elevated */
  --label-3: rgba(60, 54, 46, 0.72); /* was 0.42; lighter than label-2, >=4.5:1 */
  --label-4: rgba(60, 54, 46, 0.22);
  --fill-2: rgba(120, 112, 104, 0.16);
  --fill-3: rgba(118, 110, 102, 0.12);
  --fill-4: rgba(116, 108, 100, 0.08);
  --separator: rgba(60, 54, 46, 0.16);
  --separator-strong: rgba(60, 54, 46, 0.28);

  --accent: #E8B05C;
  --accent-text: #8A5A12; /* 5.9:1 on white, 5.4:1 on page bg — WCAG AA */
  --on-accent: #1A1917;
  --accent-tint: rgba(232, 176, 92, 0.18);

  --material-regular: rgba(246, 244, 241, 0.78);
  --material-blur: saturate(180%) blur(20px);
  --material-border: rgba(0, 0, 0, 0.06);
  --card-border: rgba(60, 54, 46, 0.12);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --shadow-2: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --focus-ring: 0 0 0 3px rgba(138, 90, 18, 0.35);

  --content: 720px;
  --page: 980px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513;
  --bg-secondary: #1C1B19;
  --bg-elevated: #221F1C;
  --label: #F4F1EC;
  --label-2: rgba(235, 228, 218, 0.64);
  --label-3: rgba(235, 228, 218, 0.55); /* was 0.38; lighter than label-2, >=4.5:1 */
  --label-4: rgba(235, 228, 218, 0.18);
  --fill-2: rgba(120, 112, 104, 0.32);
  --fill-3: rgba(118, 110, 102, 0.24);
  --fill-4: rgba(116, 108, 100, 0.16);
  --separator: rgba(235, 228, 218, 0.12);
  --separator-strong: rgba(235, 228, 218, 0.22);

  --accent: #E8B05C;
  --accent-text: #E8B05C; /* 9.4:1 on charcoal bg */
  --on-accent: #1A1917;
  --accent-tint: rgba(232, 176, 92, 0.16);

  --material-regular: rgba(22, 21, 19, 0.72);
  --material-border: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.40);
  --shadow-2: 0 2px 8px rgba(0,0,0,0.45);
  --focus-ring: 0 0 0 3px rgba(232, 176, 92, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161513;
    --bg-secondary: #1C1B19;
    --bg-elevated: #221F1C;
    --label: #F4F1EC;
    --label-2: rgba(235, 228, 218, 0.64);
    --label-3: rgba(235, 228, 218, 0.55); /* was 0.38; lighter than label-2, >=4.5:1 */
    --label-4: rgba(235, 228, 218, 0.18);
    --fill-2: rgba(120, 112, 104, 0.32);
    --fill-3: rgba(118, 110, 102, 0.24);
    --fill-4: rgba(116, 108, 100, 0.16);
    --separator: rgba(235, 228, 218, 0.12);
    --separator-strong: rgba(235, 228, 218, 0.22);
    --accent: #E8B05C;
    --accent-text: #E8B05C;
    --on-accent: #1A1917;
    --accent-tint: rgba(232, 176, 92, 0.16);
    --material-regular: rgba(22, 21, 19, 0.72);
    --material-border: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.5);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-1: 0 1px 2px rgba(0,0,0,0.40);
  --shadow-2: 0 2px 8px rgba(0,0,0,0.45);
    --focus-ring: 0 0 0 3px rgba(232, 176, 92, 0.45);
  }
}

:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg { display: block; }
a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}
::selection { background: var(--accent-tint); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--bg-elevated);
  color: var(--label);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type */
.t-large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -0.022em; }
.t-title1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.021em; }
.t-title2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.t-title3 { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -0.019em; }
.t-head { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.022em; }
.t-body { font-size: 17px; line-height: 25px; letter-spacing: -0.022em; }
.t-sub { font-size: 15px; line-height: 20px; color: var(--label-2); letter-spacing: -0.016em; }
.t-foot { font-size: 13px; line-height: 18px; color: var(--label-2); letter-spacing: -0.006em; }
.t-cap { font-size: 12px; line-height: 16px; color: var(--label-2); letter-spacing: 0; }
.t-overline {
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--label-2);
  margin: 0 0 var(--space-3);
}

.wrap {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.narrow { width: min(100%, var(--content)); margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--material-regular);
  -webkit-backdrop-filter: var(--material-blur);
  backdrop-filter: var(--material-blur);
  border-bottom: 0.5px solid var(--separator);
  padding-top: env(safe-area-inset-top);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  min-height: 52px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--label);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
  padding: 8px 4px;
}
.wordmark:hover { color: var(--label); text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  order: 3;
  flex: 1 1 100%;
  margin-left: -10px;
  padding-bottom: 4px;
}
.theme-toggle { order: 2; }
@media (min-width: 734px) {
  .nav-links { order: 2; flex: 0 0 auto; margin-left: 0; padding-bottom: 0; }
  .theme-toggle { order: 3; }
}
.nav-links a,
.theme-toggle {
  font: 500 15px/20px var(--font-sans);
  letter-spacing: -0.016em;
  color: var(--label-2);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.nav-links a:hover,
.theme-toggle:hover {
  color: var(--label);
  background: var(--fill-4);
  text-decoration: none;
}
.nav-links a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.theme-toggle { width: 44px; padding: 0; color: var(--label-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-system { display: none; }
:root[data-theme-pref="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme-pref="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme-pref="system"] .theme-toggle .icon-system { display: block; }
:root:not([data-theme-pref])[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root:not([data-theme-pref])[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (hover: none) {
  .nav-links a:hover, .theme-toggle:hover { background: transparent; }
}

/* Hero */
.hero {
  padding: var(--space-10) 0 var(--space-8);
}
.hero h1 { margin: 0 0 var(--space-3); }
.hero .lede { margin: 0; max-width: 32em; }

/* Sections */
.section { padding: var(--space-8) 0 var(--space-10); }
.section + .section { border-top: 0.5px solid var(--separator); }
.section-head { margin-bottom: var(--space-6); }
.section-head h2 { margin: 0 0 var(--space-2); }
.section-head p { margin: 0; }

/* Platform cards — floating panels, one per social */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.platform-card {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  min-width: 0;
}
.platform-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-2);
  border-bottom: 0.5px solid var(--separator);
}
.platform-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.platform-identity .platform-icon {
  width: 28px;
  height: 28px;
  color: var(--label);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.platform-identity .platform-icon svg { width: 18px; height: 18px; }
.platform-identity h3 {
  margin: 0;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.platform-identity .handle {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.006em;
}
.platform-identity .handle a { color: var(--accent-text); text-decoration: none; }
.platform-identity .handle a:hover { text-decoration: underline; }
.platform-identity .handle-pending { color: var(--label-3); }
.btn-text {
  font: 500 15px/20px var(--font-sans);
  letter-spacing: -0.016em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: var(--accent-text);
  text-decoration: none;
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.btn-text:hover { background: var(--fill-4); text-decoration: none; }
.btn-text svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (hover: none) { .btn-text:hover { background: transparent; } }

/* Posts inside a platform card */
.post {
  padding: var(--space-5) 0;
  border-top: 0.5px solid var(--separator);
}
.post:first-of-type { border-top: 0; padding-top: var(--space-3); }
.post h3 {
  margin: 0 0 var(--space-2);
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 var(--space-4);
  font-size: 13px;
  line-height: 18px;
  color: var(--label-2);
  letter-spacing: -0.006em;
}
.post-meta .status { color: var(--label-3); }
.post-meta a.status-live {
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-meta a.status-live svg { width: 13px; height: 13px; }
.post-sources-label { margin: 0 0 var(--space-2); }
.post-sources { list-style: none; margin: 0; padding: 0; }
.post-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 0.5px solid var(--separator);
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.016em;
}
.post-sources li:first-child { border-top: 0; padding-top: 0; }
.post-source-ext {
  color: var(--accent-text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.post-source-ext:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent); }
.post-source-ext svg { width: 12px; height: 12px; flex-shrink: 0; position: relative; top: 1px; }
.post-source-here {
  color: var(--label-2);
  text-decoration: none;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.006em;
  white-space: nowrap;
}
.post-source-here:hover { color: var(--accent-text); text-decoration: underline; }
.platform-card .empty { margin: var(--space-3) 0 0; }

/* Follow row of profile links */
.follow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: var(--space-6) 0 0;
  padding-top: var(--space-4);
  border-top: 0.5px solid var(--separator);
}
.follow-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.016em;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.follow-row a:hover { background: var(--fill-4); text-decoration: none; }
.follow-row .follow-icon { color: var(--label); display: grid; place-items: center; }
.follow-row .follow-icon svg { width: 16px; height: 16px; }
@media (hover: none) { .follow-row a:hover { background: transparent; } }
.site-footer .follow-row { margin-top: 0; padding-top: 0; border-top: 0; }

/* Sources */
.source {
  padding: var(--space-6) 0;
  border-top: 0.5px solid var(--separator);
}
.source:first-of-type { border-top: 0; padding-top: 0; }
.source .figure {
  margin: 0 0 var(--space-4);
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--label);
}
.source .who {
  margin: 0 0 var(--space-3);
  font-size: 15px;
  line-height: 20px;
  color: var(--label-2);
  letter-spacing: -0.016em;
}
.source-meta {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}
.source-meta div { margin: 0; }
.source-meta dt {
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--label-2);
  margin: 0 0 2px;
}
.source-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.016em;
  color: var(--label);
}
.source-link {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.006em;
}
.source-link a {
  display: inline;
  color: var(--accent-text);
  overflow-wrap: anywhere;
}
.source-link .ext {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}
.source-link .ext svg { width: 12px; height: 12px; display: inline-block; }
.source-link .url { overflow-wrap: anywhere; }
.source-meta .disclosure { grid-column: 1 / -1; }


/* Queued group */
.queued {
  margin-top: var(--space-8);
  border-top: 0.5px solid var(--separator);
  padding-top: var(--space-4);
}
.queued > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--label);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.016em;
  -webkit-user-select: none;
  user-select: none;
}
.queued > summary::-webkit-details-marker { display: none; }
.queued > summary .chevron {
  width: 18px;
  height: 18px;
  color: var(--label-2);
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.queued[open] > summary .chevron { transform: rotate(180deg); }
.queued > summary .hint {
  margin-left: auto;
  font-weight: 400;
  font-size: 13px;
  color: var(--label-3);
}
.queued-body { padding: var(--space-2) 0 var(--space-4); }
.queued .source:first-of-type { padding-top: var(--space-4); border-top: 0.5px solid var(--separator); }

/* About */
.about p {
  margin: 0 0 var(--space-4);
  max-width: 38em;
  color: var(--label);
}
.about p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 0.5px solid var(--separator);
  padding: var(--space-8) 0 calc(var(--space-10) + env(safe-area-inset-bottom));
}
.site-footer p { margin: 0; }

@media (min-width: 734px) {
  .hero { padding-top: var(--space-16); padding-bottom: var(--space-12); }
  .t-title1 { font-size: 34px; line-height: 41px; letter-spacing: -0.022em; }
  .wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .source-meta {
    grid-template-columns: 1fr 1fr;
  }
  .platform-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .platform-card { padding: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
