:root {
  color-scheme: light;
  --ink: #101411;
  --muted: #4f5a52;
  --paper: #f7fbf7;
  --line: rgba(16, 20, 17, 0.16);
  --green: #0a8f68;
  --red: #cf3152;
  --cyan: #267c93;
  --yellow: #e3c83c;
  --white: #ffffff;
  --black: #050705;
  --shadow: 0 18px 42px rgba(5, 7, 5, 0.18);
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  color: var(--white);
  mix-blend-mode: difference;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.mark-symbol {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px transparent;
}

.mark-symbol::before {
  content: "🤍";
  position: absolute;
  inset: -9px auto auto 8px;
  font-size: 15px;
  line-height: 1;
}

.topbar nav {
  display: flex;
  gap: 16px;
}

.topbar nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.time-stage {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 24px;
  overflow: hidden;
  padding: 104px 34px 56px;
  color: var(--white);
  background: var(--black);
}

.source-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.timefield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-card {
  width: 210px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(247, 251, 247, 0.9);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(5, 7, 5, 0.22);
}

.canvas-card span,
.canvas-card em {
  display: block;
  letter-spacing: 0;
  font-size: 12px;
  line-height: 1.25;
}

.canvas-card span {
  text-transform: uppercase;
  font-weight: 850;
  color: var(--green);
}

.canvas-card strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
  line-height: 1;
}

.canvas-card em {
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
}

.stage-copy,
.reader-console {
  position: relative;
  z-index: 2;
}

.stage-copy {
  max-width: 840px;
  min-width: 0;
  align-self: center;
  padding-top: 58px;
}

.eyebrow,
.console-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 820;
  color: var(--green);
}

.stage-copy .eyebrow {
  color: #8df1c8;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 72px;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 34px 0 0;
}

.instrument-note {
  width: min(100%, 600px);
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.clock-grid div,
.reader-console {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 7, 5, 0.42);
  backdrop-filter: blur(12px);
}

.clock-grid div {
  padding: 14px;
}

.clock-grid dt {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.clock-grid dd {
  margin: 0;
  color: var(--white);
  font-size: 17px;
  font-weight: 780;
}

.reader-console {
  align-self: end;
  padding: 20px;
  box-shadow: var(--shadow);
}

.reader-console h2 {
  font-size: 30px;
}

.reader-console p:not(.console-kicker) {
  margin: 14px 0 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.console-actions a,
.endpoint-list a {
  border-radius: 6px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 800;
}

.console-actions a {
  padding: 10px 12px;
  color: #8df1c8;
}

.thesis-shell {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 860px);
  align-items: start;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 28px 72px;
}

.thesis-index {
  position: sticky;
  top: 86px;
  border-top: 4px solid var(--green);
  padding-top: 18px;
}

.thesis-index h2 {
  font-size: 28px;
  line-height: 1.08;
}

.thesis-index ol {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.35;
}

.thesis-index a {
  text-decoration-color: rgba(10, 143, 104, 0.4);
  text-underline-offset: 3px;
}

.thesis-body {
  min-width: 0;
}

.thesis-body h1 {
  font-size: 48px;
  color: var(--ink);
}

.thesis-body h2 {
  margin-top: 48px;
  font-size: 35px;
  line-height: 1.08;
}

.thesis-body h3 {
  margin-top: 34px;
  font-size: 24px;
  line-height: 1.16;
}

.thesis-body p,
.thesis-body li {
  font-size: 18px;
  line-height: 1.75;
}

.thesis-body p {
  margin: 18px 0;
}

.thesis-body em {
  color: var(--red);
  font-style: normal;
}

.thesis-body blockquote {
  margin: 30px 0;
  padding: 18px 0 18px 24px;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
}

.thesis-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.endpoint-band,
.practice-band {
  display: grid;
  gap: 24px;
  padding: 54px 28px;
}

.endpoint-band {
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: start;
  background: #e8f5ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.endpoint-band > div,
.practice-band {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.endpoint-band h2,
.practice-band h2 {
  font-size: 42px;
  line-height: 1.08;
}

.endpoint-band p,
.practice-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.practice-band .instrument-caveat {
  color: var(--ink);
  font-weight: 690;
}

.endpoint-list {
  display: grid;
  gap: 12px;
}

.endpoint-list a {
  display: grid;
  gap: 7px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.endpoint-list span {
  font-weight: 830;
}

code {
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.practice-band {
  min-height: 42vh;
  align-content: center;
}

@media (max-width: 920px) {
  .time-stage,
  .thesis-shell,
  .endpoint-band {
    grid-template-columns: 1fr;
  }

  .reader-console {
    max-width: 540px;
  }

  .thesis-index {
    position: static;
  }

  h1 {
    font-size: 52px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    padding: 14px;
  }

  .topbar nav {
    display: none;
  }

  .time-stage {
    width: 100vw;
    max-width: 100vw;
    padding: 96px 16px 36px;
  }

  .stage-copy,
  .reader-console {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .lead {
    width: 100%;
    max-width: 330px;
  }

  .instrument-note {
    max-width: 330px;
  }

  h1 {
    font-size: 40px;
  }

  .lead,
  .thesis-body p,
  .thesis-body li,
  .endpoint-band p,
  .practice-band p {
    font-size: 16px;
  }

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

  .thesis-shell,
  .endpoint-band,
  .practice-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .thesis-body h1 {
    font-size: 36px;
  }

  .thesis-body h2,
  .endpoint-band h2,
  .practice-band h2 {
    font-size: 30px;
  }
}

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