:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --paper-soft: #ededdf;
  --ink: #171916;
  --ink-muted: #62665d;
  --line: rgba(23, 25, 22, 0.12);
  --accent: #356a5a;
  --accent-soft: rgba(53, 106, 90, 0.14);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 42%),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

.field,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.field {
  z-index: 0;
  opacity: 0.54;
}

.grain {
  z-index: 1;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(23, 25, 22, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 56%, rgba(23, 25, 22, 0.1) 0 1px, transparent 1px);
  background-size: 32px 32px, 43px 43px;
  animation: grain-shift 18s steps(4, end) infinite;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  padding: clamp(20px, 3vw, 42px);
}

.page-shell::before {
  position: absolute;
  inset: clamp(14px, 2.1vw, 28px);
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  content: "";
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  align-self: start;
  min-width: 0;
  font-size: 13px;
}

.wordmark,
.quiet-link,
.mail-link {
  position: relative;
  width: fit-content;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 560;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 25, 22, 0.22);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.quiet-link {
  color: var(--ink-muted);
  transition: color 220ms ease;
}

.quiet-link::after,
.mail-link::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: currentColor;
  content: "";
  transition: transform 280ms ease;
}

.quiet-link:hover,
.mail-link:hover {
  color: var(--ink);
}

.quiet-link:hover::after,
.mail-link:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.36fr);
  gap: clamp(32px, 6vw, 88px);
  align-self: center;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 110px) clamp(4px, 1vw, 12px);
}

.hero-copy {
  animation: reveal-up 900ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 620;
  line-height: 1.4;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 10vw, 148px);
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.summary {
  max-width: 620px;
  margin: clamp(24px, 3vw, 38px) 0 0;
  color: var(--ink-muted);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.45;
}

.contact-block {
  display: grid;
  gap: 14px;
  max-width: 340px;
  padding-left: clamp(0px, 2vw, 26px);
  border-left: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  animation: reveal-up 900ms 140ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.mail-link {
  color: var(--ink);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 540;
  overflow-wrap: anywhere;
}

.contact-block p {
  margin: 0;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grain-shift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(2px, -1px, 0);
  }

  50% {
    transform: translate3d(-1px, 2px, 0);
  }

  75% {
    transform: translate3d(1px, 1px, 0);
  }
}

@media (max-width: 820px) {
  .page-shell {
    min-height: 100svh;
    padding: 18px;
  }

  .page-shell::before {
    inset: 10px;
  }

  .site-header {
    font-size: 12px;
  }

  .wordmark span:last-child {
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 42px;
    min-height: calc(100svh - 104px);
    padding: 42px 10px 28px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(54px, 17vw, 86px);
  }

  .summary {
    max-width: 30rem;
  }

  .contact-block {
    max-width: none;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 460px) {
  .quiet-link {
    display: none;
  }

  .mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 66px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
