:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --surface: #fffdf7;
  --ink: #182d26;
  --muted: #4f5d54;
  --green: #26483a;
  --clay: #993f2c;
  --line: #d9d4c8;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(1240px, calc(100% - 2 * clamp(1.15rem, 5.4vw, 5rem))); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 1; padding: .7rem 1rem; background: var(--surface); }

.masthead {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  font: 700 clamp(1.38rem, 3.2vw, 1.85rem)/1 var(--serif);
  text-decoration: none;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.wordmark-name > span { color: var(--clay); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .16rem;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: .4rem .4rem .4rem .12rem;
  background: var(--green);
  box-shadow: .22rem .22rem 0 var(--clay);
}
.brand-mark i { display: block; width: .18rem; height: .58rem; border-radius: 99px; background: var(--surface); }
.brand-mark i:nth-child(2) { height: 1.05rem; }
.brand-mark i:nth-child(3) { height: .76rem; }
.masthead nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.4rem); }
.masthead nav a { white-space: nowrap; font-size: .88rem; font-weight: 650; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  min-height: min(620px, 80vh);
  padding-block: clamp(2rem, 5vw, 4.1rem);
  gap: clamp(1.7rem, 5vw, 5.8rem);
}
.kicker { margin-bottom: 1.4rem; color: var(--clay); font-size: .84rem; font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); }
h1 { max-width: 10.5ch; font-size: clamp(2.6rem, 5.5vw, 5.65rem); font-weight: 500; line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
.lede { max-width: 36ch; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.button {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  border: 1px solid var(--green);
  margin-top: 1.8rem;
  padding: .78rem 1.05rem;
  min-height: 46px;
  border-radius: .35rem;
  background: var(--green);
  color: var(--surface);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.button:hover { background: #1b382d; }
.button span { font-size: 1.12rem; line-height: 1; }
.hero-photo { align-self: center; min-width: 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.36;
  object-fit: cover;
  border-radius: .45rem 6rem .45rem .45rem;
  background: #ded4bf;
}
.hero-photo figcaption { display: flex; align-items: baseline; gap: .55rem; margin-top: .8rem; font-size: .76rem; color: var(--muted); }
.caption-dot { width: .4rem; height: .4rem; flex: 0 0 .4rem; border-radius: 50%; background: var(--clay); }

.guides { padding-block: clamp(2.2rem, 5vw, 4.6rem); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(14rem, 27rem); align-items: end; gap: 1rem 3rem; }
h2 { font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.55rem); line-height: 1.08; letter-spacing: -.055em; }
.section-heading p { color: var(--muted); max-width: 43ch; }
.filters { display: flex; flex-wrap: wrap; gap: .52rem; margin-block: 1.45rem 1.1rem; }
.filter {
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  min-height: 39px;
  padding: .35rem 1rem;
  font-size: .84rem;
  font-weight: 680;
}
.filter:hover { border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); color: var(--surface); border-color: var(--green); }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); align-items: start; margin-top: 1rem; }
.guide { border: 1px solid var(--line); border-radius: .55rem; background: var(--surface); }
.guide-photo {
  aspect-ratio: 4 / 3;
  border-radius: .5rem .5rem 0 0;
  background-image: url('/assets/guides.webp');
  background-size: 200% 200%;
  background-repeat: no-repeat;
  background-color: #d9d5c5;
}
.photo-desk { background-position: left top; }
.photo-travel { background-position: right top; }
.photo-light { background-position: left bottom; }
.photo-kitchen { background-position: right bottom; }
.guide-copy { padding: 1.05rem; }
.guide-category { color: var(--clay); font-size: .74rem; font-weight: 740; }
h3 { margin-block: .35rem .55rem; font-size: clamp(1.28rem, 1.85vw, 1.63rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 600; }
.guide-copy > p:not(.guide-category), details p { color: var(--muted); font-size: .88rem; }
details { margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .6rem; }
summary { cursor: pointer; min-height: 34px; font-weight: 700; font-size: .84rem; }
summary:hover { text-decoration: underline; }
details p { margin-block: .6rem; }

.principles {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 2rem clamp(2rem, 6vw, 5.5rem);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.4rem);
}
.principles p { max-width: 42ch; margin-top: .9rem; color: var(--muted); }
.principles dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 0; align-self: end; }
.principles dl div { border-top: 2px solid var(--green); padding-top: .7rem; }
.principles dt { font-weight: 750; }
.principles dd { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 90px; color: var(--muted); font-size: .83rem; }
.footer span { font-weight: 700; }

.connection { min-height: 55vh; padding-block: clamp(2rem, 7vw, 6rem); }
.connection h1 { max-width: none; font-size: clamp(2.25rem, 6vw, 4.2rem); }
.connection p { margin-top: 1.35rem; max-width: 48ch; color: var(--muted); }
.downloads { padding-left: 1.3rem; }
.downloads li { margin-top: .65rem; }
.connection a:hover, .footer a:hover { color: var(--clay); }

@media (max-width: 960px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
  .hero-photo img { border-top-right-radius: 4rem; }
}

@media (max-width: 640px) {
  .masthead { min-height: 65px; }
  .masthead nav a { font-size: .8rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 12ch; }
  .kicker { margin-bottom: .8rem; }
  .lede { margin-top: 1rem; }
  .button { margin-top: 1.15rem; }
  .hero-photo figcaption { font-size: .74rem; }
  .section-heading, .principles { grid-template-columns: 1fr; }
  .principles dl { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .guide-grid { grid-template-columns: 1fr; }
  .masthead nav { gap: .7rem; }
}
