:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #242e2a;
  --secondary: #48544c;
  --rule: #aab1a6;
  --accent: #804e3a;
  --display: Georgia, serif;
  --body: "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.55 var(--body);
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #a94421; outline-offset: 4px; }
a:hover { text-decoration: underline; }
[id] { scroll-margin-top: 1.5rem; }
.page { width: min(100%, 100rem); margin-inline: auto; padding-inline: clamp(1.2rem, 4.2vw, 4.7rem); }
.skip { position: absolute; top: .45rem; left: .45rem; z-index: 2; padding: .55rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.masthead, .edition, figcaption, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { min-height: 5.3rem; padding-block: .7rem; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.wordmark > span:last-child { font: clamp(1.5rem, 2vw, 2rem)/1.1 var(--display); letter-spacing: -.045em; }
.wordmark em { color: var(--accent); font-size: .86em; }
.wordmark small {
  display: block;
  margin-top: .22rem;
  font: 600 .77rem/1.1 var(--body);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.seam-mark { display: flex; align-items: center; gap: 3px; width: 2.1rem; height: 2.2rem; }
.seam-mark i { display: block; border: solid var(--ink); border-width: 1.7px 1.7px 0 0; width: .52rem; height: 1.7rem; transform: skewY(-37deg); }
.seam-mark i:nth-child(2) { height: 2.1rem; }
.masthead nav { display: flex; gap: clamp(1rem, 2.8vw, 3rem); align-items: center; }
.masthead nav a { padding-block: .5rem; font-size: .93rem; text-decoration: none; }
.masthead nav a:hover, .wordmark:hover { text-decoration: underline; }
.masthead nav a:last-child { border-bottom: 1px solid var(--accent); }

.edition, figcaption, .eyebrow {
  color: var(--secondary);
  font-size: .8rem;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.edition { align-items: baseline; padding-top: clamp(1.75rem, 3.6vw, 3.4rem); }
.edition p:first-child > span { margin-inline: .55rem; color: var(--accent); }
.edition p:last-child { text-align: right; }
.hero-intro { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(14rem, 1fr); align-items: end; gap: 2rem; padding-block: clamp(1.45rem, 2.2vw, 2.2rem) clamp(2.15rem, 3.2vw, 3.2rem); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.061em; text-wrap: balance; }
h1 em, h2 em { font-weight: 400; }
h1 { font-size: clamp(3.5rem, 6.8vw, 6.85rem); line-height: 1.05; }
.introduction { max-width: 22rem; justify-self: end; }
.introduction p { max-width: 36ch; }
.text-link { display: inline-block; margin-top: .7rem; color: var(--accent); font-weight: 600; text-decoration-thickness: 1px; }
.photo-frame { width: 100%; height: clamp(18rem, 33vw, 34rem); background: #deded3; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
figcaption { padding-block: .85rem; border-bottom: 1px solid var(--rule); }
figcaption span:last-child { text-align: right; }

.material-section, .detail-section, .estimate {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
  border-bottom: 1px solid var(--rule);
}
.eyebrow { margin-bottom: 1.4rem; color: var(--accent); }
h2 { max-width: 13ch; font-size: clamp(2.7rem, 4.7vw, 4.5rem); line-height: 1.06; }
h3 { font: 400 1.6rem/1.2 var(--display); letter-spacing: -.035em; }
.material-list { max-width: 40rem; }
.material-list article + article { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.material-list p { margin-top: .45rem; }
.detail-copy > p, .guide > p:first-child { max-width: 40ch; font: 400 clamp(1.35rem, 2vw, 1.9rem)/1.35 var(--display); letter-spacing: -.025em; }
.detail-copy dl { margin-top: 1.75rem; }
.detail-copy dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
dt { color: var(--accent); font-weight: 600; }
.guide ul { padding-left: 1.15rem; margin: 1.5rem 0; }
.guide li + li { margin-top: .45rem; }
.demo-note { color: var(--secondary); font-size: .92rem; }
footer { padding-block: 1.5rem; }
footer span { font: 400 1.25rem/1.3 var(--display); }
footer a { font-size: .9rem; }

@media (max-width: 52rem) {
  .hero-intro { grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 1fr); gap: 1.5rem; }
  h1 { font-size: clamp(3rem, 7vw, 4rem); }
  .material-section, .detail-section, .estimate { gap: 2rem; grid-template-columns: .82fr 1.18fr; }
}
@media (max-width: 40rem) {
  .masthead { display: block; padding-block: 1rem .35rem; }
  .masthead nav { justify-content: space-between; gap: .5rem; margin-top: .65rem; }
  .masthead nav a { padding-block: .48rem; }
  .masthead nav a:last-child { border: 0; text-decoration: underline; }
  .edition { display: grid; gap: .3rem; padding-top: 1.3rem; }
  .edition p:last-child { text-align: left; font-size: .75rem; letter-spacing: .055em; text-transform: none; }
  .hero-intro { grid-template-columns: 1fr; gap: .9rem; padding-block: 1.1rem 1.6rem; }
  h1 { font-size: clamp(3rem, 12vw, 4.6rem); }
  .introduction { max-width: none; justify-self: stretch; }
  .photo-frame { height: clamp(15rem, 72vw, 22rem); }
  figcaption { font-size: .75rem; letter-spacing: .045em; }
  .material-section, .detail-section, .estimate { grid-template-columns: 1fr; gap: 1.7rem; }
  .eyebrow { margin-bottom: .7rem; }
  h2 { max-width: 100%; }
  .detail-copy dl div { grid-template-columns: 5.75rem 1fr; gap: .65rem; }
}
