@font-face {
  font-family: Source Serif;
  src: url(serif.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  --bg: #f8f4e9;
  --fg: #272b27;
  --accent: #8c392c;
  --well: #e8dcc7;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.55 system-ui,
    sans-serif;
}
body.midnight {
  --bg: #17222c;
  --fg: #f6f2eb;
  --accent: #ffbc8d;
  --well: #283845;
}
body.garden {
  --bg: #f2f4e9;
  --fg: #223a31;
  --accent: #375f47;
  --well: #d7e2cf;
}
header,
main {
  width: min(100% - 48px, 1100px);
  margin: auto;
}
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid currentColor;
}
header > a {
  font:
    700 1.32rem "Source Serif",
    Georgia,
    serif;
  color: inherit;
  text-decoration: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
a {
  color: var(--accent);
  text-underline-offset: 0.25em;
}
nav a {
  font-size: 0.85rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 7%;
  padding: clamp(36px, 6vw, 88px) 0;
  border-bottom: 1px solid currentColor;
}
.hero:not(:has(figure)) {
  display: block;
}
.hero div {
  max-width: 50em;
}
h1,
h2 {
  font-family: "Source Serif", Georgia, serif;
  font-weight: 530;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.25rem, 7.5vw, 7rem);
  margin: 0 0 0.3em;
}
.hero p {
  font-size: clamp(1.05rem, 1.75vw, 1.4rem);
  max-width: 39em;
}
p {
  white-space: pre-line;
  text-wrap: pretty;
}
figure {
  margin: 0;
  background: var(--well);
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 42px);
}
figure img {
  display: block;
  max-width: 100%;
  height: clamp(175px, 25vw, 330px);
  object-fit: contain;
  box-shadow: 3px 7px 14px #2117053c;
  transform: rotate(-3deg);
}
.sections {
  padding-bottom: 4rem;
}
.sections section {
  padding: 2.5rem 0;
  display: flex;
  gap: 5%;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 32%, transparent);
}
.sections section > div {
  max-width: 48rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0;
}
.sections figure img {
  height: 160px;
}
.sections a {
  font-weight: 600;
}
.studio .hero h1 {
  font-family: system-ui, sans-serif;
  font-weight: 760;
  letter-spacing: -0.065em;
}
.guide .sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.guide .sections section {
  display: block;
}
.guide .sections figure {
  margin-bottom: 1.25rem;
}
@media (max-width: 620px) {
  header,
  main {
    width: calc(100% - 36px);
  }
  header {
    padding: 15px 0;
    align-items: center;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero figure img {
    height: 220px;
  }
  .sections section {
    display: block;
  }
  .sections figure {
    margin-bottom: 1rem;
  }
  .guide .sections {
    grid-template-columns: 1fr;
    gap: 0;
  }
  h1 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
