:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --paper-deep: #e5dfd2;
  --ink: #11110f;
  --muted: #69645c;
  --line: #c5beb1;
  --orange: #ff5a36;
  --blue: #2356ff;
  --lime: #dfff58;
  --green: #087a45;
  --white: #fffdf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); }
body::before { position: fixed; z-index: -1; inset: 0; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); content: ""; pointer-events: none; }
::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.topbar { display: grid; width: min(1480px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ink); }
.brand { width: max-content; font-size: 1.5rem; font-weight: 950; letter-spacing: -.08em; text-decoration: none; }
.brand span { color: var(--orange); }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.topbar nav a:hover { color: var(--orange); }
.system-state { display: flex; justify-self: end; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.status-dot { width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; }
.status-dot--ok { background: var(--green); }
.status-dot--warn { background: var(--orange); }

main, .footer { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0; color: var(--muted); font-size: .64rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero { display: grid; min-height: 490px; padding: 64px 0 56px; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .6fr); align-items: end; gap: clamp(50px, 9vw, 150px); }
.hero h1 { max-width: 1100px; margin: 24px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 9.2vw, 10rem); font-weight: 400; letter-spacing: -.08em; line-height: .77; }
.hero h1 em { color: var(--orange); font-weight: 400; }
.hero__topics { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.time-card { display: flex; min-height: 265px; flex-direction: column; padding: 22px; border: 1px solid var(--ink); background: var(--lime); box-shadow: 14px 14px 0 var(--ink); transform: rotate(1deg); }
.time-card span, .time-card small { font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.time-card strong { margin: auto 0 0; font-family: Georgia, serif; font-size: clamp(5rem, 8vw, 8rem); font-weight: 400; letter-spacing: -.08em; line-height: .8; }
.time-card small { margin-top: 12px; color: var(--muted); }

.snapshot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--ink); }
.signal { display: flex; min-width: 0; min-height: 225px; flex-direction: column; padding: 19px; border-right: 1px solid var(--ink); text-decoration: none; }
.signal:last-child { border-right: 0; }
.signal__label { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: .6rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.signal__label i { color: inherit; font-style: normal; opacity: .66; }
.signal__label b { font-size: 1rem; }
.signal > strong { margin: auto 0 10px; font-family: Georgia, serif; font-size: clamp(3.2rem, 4.8vw, 5.3rem); font-weight: 400; letter-spacing: -.07em; line-height: .82; }
.signal p { margin: 0; font-size: .68rem; line-height: 1.4; }
.signal--weather { background: var(--blue); color: white; }
.signal--air { background: var(--white); }
.signal--rates { background: var(--paper-deep); }
.signal--code { background: var(--orange); }
.signal--repos { background: var(--ink); color: white; }
.signal--systems { background: var(--lime); }
a.signal:hover { position: relative; z-index: 2; outline: 5px solid var(--white); outline-offset: -5px; }

.ticker { width: 100vw; margin: 54px 0 0 calc(50% - 50vw); overflow: hidden; border-block: 1px solid var(--ink); background: var(--ink); color: var(--white); }
.ticker__track { display: flex; min-width: max-content; justify-content: center; gap: 25px; padding: 12px 24px; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ticker i { color: var(--lime); font-style: normal; }

.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; margin-bottom: 44px; grid-template-columns: 45px minmax(0, 1fr) minmax(240px, 360px); align-items: start; gap: 24px; }
.section-number { margin-top: 5px; color: var(--orange); font-family: ui-monospace, monospace; font-size: .69rem; font-weight: 900; }
.section-heading h2, .lab h2 { margin: 9px 0 0; font-family: Georgia, serif; font-size: clamp(3.6rem, 7vw, 7.6rem); font-weight: 400; letter-spacing: -.07em; line-height: .8; }
.section-heading > p { align-self: end; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.story-list { border-top: 1px solid var(--ink); }
.story { display: grid; min-height: 126px; padding: 20px 10px; grid-template-columns: 54px minmax(0, 1fr) 150px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.story:hover { padding-inline: 22px; background: var(--lime); }
.story__rank { color: var(--orange); font-family: ui-monospace, monospace; font-size: .7rem; }
.story__copy small { color: var(--blue); font-size: .59rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.story__copy h3 { max-width: 1040px; margin: 7px 0 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 2.6vw, 2.8rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.story__stats { display: flex; flex-direction: column; align-items: flex-end; }
.story__stats strong { font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; line-height: 1; }
.story__stats span { margin-top: 8px; color: var(--muted); font-size: .61rem; }
.empty-state { margin: 0; padding: 30px 0; color: var(--muted); font-size: .8rem; }

.pulse-grid { display: grid; grid-template-columns: 1.2fr .8fr; border: 1px solid var(--ink); }
.feed-panel { min-width: 0; padding: 24px; }
.feed-panel--dark { background: var(--ink); color: var(--white); }
.panel-title { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.panel-title a { text-decoration: none; }
.feed-panel--dark .panel-title { border-color: #3d3d39; }
.compact-list a { display: flex; min-height: 82px; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.compact-list a:hover strong { color: var(--blue); }
.compact-list span { margin-bottom: 6px; color: var(--muted); font-size: .57rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.compact-list strong { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; line-height: 1.18; }
.code-total { display: flex; min-height: 240px; align-items: end; gap: 22px; border-bottom: 1px solid #3d3d39; }
.code-total strong { font-family: Georgia, serif; font-size: clamp(6rem, 10vw, 11rem); font-weight: 400; letter-spacing: -.09em; line-height: .7; }
.code-total span { margin-bottom: 7px; color: #aaa9a3; font-size: .63rem; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.repo-list a { display: grid; padding: 16px 0; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; border-bottom: 1px solid #3d3d39; align-items: center; text-decoration: none; }
.repo-list a:hover { color: var(--lime); }
.repo-list span { color: #77766f; font-family: ui-monospace, monospace; font-size: .6rem; }
.repo-list strong { font-size: .86rem; }
.repo-list b { font-size: .8rem; }

.projects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.project { display: flex; min-width: 0; min-height: 290px; flex-direction: column; padding: 21px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--ink); text-decoration: none; }
.project:last-child { border-right-color: var(--ink); }
.project__top { display: flex; justify-content: space-between; gap: 8px; font-size: .57rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project__status { font-style: normal; }
.project__status--online { color: var(--green); }
.project__status--degraded, .project__status--offline { color: var(--orange); }
.project h3 { margin: auto 0 10px; font-family: Georgia, serif; font-size: 1.85rem; font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.project p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.project small { margin-top: 18px; color: var(--muted); font-family: ui-monospace, monospace; font-size: .57rem; }
.project:hover { background: var(--lime); }

.lab { width: 100vw; margin-left: calc(50% - 50vw); padding: 100px max(24px, calc((100vw - 1480px) / 2)); background: var(--ink); color: var(--white); }
.lab__heading { display: grid; grid-template-columns: 1fr 2fr; gap: 35px; }
.lab__heading .eyebrow { color: var(--lime); }
.lab__heading h2 { grid-row: 2; grid-column: 1 / -1; max-width: 1200px; }
.lab__heading > p:last-child { align-self: end; margin: 0; color: #aaa9a3; font-size: .82rem; line-height: 1.55; }
.lab__grid { display: grid; margin-top: 62px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lab__grid a { display: flex; min-height: 240px; flex-direction: column; padding: 24px; border: 1px solid #41413d; text-decoration: none; }
.lab__grid a:hover { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.lab__grid code { font-size: .6rem; color: var(--lime); }
.lab__grid a:hover code { color: var(--ink); }
.lab__grid strong { margin: auto 0 7px; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3.5rem); font-weight: 400; letter-spacing: -.05em; }
.lab__grid small { color: #aaa9a3; }
.lab__grid a:hover small { color: var(--ink); }
.lab__endpoints { display: grid; margin-top: 60px; }
.lab__endpoints a { display: grid; padding: 13px 0; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 20px; border-top: 1px solid #393936; text-decoration: none; }
.lab__endpoints a:last-child { border-bottom: 1px solid #393936; }
.lab__endpoints code { color: var(--lime); }
.lab__endpoints span { color: #aaa9a3; font-size: .76rem; }

.footer { display: grid; min-height: 170px; padding: 34px 0; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 30px; }
.footer div { display: flex; flex-direction: column; }
.footer strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.footer span, .footer p, .footer a { color: var(--muted); font-size: .65rem; text-decoration: none; }
.footer p { margin: 0; }

@media (max-width: 1180px) {
  .snapshot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signal:nth-child(3) { border-right: 0; }
  .signal:nth-child(-n + 3) { border-bottom: 1px solid var(--ink); }
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project:nth-child(3) { border-right-color: var(--ink); }
}

@media (max-width: 800px) {
  .topbar, main, .footer { width: min(100% - 28px, 1480px); }
  .topbar { min-height: 68px; grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero { min-height: auto; padding: 52px 0 62px; grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { font-size: clamp(4.5rem, 18vw, 7.5rem); }
  .time-card { width: min(100% - 12px, 430px); min-height: 220px; }
  .snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal { min-height: 205px; border-bottom: 1px solid var(--ink); }
  .signal:nth-child(odd) { border-right: 1px solid var(--ink); }
  .signal:nth-child(even) { border-right: 0; }
  .signal:nth-last-child(-n + 2) { border-bottom: 0; }
  .section { padding: 76px 0; }
  .section-heading { grid-template-columns: 34px 1fr; }
  .section-heading > p { grid-column: 2; }
  .story { grid-template-columns: 36px minmax(0, 1fr); }
  .story__stats { display: none; }
  .pulse-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project:nth-child(odd) { border-right: 1px solid var(--line); }
  .project:nth-child(even) { border-right-color: var(--ink); }
  .lab { padding-block: 76px; }
  .lab__heading { grid-template-columns: 1fr; }
  .lab__heading h2 { grid-row: auto; grid-column: auto; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__grid a { min-height: 200px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(3.45rem, 15.5vw, 4.3rem); }
  .snapshot { grid-template-columns: 1fr; }
  .signal { min-height: 175px; border-right: 0 !important; border-bottom: 1px solid var(--ink) !important; }
  .signal:last-child { border-bottom: 0 !important; }
  .signal > strong { font-size: 4.2rem; }
  .story { min-height: 110px; padding-inline: 0; }
  .story__copy h3 { font-size: 1.35rem; }
  .projects { grid-template-columns: 1fr; }
  .project { min-height: 240px; border-right: 1px solid var(--ink) !important; }
  .lab__endpoints a { grid-template-columns: 1fr; gap: 4px; }
  .footer { grid-template-columns: 1fr auto; }
  .footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
