:root {
  color-scheme: light;
  --ink: #202124;
  --ink-soft: #34302d;
  --muted: #6b625d;
  --paper: #fbfaf7;
  --surface: #fffefb;
  --wash: #eee7dc;
  --line: rgba(32, 33, 36, 0.14);
  --line-strong: rgba(32, 33, 36, 0.24);
  --sage: #65795f;
  --clay: #aa6547;
  --plum: #5d4a64;
  --gold: #b28a46;
  --shadow: 0 24px 70px rgba(51, 43, 35, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 33, 36, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(170, 101, 71, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 5vw, 68px);
  background: rgba(251, 250, 247, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

.hero {
  width: min(100%, calc(var(--max) + 2 * clamp(20px, 5vw, 72px)));
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 92px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.panel-label,
.feature-meta,
.tile-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 8.8vw, 7.9rem);
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}

.tile h2,
.feature h2,
.project-row h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.42rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-weight: 850;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.system-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(238, 231, 220, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-mark {
  width: 54px;
  height: 54px;
}

.panel-label {
  margin-bottom: 4px;
}

.panel-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.signal-list {
  list-style: none;
  display: grid;
  margin: 0;
  padding: 0;
}

.signal-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.signal-list li:last-child {
  border-bottom: 0;
}

.signal-list span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: 900;
}

.signal-list strong {
  color: var(--ink);
}

.signal-list em {
  color: var(--muted);
  font-style: normal;
}

.section,
.page-hero {
  padding: clamp(58px, 9vw, 118px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section > *,
.page-hero > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
}

.intro,
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
  line-height: 1.76;
}

.prose p {
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.tile-grid,
.feature-grid,
.loop-grid,
.system-grid,
.gallery-grid,
.memory-strip {
  display: grid;
  gap: 16px;
}

.tile-grid.three,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr) minmax(0, 0.92fr);
  align-items: stretch;
}

.memory-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.tile,
.feature,
.loop-grid article,
.system-grid article,
.gallery-slot,
.memory-strip li {
  min-height: 260px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.74);
}

.tile p,
.feature p,
.loop-grid p,
.system-grid p,
.memory-strip p,
.project-row p,
.closing p,
.standfirst {
  color: var(--muted);
  line-height: 1.68;
}

.tile p,
.feature p,
.loop-grid p,
.system-grid p,
.memory-strip p {
  margin: 18px 0 0;
}

.marvin-hero {
  background:
    linear-gradient(135deg, rgba(178, 138, 70, 0.13), transparent 46%),
    linear-gradient(225deg, rgba(93, 74, 100, 0.09), transparent 42%);
}

.marvin-feature {
  margin: clamp(28px, 4vw, 48px) auto 0;
  max-width: min(980px, 100%);
}

.marvin-feature img {
  display: block;
  width: 100%;
  max-height: min(78vh, 920px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(37, 33, 28, 0.16);
}

.marvin-feature figcaption {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.relational-hero {
  background:
    linear-gradient(135deg, rgba(101, 121, 95, 0.14), transparent 46%),
    linear-gradient(225deg, rgba(170, 101, 71, 0.11), transparent 44%),
    rgba(255, 254, 251, 0.44);
}

.marvin-gallery-section {
  background: rgba(255, 254, 251, 0.38);
}

.gallery-slot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  min-height: 380px;
}

.gallery-slot.featured {
  transform: translateY(-16px);
}

.photo-placeholder {
  min-height: 280px;
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(101, 121, 95, 0.16), transparent 44%),
    linear-gradient(225deg, rgba(170, 101, 71, 0.12), transparent 48%),
    rgba(238, 231, 220, 0.64);
}

.gallery-slot img {
  display: block;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.marvin-gallery-section .gallery-slot img {
  background: rgba(238, 231, 220, 0.58);
  object-fit: contain;
}

.gallery-slot figcaption {
  display: grid;
  gap: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.gallery-slot strong,
.memory-strip strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.76rem);
  line-height: 1.14;
}

.memory-strip li {
  min-height: 220px;
}

.memory-strip span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.marvin-closing {
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.72), rgba(238, 231, 220, 0.52)),
    var(--surface);
}

