@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --ink: #1a1d23;
  --muted: #5c6570;
  --line: #e6e8ec;
  --font: "Figtree", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

#main:focus {
  outline: none;
}

#work,
#start,
#about,
#write {
  scroll-margin-top: 5.5rem;
}

.wrap {
  width: min(56rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.25rem;
  min-height: 4.25rem;
  padding-block: 0.35rem;
}

.brand {
  margin-right: auto;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.1rem;
  width: 100%;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.nav a.nav-mail {
  color: var(--ink);
  font-weight: 650;
}

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

.kicker {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 3.7rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  max-width: 11em;
}

.lede {
  margin-top: 1.35rem;
  max-width: 36rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c313a;
}

.cta-block {
  margin-top: 1.85rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
}

.cta:hover {
  background: #32363e;
}

.note {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}

.note a {
  width: fit-content;
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.section {
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.intro,
.letter {
  margin-top: 1rem;
  max-width: 38rem;
}

.letter p + p {
  margin-top: 1rem;
}

.points,
.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.points li + li,
.steps li + li {
  margin-top: 1.6rem;
}

.points h3,
.steps h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.points p,
.steps p {
  margin-top: 0.35rem;
  max-width: 38rem;
  color: #2c313a;
}

.steps {
  display: grid;
  gap: 1.6rem;
}

.close {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.close p {
  margin-top: 0.9rem;
  max-width: 36rem;
  color: #2c313a;
}

.email {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.email:hover {
  color: #32363e;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.4rem 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

::selection {
  background: #d9dee8;
  color: var(--ink);
}

@media (min-width: 720px) {
  .nav {
    width: auto;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }

  .steps li + li {
    margin-top: 0;
  }
}

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

@media (forced-colors: active) {
  .cta {
    border: 1px solid ButtonText;
  }
}

@media print {
  .bar {
    position: static;
  }

  .cta {
    background: #fff;
    color: #000;
    border: 1px solid #000;
  }
}
