:root {
  color-scheme: light;
  --cream: #faf6ef;
  --red: #84372e;
  --red-dark: #60271f;
  --ink: #302b26;
  --line: #d7c9bb;
  --linen: #efe4d5;
  --olive: #363d2e;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 1.125rem/1.65 Arial, Helvetica, sans-serif;
}
main { flex: 1; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--olive); font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
li + li { margin-top: .3rem; }

.skip-link { position: fixed; z-index: 3; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 83rem;
  margin: auto;
  padding: .55rem clamp(1rem, 3vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { flex: 0 0 clamp(7.5rem, 11vw, 10rem); }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .45rem; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .55rem .45rem; font-size: 1rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-decoration-thickness: .12em; }
.menu-toggle { display: none; }
.hero {
  display: grid;
  place-content: center;
  gap: .5rem;
  min-height: 14rem;
  padding: 2.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--linen);
  text-align: center;
}
.hero.projects {
  background: linear-gradient(#251c16b8, #251c16c9), url("images/yarn-wall-bg02.jpg") center / cover, var(--olive);
}
.hero.projects h1, .hero.projects p { color: white; }
.hero h1, .hero p { margin: 0; }
.hero p { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.page-body, .gallery, .article { max-width: 76rem; margin: auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.1rem, 4vw, 2.5rem); }
.page-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.copy > :first-child, .article > :first-child { margin-top: 0; }
.copy p, .copy ul { margin-bottom: 1.1rem; }
.photos { display: grid; gap: 1.2rem; justify-items: center; }
.photos img { width: 100%; border-radius: 1rem; }
.photos img.is-portrait { width: min(100%, 24rem); }
.email-link { display: inline-block; font-weight: 700; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }
.gallery a:hover img { filter: brightness(.94); }
dialog {
  width: min(94vw, 62rem);
  max-height: 94vh;
  border: 0;
  border-radius: 1rem;
  padding: 1rem;
  background: var(--cream);
  color: var(--ink);
}
dialog::backdrop { background: #1e110ee8; }
dialog img { margin: .75rem auto; max-height: 72vh; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
button {
  padding: .5rem .75rem;
  border: 1px solid var(--red);
  border-radius: .5rem;
  background: var(--cream);
  color: var(--red);
  font: inherit;
  cursor: pointer;
}
button:hover { background: white; }
.article { width: 100%; max-width: 52rem; }
.site-footer { background: var(--olive); text-align: center; padding: 1.25rem; color: var(--cream); font-size: 1rem; }
.site-footer a { color: var(--cream); }
.site-footer a:focus-visible { outline-color: var(--cream); }
.site-footer p { margin: 0; }

@media (max-width: 58rem) {
  .header-inner { flex-wrap: wrap; }
  .has-js .menu-toggle { display: block; margin-left: auto; font-size: 1rem; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: flex-start; }
}
@media (max-width: 43rem) {
  .site-header { position: relative; }
  .page-body { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-hero {
  background: linear-gradient(110deg, #f7e1d3, #e9b79f);
}
.feature, .start, .project-preview {
  width: min(100%, 83rem);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.15rem, 4vw, 3.75rem);
}
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.feature h1 {
  margin: .3rem 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.65rem, 5.35vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.feature h1 em { color: var(--red); }
.feature-copy > p { max-width: 35rem; }
.location {
  color: var(--red);
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.action {
  display: inline-block;
  padding: .65rem 1.05rem;
  border: 1px solid var(--red);
  border-radius: .5rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.action:hover { background: var(--linen); }
.action.primary { background: var(--red); color: white; }
.action.primary:hover { background: var(--red-dark); }
.feature-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--olive);
  color: var(--cream);
}
.feature-photo img { width: 100%; aspect-ratio: 1.1; object-fit: cover; }
.feature-photo figcaption { padding: .55rem 1rem; font-size: .9rem; }
.start { border-top: 1px solid var(--line); }
.start-intro { max-width: 44rem; }
.start h2, .project-preview h2, .info-panel h2 { margin-top: 0; }
.start-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.start-options article, .info-panel { padding: clamp(1rem, 3vw, 1.75rem); background: var(--linen); border-radius: .8rem; }
.start-options h3 { margin: 0; font-size: 1.65rem; }
.start-options a, .project-preview a, .gallery-next a { font-weight: 700; }
.project-preview { display: grid; grid-template-columns: minmax(13rem, .65fr) minmax(0, 1.35fr); gap: 2rem; align-items: center; border-top: 1px solid var(--line); }
.project-samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.project-samples img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: .65rem; }
.schedule { margin-bottom: 1.5rem; }
.schedule div { display: grid; grid-template-columns: minmax(6rem, .7fr) minmax(0, 1.3fr); gap: .6rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.schedule dt { color: var(--red); font-weight: 700; }
.schedule dd { margin: 0; }
.questions details { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.questions summary { color: var(--olive); font-weight: 700; cursor: pointer; }
.gallery-next { padding: 0 1rem 2.5rem; text-align: center; }

@media (max-width: 46rem) {
  .feature, .project-preview, .start-options { grid-template-columns: 1fr; }
  .feature h1 { max-width: 16ch; }
  .feature-photo img { aspect-ratio: 4 / 3; }
}
