@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f6f2e9;
  --hero: #ece6d8;
  --ink: #27271f;
  --muted: #514f43;
  --clay: #883e2a;
  --clay-dark: #713322;
  --olive: #323a2c;
  --cream: #f8f0df;
  --line: #d4ccbd;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}

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

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

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 5px;
}

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

.wrap {
  width: min(100% - 7.5rem, 90rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  padding: 0.75rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-header {
  min-height: 6.125rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font: 700 0.9375rem/1.06 var(--body);
  letter-spacing: -0.025em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 2.375rem;
  height: 2.375rem;
  place-items: center;
  background: var(--clay);
  color: var(--cream);
}

.brand-mark::before {
  content: "";
  position: absolute;
  bottom: 0.61rem;
  width: 0.83rem;
  height: 0.65rem;
  border: 1px solid currentColor;
  border-top: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 0.68rem;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.05vw, 2.875rem);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav a,
.back-to-top {
  text-underline-offset: 0.24em;
}

.site-nav a:hover,
.back-to-top:hover {
  text-decoration: underline;
}

.nav-start,
.back-to-top {
  color: var(--clay);
}

.nav-start span,
.back-to-top span {
  margin-inline-start: 0.25em;
}

.hero {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  min-height: clamp(33rem, 47vw, 43rem);
  background: var(--hero);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6.15vw, 6.25rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-block-end: 1.4rem;
  color: var(--clay);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.75rem;
  border-top: 1px solid currentColor;
}

.hero h1,
.section-heading h2,
.start h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero h1 {
  font-size: clamp(3.45rem, 7.25vw, 7.2rem);
  line-height: 0.85;
}

.hero h1 em {
  display: block;
  margin-block-start: 0.085em;
  color: var(--clay);
  font-weight: 400;
}

.hero-intro {
  max-width: 24rem;
  margin-block: 1.65rem 1.85rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.125rem);
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.65rem;
  min-height: 3.2rem;
  padding: 0.8rem 1.05rem 0.8rem 1.2rem;
  background: var(--clay);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 160ms ease;
}

.primary-link:hover {
  background: var(--clay-dark);
}

.primary-link span {
  font-size: 1.05rem;
}

.hero-picture {
  display: block;
  grid-column: 2;
  position: relative;
  min-width: 0;
  background: #b0a18a;
}

.hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 48%;
}

.inspiration {
  padding-block: clamp(3.75rem, 7.8vw, 7.75rem) clamp(4rem, 8vw, 8rem);
  scroll-margin-block-start: 2rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  margin-block-end: 1.85rem;
}

.section-heading h2,
.start h2 {
  font-size: clamp(3rem, 5.45vw, 5.65rem);
  line-height: 0.97;
}

.section-heading p {
  max-width: 21rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2.1vw, 2rem);
}

.guide-card {
  border-bottom: 1px solid var(--line);
}

.guide-card summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.guide-card summary::-webkit-details-marker {
  display: none;
}

.guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ded2bd;
  transition: filter 160ms ease;
}

.guide-card summary:hover img {
  filter: brightness(1.06);
}

.guide-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem 0.5rem;
  padding-block: 1.05rem 1.25rem;
}

.guide-category {
  grid-column: 1 / -1;
  color: var(--clay);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-title {
  font: 400 clamp(1.7rem, 2.8vw, 2.8rem)/1 var(--display);
  letter-spacing: -0.015em;
}

.guide-toggle {
  display: grid;
  position: relative;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--clay);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.guide-toggle::before,
.guide-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 0.6rem;
  border-top: 1px solid currentColor;
}

.guide-toggle::after {
  transform: rotate(90deg);
}

.guide-card[open] .guide-toggle::after {
  display: none;
}

.guide-card summary:hover .guide-toggle {
  border-color: var(--clay);
  background: var(--clay);
  color: white;
}

.guide-body {
  padding: 0 1rem 1.25rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.guide-body p + p {
  margin-block-start: 0.7rem;
}

.start {
  background: var(--olive);
  color: var(--cream);
}

.start-inner {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: start;
  gap: clamp(2.75rem, 6.25vw, 7rem);
  padding-block: clamp(3.5rem, 7.5vw, 7.5rem);
}

.start-intro > p {
  margin-block-start: 1.35rem;
  max-width: 19rem;
  color: #e0d8c5;
}

.start h2 em {
  color: #e7c6a6;
  font-weight: 400;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding: 1.05rem 0 1.15rem;
  border-top: 1px solid #687061;
  counter-increment: steps;
}

.steps li:last-child {
  border-bottom: 1px solid #687061;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  padding-block-start: 0.2em;
  color: #e7c6a6;
  font-size: 0.75rem;
  font-weight: 600;
}

.steps h3 {
  font-size: 1.04rem;
  font-weight: 600;
}

.steps p {
  margin-block-start: 0.24rem;
  color: #e0d8c5;
  font-size: 0.875rem;
}

.site-footer {
  min-height: 7rem;
  padding-block: 1.375rem;
}

.back-to-top {
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 3rem);
  }

  .site-header {
    min-height: 5rem;
  }

  .hero {
    min-height: 29rem;
  }

  .hero-copy {
    padding: 2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 7.3vw, 5.1rem);
  }

  .guide-heading {
    align-items: start;
  }

  .section-heading p {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .site-header {
    min-height: 4.5rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .brand-mark {
    width: 2.125rem;
    height: 2.125rem;
  }

  .brand-mark::before {
    bottom: 0.48rem;
  }

  .brand-mark::after {
    top: 0.58rem;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.75rem;
  }

  .nav-start span {
    display: none;
  }

  .hero {
    display: block;
  }

  .hero-copy {
    padding: 2.65rem clamp(1.45rem, 6vw, 2rem) 2.45rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 12vw, 5.8rem);
  }

  .kicker {
    margin-block-end: 1.15rem;
  }

  .hero-intro {
    margin-block: 1.35rem 1.5rem;
  }

  .hero-picture {
    aspect-ratio: 4 / 3;
  }

  .hero-picture img {
    object-position: 55% 46%;
  }

  .guide-grid,
  .start-inner {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    gap: 1.6rem;
  }

  .guide-title {
    font-size: 2.1rem;
  }

  .start-inner {
    gap: 2rem;
  }
}

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