@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #fafaf7;
  --ink: #1a1a1a;
  --muted: #5a5a55;
  --rule: #e2e0d8;
  --accent: #1f5f5b;
  --accent-hover: #174b48;
  --accent-ink: #ffffff;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.16vw, 1.125rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

p,
ul,
ol {
  margin-block: 0 1.35em;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  letter-spacing: -0.012em;
}

.container {
  width: min(100% - (2 * var(--gutter)), 70rem);
  margin-inline: auto;
}

.reading-column {
  max-width: 42.5rem;
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  color: var(--accent-ink);
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.2rem;
}

.wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-copy {
  display: contents;
}

.hero-copy > * {
  grid-column: 1;
}

.hero .eyebrow {
  grid-row: 2;
  margin: 0 0 -1.75rem;
}

.hero h1 {
  grid-row: 3;
}

.hero-statement {
  grid-row: 4;
  margin: -0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
}

.hero-statement span {
  display: block;
}

.hero-intro {
  grid-row: 5;
  max-width: 42.5rem;
  margin: -0.5rem 0 0;
}

.hero .actions {
  grid-row: 6;
  margin-top: -0.75rem;
}

.hero-portrait {
  grid-row: 1;
  width: 10rem;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.text-link {
  display: inline;
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  text-decoration: underline;
}

.section {
  padding-block: 4rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}

.section p:last-child,
.section ul:last-child,
.section ol:last-child {
  margin-bottom: 0;
}

.questions-list {
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  counter-reset: questions;
}

.questions-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  margin-bottom: 1rem;
  counter-increment: questions;
}

.questions-list li::before {
  color: var(--accent);
  content: counter(questions, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.focus-areas {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.focus-areas strong {
  color: var(--ink);
}

.background-list,
.writing-list {
  padding-left: 1.2rem;
}

.background-list li,
.writing-list li {
  margin-bottom: 1rem;
  padding-left: 0.35rem;
}

.guide-card {
  display: grid;
  gap: 2rem;
  max-width: 57rem;
  margin-inline: auto;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.guide-cover {
  width: min(11.25rem, 58vw);
  margin-inline: auto;
}

.guide-cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 26px rgb(0 0 0 / 0.12);
}

.guide-copy {
  align-self: center;
}

.guide-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.guide-copy .button {
  text-align: center;
}

.writing-list {
  margin-top: 1.75rem;
  list-style: square;
}

.writing-list li::marker {
  color: var(--accent);
}

.contact-intro {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.email-link {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.06em;
}

.link-detail {
  color: var(--muted);
  font-weight: 400;
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 37.5rem) {
  .hero {
    padding-block: 5rem;
  }

  .section {
    padding-block: 5rem;
  }
}

@media (min-width: 56.25rem) {
  .hero {
    grid-template-columns: minmax(0, 3fr) minmax(17rem, 2fr);
    gap: 4rem;
    min-height: 42rem;
    padding-block: 6rem;
  }

  .hero-copy {
    display: block;
    grid-column: 1;
    align-self: center;
  }

  .hero-copy > * {
    grid-column: auto;
    grid-row: auto;
  }

  .hero .eyebrow {
    margin: 0 0 0.9rem;
  }

  .hero h1 {
    margin-bottom: 2rem;
  }

  .hero-statement {
    margin: 0 0 1.6rem;
  }

  .hero-intro {
    margin: 0 0 2rem;
  }

  .hero .actions {
    margin-top: 0;
  }

  .hero-portrait {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 22.5rem);
    align-self: center;
    justify-self: end;
  }

  .section {
    padding-block: 6rem;
  }

  .guide-card {
    grid-template-columns: 11.25rem minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem;
  }

  .guide-cover {
    width: 11.25rem;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    gap: 0.45rem 1rem;
  }

  .link-detail {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --ink: #eceae4;
    --muted: #a8a69e;
    --rule: #2e2d2a;
    --accent: #6fb3ac;
    --accent-hover: #92c7c2;
    --accent-ink: #141413;
  }

  .guide-cover img {
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.42);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button-primary {
    border: 2px solid ButtonText;
  }
}
