:root {
  --bg: #efeadf;
  --bg-deep: #e6e0d4;
  --text: #12110f;
  --muted: #5b564d;
  --line: rgba(18, 17, 15, 0.11);
  --line-strong: rgba(18, 17, 15, 0.22);
  --accent: #8e7551;
  --content-width: 88rem;
  --hero-shift: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Georgia, serif;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top right, rgba(142, 117, 81, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f0e7 0%, var(--bg) 36%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 8%, rgba(18, 17, 15, 0.04) 8.05%, transparent 8.1%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 24%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 2.95rem,
      rgba(18, 17, 15, 0.025) 2.95rem,
      rgba(18, 17, 15, 0.025) 2.98rem
    );
  opacity: 0.7;
}

::selection {
  color: #f4f0e7;
  background: rgba(18, 17, 15, 0.84);
}

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

:focus-visible {
  outline: 2px solid rgba(142, 117, 81, 0.88);
  outline-offset: 4px;
}

p,
h1,
ol {
  margin: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.15rem 1.4rem;
  transition:
    background-color 220ms ease,
    backdrop-filter 220ms ease,
    border-color 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: rgba(244, 240, 231, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 17, 15, 0.08);
}

.site-header__inner,
.section,
.site-footer {
  width: min(100% - 2.8rem, var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__name,
.brand__meta,
.site-nav,
.eyebrow,
.hero__index,
.hero__footer,
.manifesto__row span,
.section__eyebrow,
.site-footer {
  font-family: "SFMono-Regular", "SFMono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.brand__name,
.site-nav,
.eyebrow,
.hero__index,
.hero__footer,
.manifesto__row span,
.section__eyebrow,
.site-footer {
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__name {
  font-size: 0.8rem;
}

.brand__meta {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-nav a,
.text-link {
  position: relative;
}

.site-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  width: min(100% - 2.8rem, var(--content-width));
  min-height: 100svh;
  margin: 0 auto;
  padding:
    clamp(7.4rem, 12vw, 9rem)
    0
    clamp(2rem, 4vw, 2.6rem);
  display: grid;
  align-content: space-between;
  gap: 2rem;
}

.hero__rail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.hero__index,
.hero__footer,
.manifesto__row span,
.section__eyebrow {
  color: var(--muted);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.55fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.hero__titleblock {
  position: relative;
}

.hero__titleblock::before {
  content: "";
  position: absolute;
  left: calc(100% + clamp(1rem, 3vw, 2rem));
  top: 0.8rem;
  width: clamp(2rem, 8vw, 6rem);
  height: 1px;
  background: var(--line-strong);
  transform: translateY(calc(var(--hero-shift) * -0.35));
}

.hero h1 {
  display: grid;
  gap: 0.18rem;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.085em;
  font-size: clamp(4.8rem, 12vw, 10.5rem);
}

.hero h1 span {
  text-wrap: balance;
}

.hero__thesis {
  max-width: 19rem;
  padding-bottom: 0.55rem;
}

.hero__thesis p {
  font-size: clamp(1.12rem, 1.65vw, 1.38rem);
  line-height: 1.4;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-top: 1.45rem;
  color: var(--muted);
}

.hero__footer {
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.section {
  padding:
    clamp(4.5rem, 7vw, 6rem)
    0;
}

.manifesto {
  border-top: 1px solid rgba(18, 17, 15, 0.07);
}

.manifesto__row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.45fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.manifesto__row p {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section--contact {
  display: grid;
  gap: 1rem;
}

.contact__link {
  width: fit-content;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  border-bottom: 1px solid rgba(18, 17, 15, 0.2);
  padding-bottom: 0.14rem;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--accent);
  border-color: currentColor;
  transform: translateX(4px);
}

.disclaimer,
.error-page__copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.site-footer {
  padding:
    0
    0
    2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 640ms ease,
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.error-page {
  width: min(100% - 2.8rem, 46rem);
  margin: auto;
  padding:
    9rem
    0
    4rem;
  display: grid;
  gap: 1rem;
}

.error-page h1 {
  font-size: clamp(3.7rem, 10vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  font-weight: 400;
  max-width: 8ch;
}

.button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(18, 17, 15, 0.16);
  background: rgba(255, 255, 255, 0.2);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(18, 17, 15, 0.3);
  background: rgba(255, 255, 255, 0.36);
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__titleblock::before {
    display: none;
  }

  .hero__thesis {
    max-width: 24rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 1rem;
  }

  .site-header__inner,
  .section,
  .site-footer,
  .hero,
  .error-page {
    width: min(100% - 2rem, var(--content-width));
  }

  .site-header__inner {
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero__rail,
  .manifesto__row,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .manifesto__row {
    gap: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
