:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --white: #fffdf9;
  --ink: #1b251e;
  --forest: #23362d;
  --dim: #4f5a50;
  --line: #d9d9cc;
  --rust: #854225;
  --clay: #e59c72;
  --max: 76rem;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; min-width: 17rem; background: var(--paper); color: var(--ink); isolation: isolate; font-size: 1rem; line-height: 1.58; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #f6f4ed35, #f6f4ed70 50%, #f6f4ed35),
              url("img/architecture-background.webp") center / cover no-repeat;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
input, button { font: inherit; }
:where(a, button, input):focus-visible { outline: 3px solid #ba6335; outline-offset: 3px; }
:where(h1,h2,h3,p,ol,ul) { margin-block-start: 0; }
:where(h1,h2,h3) { line-height: 1.12; letter-spacing: -.034em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.55rem); }
.site-width { width: min(var(--max), calc(100% - 5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .6rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.edition-header, .pantry-bottom {
  background: linear-gradient(110deg, #1c2424e4, #322920de),
              #242726 url("img/architecture-background.webp") center 45% / cover no-repeat;
  color: #f7efe4;
}
.edition-header { border-bottom: 1px solid #b38b604d; }
.edition-header .pantry-title > span,
.edition-header .edition-navigation a:hover,
.edition-header .edition-navigation a[aria-current] { color: #edbb8c; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.65rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; white-space: nowrap; }
.pantry-title { font-size: clamp(1.25rem, 2.8vw, 1.58rem); font-weight: 760; line-height: 1; letter-spacing: -.055em; }
.pantry-title > span { color: var(--rust); }
.brand-mark { display: block; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; background: var(--forest) url("img/brand-mark.webp") center / cover no-repeat; border-radius: .55rem; }
.edition-navigation { display: flex; gap: clamp(1.05rem, 3.1vw, 2.4rem); align-items: center; font-size: .94rem; font-weight: 655; }
.edition-navigation a { text-decoration: none; padding-block: .55rem; white-space: nowrap; }
.edition-navigation a:hover, .edition-navigation a[aria-current] { color: var(--rust); }

.home-hero { margin-top: 1rem; border-radius: .85rem; background: #1a2820; color: #fff7e8; position: relative; overflow: hidden; isolation: isolate; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 72% 53%; z-index: -2; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(17,28,22,.95) 3%, rgba(17,28,22,.83) 31%, rgba(17,28,22,.38) 57%, rgba(17,28,22,.04) 88%), linear-gradient(0deg, rgba(17,28,22,.62), transparent 35%); }
.hero-inner { display: grid; min-height: clamp(31rem, 43vw, 39rem); align-items: center; padding: 4rem clamp(1rem, 4.5vw, 4.5rem); position: relative; }
.front-intro { max-width: 39rem; }
.eyebrow { color: #ffd0ad; margin-bottom: 1.05rem; font-size: .87rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 1.45rem; height: 2px; background: var(--clay); vertical-align: middle; margin-right: .75rem; }
.front-intro h1 { font-size: clamp(3.25rem, 6.15vw, 6rem); margin: 0 0 1.3rem; line-height: .99; letter-spacing: -.062em; font-weight: 765; }
.hero-lede { font-size: clamp(1.03rem, 1.6vw, 1.22rem); color: #f4ead9; max-width: 31rem; margin-bottom: 1.7rem; }

.front-search { max-width: 34rem; }
.front-search-row { display: flex; align-items: stretch; min-height: 3.2rem; gap: .35rem; padding: .3rem; border: 1px solid #babdb0; background: var(--white); border-radius: .4rem; }
.front-search-input { background: none; min-width: 0; width: 100%; padding: .5rem .8rem; border: 0; color: var(--ink); border-radius: .25rem; }
.front-search-input::placeholder { color: #5e655d; opacity: 1; }
.front-search-submit { background: #a95533; color: #fffaf3; border: 0; border-radius: .26rem; padding: .49rem 1.2rem; font-weight: 720; cursor: pointer; }
.front-search-submit:hover { background: #8b4025; }
.front-quick, .catalog-jumps, .sitemap-main { display: flex; flex-wrap: wrap; gap: .5rem; }
.front-quick { margin-top: .8rem; }
.front-quick a { font-size: .88rem; padding: .25rem .63rem; border: 1px solid #fbecd080; border-radius: .3rem; color: #fff8eb; background: #22332b72; text-decoration: none; }
.front-quick a:hover { background: #574533; }

.block { padding-block: 3.65rem 3.8rem; }
.section-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.section-heading h2 { margin: 0; }
.text-link { color: var(--rust); font-weight: 740; text-underline-offset: .24em; }
.section-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.section-tile { display: grid; grid-template-columns: 7.15rem minmax(0,1fr); min-height: 6.5rem; align-items: stretch; overflow: hidden; border-radius: .4rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color .15s; }
.section-tile:hover { border-color: #a06b52; }
.section-tile img { width: 100%; height: 100%; min-height: 6.5rem; object-fit: cover; }
.section-tile span { padding: .74rem .8rem; display: grid; align-content: center; gap: .13rem; line-height: 1.24; }
.section-tile strong { font-size: 1.01rem; }
.section-tile small { color: var(--dim); font-size: .86rem; margin-top: .25rem; }
.stage-band { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 2.85rem); border-radius: .85rem; color: #f9f4e9; background: linear-gradient(105deg, #242a29e4, #352d24de), #242726 url("img/architecture-background.webp") center / cover no-repeat; }
.stage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.stage-grid a { display: grid; align-content: start; min-height: 6.5rem; gap: .3rem; border-top: 2px solid var(--clay); border-inline: 1px solid #d3dac64b; border-bottom: 1px solid #d3dac64b; padding: .85rem 1.05rem; text-decoration: none; background: #2b302ee8; }
.stage-grid a:hover { background: #454139; }
.stage-grid strong { font-size: 1.14rem; }
.stage-grid span { color: #e0e4d5; }

.catalog-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; }
.article-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); border-radius: .45rem; }
.catalog-photo { display: block; }
.catalog-photo img { aspect-ratio: 2.1; height: auto; width: 100%; object-fit: cover; }
.card-copy { padding: 1.05rem 1.1rem 1.28rem; }
.card-section, .article-kicker { color: var(--rust); text-decoration: none; font-size: .87rem; font-weight: 760; }
.card-copy h3 { font-size: clamp(1.22rem,1.9vw,1.52rem); margin: .35rem 0 .55rem; line-height: 1.19; }
.card-copy h3 a { text-decoration: none; }
.card-copy :is(h3 a,.card-section):hover { text-decoration: underline; text-underline-offset: .14em; }
.card-copy p { color: var(--dim); margin: 0; font-size: .94rem; }

.inner-page { padding-block: 2rem 4.25rem; min-height: 65vh; }
.catalog-crumb { margin-bottom: 1.35rem; font-size: .875rem; color: var(--dim); }
.catalog-crumb ol { display: flex; flex-wrap: wrap; gap: .3rem .65rem; padding: 0; margin: 0; list-style: none; }
.catalog-crumb li + li::before { content: "/"; padding-right: .65rem; color: #8c9589; }
.catalog-crumb a { text-underline-offset: .2em; }
.catalog-heading { margin-bottom: 1.7rem; }
.catalog-heading h1 { font-size: clamp(2.3rem,5.5vw,4.1rem); margin: 0 0 .65rem; letter-spacing: -.052em; }
.catalog-heading p { font-size: 1.12rem; max-width: 46rem; margin: 0; color: var(--dim); }
.topic-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,23rem); background: #e8eae0; border-radius: .5rem; overflow: hidden; }
.topic-heading > div { padding: clamp(1.35rem,3vw,2.1rem); align-self: center; }
.topic-heading img { width: 100%; height: 100%; min-height: 12rem; max-height: 18rem; object-fit: cover; }
.count { display: inline-block; margin-top: .9rem; font-size: .92rem; font-weight: 700; color: var(--rust); }
.catalog-jumps, .sitemap-main { margin-block: 1.4rem 1.6rem; }
.catalog-jumps a, .sitemap-main a { font-size: .88rem; padding: .22rem .64rem; border: 1px solid var(--line); background: var(--white); border-radius: .25rem; text-decoration: none; }
.catalog-jumps a:hover, .sitemap-main a:hover { color: var(--rust); border-color: #ac8069; }
.all-articles { display: grid; gap: 1.1rem; }
.article-group { background: var(--white); border: 1px solid var(--line); border-radius: .4rem; padding: 1.3rem 1.5rem; scroll-margin: 1rem; }
.article-group h2 { margin-bottom: .75rem; font-size: 1.46rem; }
.article-group h2 a { text-decoration: none; }
.article-group ul { list-style: none; padding: 0; margin: 0; columns: 2 22rem; column-gap: 1.5rem; }
.article-group li { break-inside: avoid; padding: .34rem 0; margin-bottom: .15rem; }
.article-group li a { text-decoration-thickness: 1px; text-decoration-color: #b8c2b8; text-underline-offset: .21em; }
.article-group li a:hover { color: var(--rust); }
.search-status { margin: 1rem 0 .5rem; color: var(--dim); }
.search-results { display: grid; max-width: 54rem; gap: .6rem; }
.search-results article { border: 1px solid var(--line); background: var(--white); border-radius: .35rem; padding: .9rem 1.15rem; }
.search-results h2 { font-size: 1.25rem; margin: .2rem 0 .32rem; }
.search-results h2 a { text-decoration-color: #b8c2b8; text-underline-offset: .22em; }
.search-results p { margin: 0; color: var(--dim); }
.search-results .label { color: var(--rust); font-size: .85rem; font-weight: 700; }

.article-head { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(13rem,1fr); background: #24372d; color: #fff9ee; border-radius: .48rem; overflow: hidden; }
.article-head-copy { padding: clamp(1.5rem,4vw,3rem); align-self: center; }
.article-head .article-kicker { color: #f4bd9a; }
.article-head h1 { margin: .45rem 0 .7rem; font-size: clamp(2rem,4vw,3.7rem); letter-spacing: -.048em; }
.article-meta { margin: 0; color: #e4e4d6; font-size: .9rem; }
.article-cover { width: 100%; height: 100%; min-height: 15rem; max-height: 24rem; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0,2.4fr) minmax(14rem,1fr); gap: clamp(1rem, 4vw, 3.5rem); margin-top: 1.55rem; align-items: start; }
.entry-content { min-width: 0; border: 1px solid var(--line); background: var(--white); border-radius: .4rem; padding: clamp(1.15rem,3.2vw,2rem); font-size: 1.065rem; }
.entry-content p { margin-bottom: 1.05rem; }
.article-lead { font-size: 1.16rem; }
.article-jumps { margin-bottom: 1.5rem; border-left: 3px solid #c7825a; background: #f1eee5; padding: .9rem 1rem; display: grid; gap: .25rem; align-content: start; }
.article-jumps a { padding-block: .12rem; color: var(--rust); text-underline-offset: .19em; }
.entry-content h2 { font-size: clamp(1.42rem, 3vw, 1.78rem); margin: 1.45rem 0 .55rem; }
.entry-content section p:last-child { margin-bottom: 0; }
.entry-content section { margin-bottom: 1.3rem; }
.checklist { background: #edf1e7; border-radius: .32rem; padding: .72rem .95rem; }
.checklist h2 { margin-top: 0; }
.checklist ul { padding-left: 1.2rem; margin-bottom: .12rem; }
.checklist li + li { margin-top: .24rem; }
.related-articles { display: grid; gap: .72rem; background: #eceee4; padding: 1.2rem; border-radius: .4rem; }
.related-articles h2 { font-size: 1.43rem; margin: 0; }
.related-article { line-height: 1.4; text-decoration-thickness: 1px; text-decoration-color: #abb4a4; text-underline-offset: .22em; }
.related-article:hover { color: var(--rust); }

.pantry-bottom { border-top: 1px solid #b38b604d; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; }
.pantry-bottom .pantry-title > span { color: #f2bd9b; }

.footer-inner nav { display: flex; flex-wrap: wrap; gap: .7rem 1.15rem; }
.footer-inner nav a { text-underline-offset: .2em; font-size: .92rem; font-weight: 620; }
.footer-inner small { color: #d7d9cb; font-size: .86rem; }

@media (max-width: 64rem) {
  .section-grid, .catalog-list, .stage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-width { width: calc(100% - 3.5rem); }
}
@media (max-width: 44rem) {
  .site-width { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; justify-content: center; flex-direction: column; min-height: 0; gap: .38rem; padding-block: .68rem .38rem; }
  .edition-navigation { justify-content: space-between; width: 100%; gap: .55rem; font-size: .875rem; }
  .edition-navigation a { padding-block: .32rem; }
  .brand-mark { width: 2rem; height: 2rem; flex-basis: 2rem; }
  .hero-inner { min-height: 30rem; padding-block: 2.9rem 4.35rem; }
  .hero-shade { background: linear-gradient(90deg, #101a15ed, #101a1570), linear-gradient(0deg, #101a15e6, transparent 62%); }
  .hero-image { object-position: 77% center; }
  .front-intro h1 { font-size: clamp(2.6rem, 9.3vw, 4.25rem); }
  .block { padding-block: 2.65rem; }
  .section-tile { grid-template-columns: 4.15rem minmax(0,1fr); min-height: 5.2rem; }
  .section-tile img { min-height: 5.2rem; }
  .section-tile span { padding: .5rem; }
  .section-tile strong { overflow-wrap: anywhere; font-size: .95rem; }
  .stage-grid { grid-template-columns: 1fr; gap: .6rem; }
  .stage-grid a { min-height: auto; }
  .topic-heading { grid-template-columns: 1fr; }
  .topic-heading img { min-height: 0; height: 10rem; }
  .article-head, .article-layout { grid-template-columns: 1fr; }
  .article-cover { min-height: 0; height: 11rem; }
}
@media (max-width: 29rem) {
  .front-intro h1 { font-size: clamp(1.8rem, 10.65vw, 2.6rem); }
  .catalog-list, .section-grid { grid-template-columns: 1fr; }
  .section-tile { grid-template-columns: 6.5rem minmax(0,1fr); }
  .front-search-submit { padding-inline: .72rem; }
  .front-search-input { padding-inline: .5rem; }
  .section-heading { gap: .65rem; }
  .section-heading .text-link { font-size: .88rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.stage-reading { display: grid; gap: 1rem; margin-block: 1.5rem; }
.inspection-figure { margin: 1.5rem 0; padding: 1rem; border: 1px solid #bac9be; border-radius: .75rem; background: #f0f5ef; color: #263b31; }
.inspection-figure ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; list-style: none; padding: 0; margin: .75rem 0; counter-reset: inspection; }
.inspection-figure li { counter-increment: inspection; padding: .65rem; border: 1px solid #bac9be; border-radius: .45rem; background: #fff; }
.inspection-figure li::before { content: counter(inspection); display: block; color: #446451; font-weight: 700; }
.inspection-figure p { margin: .5rem 0 0; }
@media (max-width: 38rem) { .inspection-figure ol { grid-template-columns: 1fr; } }
