:root {
  --ink: #1b1714;
  --sand: #f3ecdf;
  --sand-2: #f6f0e6;
  --paper: #fffaf3;
  --olive: #2c3826;
  --olive-deep: #1e291c;
  --dirt: #6e2a16;
  --haze: #f0c892;
  --cream: #f4efe4;
  --line: rgba(27, 23, 20, 0.14);
  --font-serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: Outfit, "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: min(44rem, calc(100% - 2.5rem));
  --wide: min(62rem, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 4.5rem;
}

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

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

p {
  margin: 0 0 1.05rem;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

a {
  color: var(--dirt);
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

:focus {
  outline: none;
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 236, 223, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar {
  width: var(--wide);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem 1.25rem;
  padding-block: 0.45rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--dirt);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(27, 23, 20, 0.18);
  border-radius: 50%;
  object-fit: cover;
  background: var(--haze);
}

.site-header nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.15rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--dirt);
}

.cover {
  margin: 0;
  background: #c57a3c;
}

.cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1640 / 624;
  object-fit: cover;
  object-position: 78% center;
}

.home {
  padding: 2.6rem 0 3.4rem;
}

.intro {
  width: var(--wide);
  display: grid;
  gap: 1.8rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.lede {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.6;
}

.shot {
  margin: 0;
  padding: 0.45rem;
  background: var(--paper);
  border: 1px solid rgba(27, 23, 20, 0.16);
  box-shadow: 0 10px 28px rgba(80, 50, 20, 0.1);
}

.portrait {
  width: min(100%, 18rem);
  margin-inline: auto;
}

.days {
  width: var(--wide);
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

.bench-shot {
  width: min(var(--wide), 36rem);
  margin: 0 auto 3rem;
}

.notes-home {
  padding-top: 0.4rem;
}

.notes-intro,
.notes-more {
  max-width: 38rem;
}

.notes-more {
  margin: 1.4rem 0 0;
}

.note-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  margin: 0;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.note-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.note-list h2,
.note-list h3 {
  font-size: 1.4rem;
}

.note-list h2 a,
.note-list h3 a {
  color: var(--ink);
  text-decoration: none;
}

.note-list h2 a:hover,
.note-list h3 a:hover {
  color: var(--dirt);
  text-decoration: underline;
}

.note-list p:last-child {
  margin-bottom: 0;
}

.note-date {
  margin: 0 0 0.2rem;
  color: var(--dirt);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
}

.kicker a {
  color: var(--dirt);
  text-decoration: none;
}

.kicker a:hover {
  text-decoration: underline;
}

.page {
  padding: 2.4rem 0 3.6rem;
  scroll-margin-top: 4.5rem;
}

.page-head {
  margin-bottom: 2rem;
}

.page-head h1,
.note-head h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
}

.note-head {
  margin-bottom: 1.4rem;
}

.note-hero {
  margin: 0 0 1.5rem;
}

.note-copy {
  font-size: 1.15rem;
}

.note-copy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.email {
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.email:hover {
  color: var(--dirt);
  text-decoration: underline;
}

@media (max-width: 759px) {
  :root {
    --wrap: min(44rem, calc(100% - 1.6rem));
    --wide: min(62rem, calc(100% - 1.6rem));
  }

  .cover img {
    height: 16.5rem;
    aspect-ratio: auto;
    object-position: 84% 42%;
  }

  .home {
    padding-top: 1.8rem;
  }
}

@media (min-width: 760px) {
  .home {
    padding: 3.2rem 0 4.4rem;
  }

  .intro {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
  }

  .portrait {
    width: 100%;
    max-width: 20rem;
    margin-inline: 0;
    justify-self: end;
  }

  .days {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.6rem;
    align-items: center;
    margin-bottom: 2.8rem;
  }

  .bench-shot {
    margin-bottom: 3.6rem;
  }

  .page {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
  }
}

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