:root {
  --bg: #f3efe6;
  --ink: #1c1916;
  --muted: #5e574c;
  --line: #ddd4c6;
  --card: #fffdf8;
  --link: #1a4b86;
  --focus: #1a4b86;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.top,
main {
  width: min(1040px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0 0.5rem;
}

.mark {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2.75rem;
  align-items: center;
  padding: 2.25rem 0 3.5rem;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.hero-copy p {
  max-width: 38rem;
  margin: 0;
}

.hero-mail {
  margin-top: 1.15rem !important;
  font-weight: 600;
}

section {
  padding: 2.4rem 0 2.6rem;
  border-top: 1px solid var(--line);
}

.lead {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  color: var(--muted);
}

.rows,
.earlier,
.social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.rows li:first-child {
  border-top: 0;
  padding-top: 0;
}

.rows li > :first-child {
  font-weight: 600;
}

.tools li {
  grid-template-columns: 12.5rem 1fr auto;
  align-items: baseline;
}

.tools .spacer {
  width: 2.2rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.3rem 1.15rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.card-title h3 {
  margin: 0;
}

.card-title img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: block;
}

.card p {
  margin: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.9rem !important;
  font-weight: 600;
}

.earlier li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.earlier li:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.open-mail {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.open-mail a {
  color: var(--ink);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .top {
    flex-direction: column;
    gap: 0.7rem;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .cards,
  .rows li,
  .tools li {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1.4rem;
    padding-top: 1.4rem;
  }

  .hero img {
    width: min(100%, 320px);
  }

  .tools .spacer {
    display: none;
  }
}
