:root {
  --paper: #e8e5dc;
  --paper-light: #f4f1e9;
  --ink: #17191b;
  --muted: #6c6c66;
  --line: rgba(23, 25, 27, 0.18);
  --red: #db4e40;
  --red-dark: #9e332c;
  --blue: #253e55;
  --shadow: 0 28px 70px rgba(23, 25, 27, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 25, 27, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 25, 27, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background: linear-gradient(118deg, transparent 0 50%, rgba(219, 78, 64, 0.07) 50% 50.1%, transparent 50.1%);
  pointer-events: none;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 25, 27, 0.3) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

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

.header,
main,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(232, 229, 220, 0.86);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease;
}

.brand,
nav,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  width: max-content;
  font-weight: 800;
}

.radix-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper-light);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
}

nav { gap: 22px; }

nav a,
.edition,
.hero-topline,
.hero-footer,
.section-marker,
.field-note-label,
.footer {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

nav a:hover { color: var(--red-dark); }

.edition {
  justify-self: end;
  color: var(--muted);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 36px 0 28px;
}

.hero-topline,
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  min-height: 650px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(7rem, 18vw, 18rem);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.hero-thesis {
  margin: 32px 0 20px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-style: italic;
}

.hero-description {
  max-width: 470px;
  color: #4f514d;
  font-size: 1.1rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.red-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  color: var(--red-dark);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.red-link span { font-size: 1.2rem; }

.locator {
  position: relative;
  min-height: 510px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 233, 0.64);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.locator::before,
.locator::after {
  position: absolute;
  content: "";
  background: var(--line);
}

.locator::before { top: 50%; left: 0; right: 0; height: 1px; }
.locator::after { left: 50%; top: 0; bottom: 0; width: 1px; }

.locator-cross {
  position: absolute;
  inset: 17%;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.locator-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one { width: 270px; height: 270px; }
.ring-two { width: 130px; height: 130px; border-color: var(--blue); }

.locator-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(219, 78, 64, 0.18);
  transform: translate(-50%, -50%);
}

.loc-top,
.loc-bottom,
.loc-side {
  position: absolute;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.loc-top { top: 20px; left: 20px; }
.loc-bottom { right: 20px; bottom: 20px; color: var(--red-dark); }
.loc-side { top: 50%; right: 14px; writing-mode: vertical-rl; transform: translateY(-50%); }

.hero-footer { margin-top: 20px; }
.hero-footer .line { flex: 1; height: 1px; background: var(--line); }

.foundation,
.practice,
.field-note,
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-marker {
  display: flex;
  gap: 18px;
  color: var(--red-dark);
}

.section-marker span:first-child { color: var(--red); }

.foundation-content {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 70px;
  align-items: end;
  margin-top: 50px;
}

h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.foundation-content > p,
.contact-body > p {
  margin: 0;
  color: #575952;
  line-height: 1.75;
}

.stat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat-row div {
  display: grid;
  gap: 34px;
  padding: 22px;
  background: rgba(244, 241, 233, 0.66);
}

.stat-row strong { color: var(--red); font-size: 1.4rem; }
.stat-row span { font-family: "DM Mono", monospace; font-size: 0.7rem; text-transform: uppercase; }

.practice-list {
  display: grid;
  gap: 1px;
  margin-top: 48px;
  border-top: 1px solid var(--ink);
  background: var(--ink);
}

.practice-list article {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  gap: 22px;
  align-items: start;
  padding: 28px;
  background: var(--paper);
}

.practice-list article:hover { background: var(--paper-light); }
.item-number { color: var(--red); font-family: "DM Mono", monospace; }
.item-arrow { color: var(--red-dark); font-size: 1.4rem; }
.practice-list p { max-width: 620px; margin: 0; color: #5c5e58; }

.practice-list h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.field-note {
  display: grid;
  grid-template-columns: 0.5fr 1.1fr 0.7fr;
  gap: 42px;
  align-items: center;
  background: var(--red);
  color: var(--paper-light);
}

.field-note-label { color: rgba(244, 241, 233, 0.72); }
.field-note blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 5.4rem); font-style: italic; line-height: 0.9; }
.field-note p { margin: 0; color: rgba(244, 241, 233, 0.8); }

.contact {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 70px;
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 40px;
  align-items: end;
}

.contact-body h2 { grid-column: 1 / -1; }

address {
  display: grid;
  gap: 12px;
  font-style: normal;
}

address a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

address a:hover { color: var(--red-dark); }

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span:last-child { display: flex; gap: 18px; }

.legal {
  width: min(820px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 0;
}

.legal .brand { margin-bottom: 80px; }
.legal h1 { font-size: clamp(5rem, 14vw, 10rem); }
.legal .button { display: inline-flex; margin-top: 24px; }

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; row-gap: 10px; padding: 12px 0; }
  nav { grid-column: 1 / -1; order: 3; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
  .hero-layout,
  .foundation-content,
  .field-note,
  .contact,
  .contact-body { grid-template-columns: 1fr; }
  .hero-layout { min-height: auto; }
  .locator { min-height: 460px; }
  .field-note { gap: 26px; }
  .contact-body h2 { grid-column: auto; }
}

@media (max-width: 620px) {
  .header,
  main,
  .footer { width: min(100% - 22px, 1180px); }
  .edition { font-size: 0.62rem; }
  nav { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  nav a { text-align: center; font-size: 0.66rem; }
  .hero { padding-top: 42px; }
  .hero-topline { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-copy h1 { font-size: clamp(6rem, 28vw, 9rem); }
  .hero-thesis { font-size: clamp(2rem, 9vw, 3.25rem); }
  .hero-description { font-size: 1rem; }
  .hero-footer { flex-wrap: wrap; }
  .hero-footer .line { min-width: 100%; order: 3; }
  .ring-one { width: 220px; height: 220px; }
  .ring-two { width: 112px; height: 112px; }
  .stat-row { grid-template-columns: 1fr; }
  .practice-list article { grid-template-columns: 34px 1fr 24px; padding: 22px 16px; }
  .practice-list h3 { font-size: 1.35rem; }
  .practice-list p { font-size: 0.95rem; line-height: 1.6; }
  .field-note blockquote { font-size: clamp(2.3rem, 12vw, 4rem); }
  .footer { align-items: flex-start; flex-direction: column; }
}
