:root {
  color-scheme: light;
  --background: #f4f0e8;
  --surface: #fffdf8;
  --ink: #1c1b19;
  --muted: #716e67;
  --line: #d9d3c8;
  --accent: #ff4f1f;
  --accent-soft: #ffd2c3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(28 27 25 / 4%) 50%, transparent 50.1%),
    var(--background);
}

main {
  width: min(58rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 8rem) 0;
}

header {
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

a {
  position: relative;
  display: flex;
  min-height: 5.5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 3.25rem 1rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: padding-left 160ms ease, background-color 160ms ease;
}

a:nth-child(odd) {
  border-right: 1px solid var(--line);
}

a:nth-child(even) {
  padding-left: 1.25rem;
}

a::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted);
  content: "↗";
  font-size: 1.1rem;
  transition: color 160ms ease, transform 160ms ease;
}

a:hover,
a:focus-visible {
  padding-left: 1rem;
  background: var(--accent-soft);
  outline: none;
}

a:nth-child(even):hover,
a:nth-child(even):focus-visible {
  padding-left: 2.25rem;
}

a:hover::after,
a:focus-visible::after {
  color: var(--accent);
  transform: translate(0.2rem, -0.2rem);
}

a.primary {
  color: var(--surface);
  background: var(--ink);
}

a.primary small,
a.primary::after {
  color: #c8c4bb;
}

a.primary:hover,
a.primary:focus-visible {
  background: var(--accent);
}

a.primary:hover::after,
a.primary:focus-visible::after {
  color: var(--surface);
}

a span {
  font-size: 1.05rem;
  font-weight: 700;
}

a small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 38rem) {
  main {
    width: min(100% - 1.5rem, 32rem);
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 20vw, 5.5rem);
  }

  nav {
    grid-template-columns: 1fr;
  }

  a,
  a:nth-child(even) {
    padding-left: 0;
    border-right: 0;
  }

  a:hover,
  a:focus-visible,
  a:nth-child(even):hover,
  a:nth-child(even):focus-visible {
    padding-left: 1rem;
  }
}

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