.honesty-definition {
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.68), rgba(238, 231, 220, 0.32)),
    var(--surface);
}

.definition-panel {
  max-width: 980px;
  padding: clamp(26px, 4vw, 44px);
  border-left: 6px solid var(--clay);
  background: rgba(255, 254, 251, 0.78);
  box-shadow: 0 18px 50px rgba(51, 43, 35, 0.08);
}

.definition-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.22;
}

.theme-grid,
.filter-grid {
  display: grid;
  gap: 16px;
}

.theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card,
.filter-grid article {
  min-height: 230px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.74);
}

.theme-card span,
.filter-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-card p,
.filter-grid p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.prompt-list {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  line-height: 1.52;
}

.prompt-list li {
  margin-bottom: 12px;
}

.source-shelf {
  background: rgba(255, 254, 251, 0.5);
}

.boundary-list {
  list-style: square;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.filter-grid article {
  min-height: 190px;
}

.filter-grid span {
  color: var(--gold);
}

.relational-closing {
  background:
    linear-gradient(135deg, rgba(93, 74, 100, 0.1), transparent 48%),
    rgba(255, 254, 251, 0.7);
}

.essay-hero {
  min-height: 52vh;
  background:
    linear-gradient(135deg, rgba(93, 74, 100, 0.1), transparent 45%),
    linear-gradient(225deg, rgba(101, 121, 95, 0.12), transparent 44%),
    rgba(255, 254, 251, 0.48);
}

.essay-section {
  background: rgba(255, 254, 251, 0.54);
}

.essay-body {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  line-height: 1.78;
}

.essay-body p {
  margin: 0 0 22px;
}

.essay-body h2 {
  margin: 54px 0 18px;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
}

.essay-body h2:first-of-type {
  margin-top: 38px;
}

.essay-deck {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 2.5vw, 2.1rem);
  line-height: 1.34;
}

.essay-practice {
  border-top-color: rgba(32, 33, 36, 0.18);
}

.tile-kicker {
  display: block;
  color: var(--sage);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--clay);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.band {
  background:
    linear-gradient(135deg, rgba(101, 121, 95, 0.12), transparent 42%),
    var(--wash);
}

.compass {
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.52), rgba(238, 231, 220, 0.38)),
    var(--surface);
}

.loop-grid article {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.loop-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--clay), var(--plum));
}

.loop-grid span {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.48rem, 2.2vw, 2.1rem);
  font-weight: 700;
}

.command-system,
.bridge-note {
  background: rgba(255, 254, 251, 0.56);
}

.system-grid article {
  min-height: 230px;
}

.standfirst {
  max-width: 850px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

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

.module-list a,
.project-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(240px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid rgba(32, 33, 36, 0.18);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.7);
}

.module-list a:hover {
  border-color: var(--clay);
}

.module-list span,
.feature-meta {
  color: var(--muted);
}

.module-list strong {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.feature {
  min-height: 300px;
}

.feature-meta {
  margin-bottom: 18px;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-row p {
  margin: 0;
}

.clean-list,
.process-list {
  max-width: 850px;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.clean-list li,
.process-list li {
  margin-bottom: 12px;
}

.closing {
  max-width: none;
}

.closing > * {
  max-width: 900px;
}

.closing p {
  max-width: 700px;
  margin: 22px auto 28px;
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .intro,
  .split,
  .tile-grid.three,
  .feature-grid,
  .loop-grid,
  .system-grid,
  .theme-grid,
  .gallery-grid,
  .memory-strip {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .system-panel {
    max-width: 620px;
  }

  .gallery-slot.featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .brand span {
    font-size: 0.98rem;
  }

  .site-nav {
    gap: 4px 14px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .module-list a,
  .project-row {
    grid-template-columns: 1fr;
  }

  .tile,
  .feature,
  .loop-grid article,
  .system-grid article,
  .theme-card,
  .filter-grid article,
  .gallery-slot,
  .memory-strip li {
    min-height: auto;
  }

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

  .photo-placeholder {
    min-height: 230px;
  }

  .marvin-feature img {
    aspect-ratio: 4 / 3;
    max-height: none;
    object-position: 50% 50%;
  }
}
