:root {
  --paper: #eceef4;
  --mist: #e2e6f0;
  --surface: #f6f7fb;
  --ink: #1a2230;
  --ink-soft: #4a5568;
  --ink-faint: rgba(26, 34, 48, 0.42);
  --sage: #6b8f9c;
  --sage-deep: #3d5a66;
  --sage-mist: rgba(107, 143, 156, 0.2);
  --horizon: #c4a574;
  --horizon-mist: rgba(196, 165, 116, 0.28);
  --world-a: rgba(99, 132, 168, 0.35);
  --world-b: rgba(107, 143, 156, 0.25);
  --world-c: rgba(196, 165, 116, 0.22);
  --slate-mist: rgba(38, 48, 58, 0.09);
  --gold-leaf: rgba(198, 162, 88, 0.18);
  --gold-leaf-deep: rgba(168, 132, 58, 0.12);
  --gold-sheen: rgba(232, 214, 168, 0.22);
  --gulf: #2a8f82;
  --gulf-mist: rgba(42, 143, 130, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --nav-h: 4.25rem;
  --section-jump-bar-h: 2.75rem;
  --anchor-offset: calc(var(--nav-h) + 6.35rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 95% 72% at 50% 108%, var(--slate-mist), transparent 52%),
    radial-gradient(ellipse 55% 48% at 4% 92%, rgba(44, 54, 66, 0.07), transparent 46%),
    radial-gradient(ellipse 50% 44% at 96% 8%, rgba(58, 68, 82, 0.06), transparent 44%),
    linear-gradient(168deg, #e4e7ee 0%, var(--paper) 48%, #eef0f5 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar { width: 0; height: 0; background: transparent; }

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 44% at 14% 78%, var(--gold-leaf), transparent 58%),
    radial-gradient(ellipse 38% 48% at 91% 32%, var(--gold-leaf-deep), transparent 54%),
    radial-gradient(ellipse 30% 36% at 58% 91%, var(--gold-sheen), transparent 50%),
    radial-gradient(circle 42vw at 12% 22%, var(--world-a), transparent 58%),
    radial-gradient(circle 38vw at 92% 18%, var(--world-b), transparent 55%),
    radial-gradient(ellipse 90% 55% at 50% 108%, var(--horizon-mist), transparent 50%),
    radial-gradient(circle 28vw at 78% 78%, var(--world-c), transparent 52%);
  animation: field-drift 36s var(--ease) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(92deg, transparent 0, transparent 3px, rgba(35, 44, 54, 0.04) 3px, rgba(35, 44, 54, 0.04) 4px),
    repeating-linear-gradient(-3deg, transparent, transparent 11px, rgba(28, 36, 46, 0.045) 11px, rgba(28, 36, 46, 0.045) 12px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.032' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: auto, auto, 480px 480px;
}

@keyframes field-drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(1.5%, -2%) scale(1.035) rotate(0.8deg); opacity: 0.93; }
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.042;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--sage-deep);
  color: var(--paper);
  z-index: 10000;
}

.scroll-indicator {
  position: fixed;
  top: 0;
  right: 0;
  width: max(10px, 0.55vw);
  height: 100vh;
  height: 100dvh;
  z-index: 10050;
  pointer-events: auto;
  background: rgba(26, 34, 48, 0.07);
  cursor: pointer;
  touch-action: none;
}
.scroll-indicator.is-dragging { cursor: grabbing; }
.scroll-indicator__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  border-radius: 0 0 0 4px;
  background: linear-gradient(180deg, var(--sage-deep), var(--horizon));
  box-shadow: 0 0 12px rgba(61, 90, 102, 0.35);
  cursor: grab;
  pointer-events: auto;
}
.scroll-indicator.is-dragging .scroll-indicator__fill { cursor: grabbing; }

header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(232, 235, 242, 0.94), rgba(236, 238, 244, 0.76), transparent);
  backdrop-filter: blur(14px);
}

em { color: var(--sage-deep); }

.mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.mark-logo {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(28%) sepia(15%) saturate(680%) hue-rotate(152deg) brightness(94%) contrast(90%);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
nav a[aria-current="page"] { color: var(--sage-deep); }
nav a:hover { color: var(--sage-deep); text-decoration: none; }

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 2.2vw, 1.65rem);
  flex-wrap: wrap;
}
.site-header__divider {
  width: 1px;
  height: 1.75rem;
  background: rgba(92, 117, 104, 0.22);
}

.nav-chicago-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-chicago-widget__label {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.nav-chicago-widget__weather {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(92, 117, 104, 0.14);
}
.nav-chicago-widget__wx-icon { font-size: 0.85rem; line-height: 1; }
.nav-chicago-widget__temp { font-variant-numeric: tabular-nums; }
.nav-chicago-widget__clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.nav-chicago-widget__clock #chi-date { opacity: 0.72; font-size: 0.58rem; }

.section-jump {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  max-height: var(--section-jump-bar-h);
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.section-jump:focus-within,
.section-jump:hover {
  max-height: min(18rem, 70vh);
  box-shadow: 0 12px 32px rgba(26, 34, 48, 0.08);
}

.section-jump-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem);
  border-radius: 0;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.2;
  color: var(--ink-soft);
  background: rgba(246, 247, 251, 0.82);
  border: none;
  border-bottom: 1px solid rgba(92, 117, 104, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.section-jump-btn.is-active {
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(61, 90, 102, 0.35);
  box-shadow: inset 3px 0 0 var(--sage-deep);
}
.section-jump-btn:first-child { border-top: 1px solid rgba(92, 117, 104, 0.22); }
.section-jump-btn:hover {
  color: var(--sage-deep);
  border-color: rgba(61, 90, 102, 0.35);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--anchor-offset) + clamp(1rem, 3vw, 1.75rem)) clamp(1rem, 4vw, 2rem) 3.5rem;
}

.kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.65rem;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 0.5;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 62ch;
  margin: 0 0 1.5rem;
}

.lens-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(92, 117, 104, 0.14);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.lens-panel__item h2 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.35rem;
}
.lens-panel__item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.feed-section {
  margin-bottom: 2.5rem;
}
.feed-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.feed-section__head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.feed-section__head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed > li[hidden] { display: none; }

.feed-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(92, 117, 104, 0.12);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(44, 51, 46, 0.06);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 90, 102, 0.24);
  box-shadow: 0 16px 40px rgba(44, 51, 46, 0.1);
}

.feed-card__strip {
  height: 4px;
  background: linear-gradient(90deg, var(--sage-deep), var(--horizon));
}
.feed-card__strip--chi { background: linear-gradient(90deg, #6384a8, var(--sage-deep)); }
.feed-card__strip--gulf { background: linear-gradient(90deg, var(--gulf), #c9a227); }
.feed-card__strip--learn { background: linear-gradient(90deg, #7a6b9a, var(--horizon)); }

.feed-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feed-card__region {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--sage-mist);
  color: var(--sage-deep);
}
.feed-card__region--chi { background: rgba(99, 132, 168, 0.18); color: #3d5678; }
.feed-card__region--gulf { background: var(--gulf-mist); color: var(--gulf); }
.feed-card__region--learn { background: rgba(122, 107, 154, 0.16); color: #5a4d78; }
.feed-card__tag {
  color: var(--ink-faint);
}

.feed-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.feed-card h3 a:hover { color: var(--sage-deep); text-decoration: none; }

.feed-card p {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.5;
}

.feed-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(92, 117, 104, 0.1);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feed-card__links a {
  color: var(--sage-deep);
}
.feed-card__links a.studio-link {
  color: #9a7a3e;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.studio-grid > li[hidden] { display: none; }

.studio-link-card {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(92, 117, 104, 0.12);
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.studio-link-card:hover {
  border-color: rgba(61, 90, 102, 0.28);
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.studio-link-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.studio-link-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.method-note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: calc(var(--radius) - 6px);
  border: 1px dashed rgba(92, 117, 104, 0.22);
  background: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.method-note strong { color: var(--ink); font-weight: 600; }

.feed-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border: 1px dashed rgba(92, 117, 104, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}
.feed-empty[hidden] { display: none !important; }

footer {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(92, 117, 104, 0.12);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
footer a { font-weight: 600; color: var(--sage-deep); }

.section-jump-btn.is-active:hover,
.mark:hover,
.feed-card h3 a:hover,
.studio-link-card:hover { text-decoration: none; }

@media (max-width: 720px) {
  .nav-chicago-widget__clock { display: none; }
  .site-header__divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; transform: none; }
  .feed-card:hover { transform: none; }
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a0a0a;
  --mist: #0e0e0e;
  --surface: #121212;
  --ink: #f4f4f4;
  --ink-soft: #c2c2c2;
  --ink-faint: rgba(244, 244, 244, 0.48);
  --sage: #8ec5d1;
  --sage-deep: #6eb0bf;
  --sage-mist: rgba(110, 176, 191, 0.14);
  --horizon: #d4a574;
  --horizon-mist: rgba(212, 165, 116, 0.1);
  --theme-meta: #000000;
}

[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(110, 176, 191, 0.05), transparent 52%),
    linear-gradient(168deg, #0c0c0c 0%, #080808 48%, #050505 100%);
}

[data-theme="dark"] body::after {
  opacity: 0.12;
}

[data-theme="dark"] .feed-card,
[data-theme="dark"] .studio-link-card,
[data-theme="dark"] .method-note,
[data-theme="dark"] .feed-empty {
  border-color: rgba(255, 255, 255, 0.07);
  background-color: #111111;
  box-shadow: 7px 7px 16px rgba(0, 0, 0, 0.88), -5px -5px 14px rgba(255, 255, 255, 0.045);
}

@media (max-width: 768px) {
  :root {
    --nav-h: calc(3.15rem + env(safe-area-inset-top, 0px));
    --footer-fixed-pad: calc(3.85rem + env(safe-area-inset-bottom, 0px));
    --anchor-offset: calc(var(--nav-h) + 0.25rem);
  }

  header.site {
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0;
  }

  .wrap,
  main {
    padding-inline: max(0.85rem, env(safe-area-inset-left, 0px)) max(0.85rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(var(--footer-fixed-pad) + env(safe-area-inset-bottom, 0px));
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }
}
