:root {
  --bg: #f4f2ec;
  --fg: #161615;
  --muted: #6e6c66;
  --line: #d9d5cc;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  background: var(--bg);
}

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

a:hover {
  color: var(--muted);
}

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

.frame {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.5rem)
    clamp(1.25rem, 3vw, 2rem);
}

.top,
.bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.mark,
.contact,
.bottom p {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mark {
  color: var(--fg);
}

.contact,
.bottom p {
  color: var(--muted);
}

.contact {
  text-underline-offset: 0.28em;
}

.contact:hover {
  color: var(--fg);
  text-decoration: underline;
}

.lede a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.lede a:hover {
  color: var(--muted);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8vh 0 12vh;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.25rem, 16vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

h1 span {
  display: block;
}

.lede {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 22rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--muted);
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

@media (max-width: 640px) {
  .hero {
    justify-content: center;
    padding: 0;
  }

  h1 {
    font-size: clamp(3.75rem, 22vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .lede {
    animation: rise 0.9s ease both;
  }

  .lede {
    animation-delay: 0.12s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
