@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #252820;
  --muted: #53564b;
  --forest: #243828;
  --rust: #a63f25;
  --rule: #cdc8ba;
  --display: "Instrument Serif", Georgia, serif;
  font-family: "DM Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--rust); }
a:focus-visible, input:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .99; margin: 0; text-wrap: balance; }
p { margin: 0; }
.shell { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; background: white; padding: .65rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; gap: 1rem; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; align-items: center; gap: .38rem; font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.wordmark .period { margin-left: -.31rem; }
.mark { display: inline-block; width: 1.45rem; height: 1.45rem; margin-right: .15rem; background: url('/desk-fit.svg') center / contain no-repeat; }
.period { color: var(--rust); }
.site-header nav { font-size: .92rem; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; margin-top: 2.25rem; min-height: clamp(27rem, 42vw, 38rem); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; padding: 2.5rem clamp(1rem, 3.6vw, 3.75rem) 2.5rem 0; }
.eyebrow { color: var(--rust); font-size: .875rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.hero h1 { font-size: clamp(4.1rem, 8.4vw, 8.1rem); letter-spacing: -.04em; }
.hero-copy > p:not(.eyebrow) { max-width: 34ch; color: var(--muted); font-size: clamp(1.04rem, 1.65vw, 1.27rem); }
.hero-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 55% 54%; background: #cfbea7; }
.button { display: inline-block; padding: .78rem 1.19rem; color: var(--paper); background: var(--forest); font-weight: 700; font-size: .95rem; text-decoration: none; }
.button:hover { color: white; background: #36513b; }
.home-guide { margin: 3.4rem 0; padding: 2.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-block: 1px solid var(--rule); }
.home-guide h2, .article-body h2 { font-size: clamp(2.55rem, 5vw, 4.15rem); letter-spacing: -.018em; }
.home-guide :is(h2,p:not(.eyebrow)) { margin-top: .57rem; }
.home-guide p:not(.eyebrow), .article-body > section > p { max-width: 65ch; }
.text-link { font-weight: 700; color: var(--forest); }
.home-guide .text-link { flex-shrink: 0; }
.guide-hero { min-height: clamp(25rem, 37vw, 32rem); }
.guide-hero h1 { font-size: clamp(3.8rem, 6.85vw, 6.55rem); }
.article-grid { display: grid; grid-template-columns: minmax(10rem, .38fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin: 4.5rem 0 3.5rem; align-items: start; }
.contents { display: grid; gap: .68rem; position: sticky; top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); }
.contents a { font-weight: 600; width: fit-content; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.article-body { display: grid; gap: 3rem; max-width: 53rem; }
.article-body > section > p { margin-top: 1rem; }
.fit-check { min-width: 0; margin: 1.65rem 0 0; padding: 1.12rem 1.2rem 1.2rem; border: 1px solid var(--rule); background: #efece2; }
.fit-check legend { padding-inline: .5rem; font-weight: 700; }
.fit-check label { display: flex; align-items: flex-start; gap: .75rem; padding: .66rem 0; cursor: pointer; }
.fit-check input { flex: 0 0 1.15rem; height: 1.15rem; margin: .19rem 0 0; accent-color: var(--forest); }
.fit-check strong { display: block; }
.fit-check .note { margin: .55rem 0 0 1.9rem; }
.note { font-size: .92rem; color: var(--muted); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.option { border-top: 2px solid var(--forest); background: #eeeee5; padding: 1.22rem; display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.option h3 { font-size: clamp(1.85rem, 3vw, 2.45rem); }
.option .text-link { margin-top: auto; }
.route { margin: 1rem 0 0; padding-left: 1.45rem; }
.route li + li { margin-top: .6rem; }
.site-footer { padding-block: 1.2rem 2.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-size: .94rem; }
.site-footer a { color: var(--forest); font-weight: 700; }

@media (max-width: 49rem) {
  .shell { width: min(100% - 2rem, 36rem); }
  .site-header { min-height: 4.25rem; }
  .hero, .article-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 0; min-height: 0; }
  .hero-copy { padding: 2.7rem 0 2rem; gap: 1rem; }
  .hero h1 { font-size: clamp(3.55rem, 11vw, 5rem); }
  .hero-image { height: auto; aspect-ratio: 3 / 2; }
  .article-grid { gap: 2rem; margin-top: 2rem; }
  .contents { position: static; }
  .home-guide { flex-direction: column; align-items: flex-start; gap: .9rem; margin: 2.5rem 0 1.5rem; }
}

@media (max-width: 32rem) {
  .options { grid-template-columns: 1fr; }
}
