:root {
    --wye-stock: #eee8db;
    --wye-ink: #222921;
    --wye-green: #193e35;
    --wye-line: #8b8d76;
    --wye-coral: #9d492e;
    color: var(--wye-ink);
    background: var(--wye-stock);
    font: 17px/1.56 Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid var(--wye-coral); outline-offset: 4px; }
img { display: block; width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; }
p { margin: .9em 0; }
.wye-leap { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .5rem; background: white; transform: translateY(-150%); }
.wye-leap:focus { transform: none; }
.wye-imprint, .wye-measuring-wall, .wye-stockbook, .wye-build-study, .wye-drop-in, .wye-backboard, .wye-sleeve { width: min(100% - 112px, 1392px); margin-inline: auto; }
.wye-imprint { min-height: 108px; border-block-end: 1px solid var(--wye-line); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.wye-stamp { display: inline-flex; align-items: center; gap: 14px; font-size: 26px; line-height: 1; text-decoration: none; }
.wye-stamp b { font-weight: 400; }
.wye-stamp small, .wye-notation, .wye-bench-controls, .wye-cutline, .wye-ruler-nav, .wye-index { font-family: 'Trebuchet MS', Verdana, sans-serif; }
.wye-stamp small { display: block; margin-top: 7px; font-size: 9px; letter-spacing: .18em; }
.wye-doublecorner { width: 34px; height: 35px; position: relative; border: 3px solid; }
.wye-doublecorner::after { content: ''; position: absolute; inset: 4px; border: 1px solid; }
.wye-ruler-nav { display: flex; flex-wrap: wrap; gap: clamp(13px, 3vw, 48px); font-size: 14px; }
.wye-ruler-nav a { text-decoration: none; }
.wye-ruler-nav a:last-child { text-decoration: underline; }
.wye-notation { margin: 0 0 1.2rem; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
.wye-measuring-wall { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(25px, 5vw, 82px); align-items: center; padding-block: 56px 70px; }
.wye-cutting-note h1 { font-size: clamp(3.75rem, 7.35vw, 7.4rem); letter-spacing: -.075em; line-height: .94; }
.wye-cutting-note p:not(.wye-notation), .wye-drop-in p:not(.wye-notation) { max-width: 32rem; font-size: clamp(1rem, 1.65vw, 1.25rem); margin: 26px 0; }
.wye-passage { display: inline-block; padding: .74rem 1.12rem; background: var(--wye-green); color: white; text-decoration: none; font-weight: 700; }
.wye-passage:hover { background: #2b5347; }
.wye-sightboard {
    display: grid;
    grid-template-rows: minmax(280px, 34vw) auto auto;
    place-items: center;
    border: 1px solid #9c9c87;
    background-color: #d9d9c4;
    background-image: linear-gradient(#52645113 1px, transparent 1px), linear-gradient(90deg, #52645113 1px, transparent 1px);
    background-size: 17px 17px;
    padding: clamp(12px, 2.6vw, 31px);
}
.wye-assembly { --wye-bevel: #a87441; --wye-frame-width: clamp(11px, 1.5vw, 23px); width: min(64%, 312px); aspect-ratio: 4 / 5; display: grid; place-items: stretch; border: var(--wye-frame-width) ridge var(--wye-bevel); box-shadow: 12px 18px 27px #3c483744; position: relative; background: #eee5cc; transition: border-color .25s, border-width .25s, width .25s; }
.wye-assembly[data-proportion="landscape"] { width: min(79%, 404px); aspect-ratio: 5 / 3; }
.wye-assembly[data-proportion="square"] { width: min(68%, 344px); aspect-ratio: 1; }
.wye-assembly[data-wood="ebonised"] { --wye-bevel: #37352d; }
.wye-assembly[data-wood="walnut"] { --wye-bevel: #5f4331; }
.wye-assembly[data-border="fine"] { --wye-frame-width: clamp(6px, .8vw, 13px); }
.wye-assembly[data-border="wide"] { --wye-frame-width: clamp(17px, 2vw, 34px); }
.wye-window-mat { display: grid; margin: 10%; overflow: hidden; border: 2px solid #9e997e; background: #81957b; }
.wye-window-mat img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.wye-bench-controls { align-self: end; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; width: 100%; font-size: 12px; font-weight: bold; }
.wye-bench-controls select { width: 100%; min-height: 38px; margin-top: .32rem; padding: .25rem; color: var(--wye-ink); border: 1px solid #777d65; background: #f6f2e8; border-radius: 0; font: inherit; }
.wye-cutline { margin: .7rem 0 0; font-size: 11px; }
.wye-stockbook { border-block: 1px solid var(--wye-line); padding-block: 54px 73px; }
.wye-stockbook h2, .wye-build-study h2, .wye-drop-in h2 { font-size: clamp(2.4rem, 5.3vw, 5rem); letter-spacing: -.056em; }
.wye-tabbed-references { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.wye-tabbed-references a { display: grid; padding: 18px clamp(13px, 2.2vw, 32px) 24px; border: 1px solid var(--wye-line); text-decoration: none; }
.wye-tabbed-references a + a { border-inline-start: 0; }
.wye-tabbed-references a:hover { background: #e0ddcc; }
.wye-tabbed-references b { font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 2.4rem); }
.wye-build-study { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(26px, 6.5vw, 100px); padding-block: 78px; }
.wye-exploded-view { width: 100%; aspect-ratio: 1; max-height: 75vh; position: sticky; top: 10vh; align-self: start; background: #bcad8d; overflow: hidden; }
.wye-exploded-view img { height: 100%; object-fit: cover; }
.wye-exploded-view i { position: absolute; opacity: .5; border-style: solid; transition: opacity .4s, transform .4s; }
.wye-outside-layer { inset: 10%; border: 9px solid #322a1d; }
.wye-inner-layer { inset: 16%; border: 14px solid #f6eed5; }
.wye-glass-layer { inset: 23%; border: 2px solid #d6e6d7; }
.wye-build-study[data-wye-step="1"] .wye-outside-layer, .wye-build-study[data-wye-step="2"] .wye-outside-layer { opacity: 0; transform: scale(1.13); }
.wye-build-study[data-wye-step="1"] .wye-glass-layer { opacity: 0; transform: scale(1.14); }
.wye-build-study[data-wye-step="3"] .wye-exploded-view i { opacity: .85; }
.wye-build-heading { margin-bottom: 25px; }
.wye-layer-note { min-height: 235px; align-content: center; padding-block: 32px; border-bottom: 1px solid var(--wye-line); }
.wye-layer-note h3 { font-size: clamp(1.55rem, 3.15vw, 2.6rem); letter-spacing: -.035em; }
.wye-drop-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 5vw, 84px); padding: 33px; margin-bottom: 74px; background: #e1e2ce; }
.wye-drop-in img { aspect-ratio: 4 / 3; object-fit: cover; }
.wye-backboard { border-top: 1px solid var(--wye-line); padding-block: 37px 58px; display: grid; grid-template-columns: .54fr 1fr; gap: 30px; }
.wye-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem 1rem; font-size: 13px; }
.wye-sleeve { min-height: 56vh; padding-block: 64px 85px; }
.wye-sleeve article { width: min(100%, 700px); margin-inline: auto; }
.wye-sleeve h1 { font-size: clamp(2.8rem, 6.5vw, 6.4rem); letter-spacing: -.063em; }
.wye-sleeve h2 { margin-top: 1.4em; font-size: 1.8rem; }
.wye-outside-edge { display: grid; grid-template-columns: .45fr 1fr; gap: 45px; align-items: center; }
.wye-empty-window { border: 12px ridge #937a53; background: #d8ddcd; aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: clamp(2rem, 8vw, 7rem); }
@media (max-width: 920px) {
    .wye-imprint, .wye-measuring-wall, .wye-stockbook, .wye-build-study, .wye-drop-in, .wye-backboard, .wye-sleeve { width: calc(100% - 48px); }
    .wye-sightboard { grid-template-rows: minmax(240px, 38vw) auto auto; }
    .wye-assembly { width: min(60%, 260px); }
    .wye-sightboard { padding: 12px; }
}
@media (max-width: 670px) {
    .wye-imprint, .wye-measuring-wall, .wye-stockbook, .wye-build-study, .wye-drop-in, .wye-backboard, .wye-sleeve { width: calc(100% - 34px); }
    .wye-imprint { align-items: start; flex-direction: column; padding: 17px 0; gap: 15px; }
    .wye-measuring-wall, .wye-drop-in, .wye-backboard, .wye-build-study, .wye-outside-edge { grid-template-columns: 1fr; }
    .wye-measuring-wall { padding-block: 38px 48px; }
    .wye-cutting-note h1 { font-size: clamp(3.1rem, 12vw, 4.15rem); }
    .wye-sightboard { grid-template-rows: minmax(240px, 63vw) auto auto; }
    .wye-assembly { width: min(53%, 256px); }
    .wye-assembly[data-proportion="landscape"] { width: min(76%, 380px); }
    .wye-assembly[data-proportion="square"] { width: min(65%, 290px); }
    .wye-build-study { grid-template-columns: minmax(92px, .55fr) minmax(0, 1fr); gap: 14px; }
    .wye-build-study h2 { font-size: clamp(1.8rem, 7vw, 3rem); }
    .wye-exploded-view { top: 21vh; aspect-ratio: 3 / 4; }
    .wye-outside-layer { border-width: 4px; }
    .wye-inner-layer { border-width: 7px; }
    .wye-layer-note { min-height: auto; }
    .wye-tabbed-references { grid-template-columns: 1fr; }
    .wye-tabbed-references a + a { border-inline-start: 1px solid var(--wye-line); border-block-start: 0; }
    .wye-index { grid-template-columns: repeat(2, 1fr); }
    .wye-empty-window { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .wye-assembly, .wye-exploded-view i { transition: none; }
}
