:root {
  --page: #f9fafc;
  --ink: #23252d;
  --sub: #454b59;
  --rule: #c9cfdb;
  --accent: #2345be;
  --sun: #ffcf48;
  --tint: #edf2fa;
  --display: Georgia, serif;
  --measure: 1216px;
}

.mast { background: white; border-top: 4px solid var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 26px; line-height: 1.1; }
.floor-mark { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 2px; background: var(--accent); display: grid; place-items: center; }
.floor-mark::after { content: ""; width: 12px; height: 12px; background: var(--sun); clip-path: polygon(0 0, 100% 0, 100% 44%, 63% 44%, 63% 100%, 0 100%); }
.mast .mast-inner { padding-block: 17px; }
.mast nav a { padding-block: 5px; }
.mast nav a[aria-current] { color: var(--accent); }
.klidkala h1, .klidkala h2, .klidkala h3 { font-weight: 500; }
.klidkala :is(h1,h2,h3) a { text-decoration: none; }
.klidkala :is(h1,h2,h3) a:hover { text-decoration: underline; }
.klidkala .label { letter-spacing: 0; font-family: system-ui, sans-serif; font-weight: 800; }
.klid-intro { padding-block: 24px 20px; }
.klid-intro h1 { font-size: 79px; margin: 4px 0; }
.klid-intro .lead { margin-top: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.room-gallery { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 24px; padding-bottom: 36px; }
.gallery-rail { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-width: 0; }
.guide-card { min-width: 0; }
.room-gallery .guide-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; border-bottom: 1px solid var(--rule); }
.card-image { display: block; min-width: 0; background: var(--tint); }
.card-image img { aspect-ratio: 1.55/1; }
.room-gallery .card-image { position: relative; min-height: 128px; }
.room-gallery .card-image img { position: absolute; inset: 0; height: 100%; }
.room-gallery .cover-card .card-image { min-height: 370px; }
.card-copy { padding: 12px 0 10px; }
.card-copy h3 { font-size: 25px; margin-top: 4px; }
.card-copy p { margin-top: 6px; color: var(--sub); font-size: 15px; }
.cover-card .card-copy { padding: 14px 0 16px; }
.cover-card .card-copy h3 { font-size: 38px; }
.rail-card .card-copy h3 { font-size: 23px; }
.rail-card .card-copy p { display: none; }
.photo-entry { object-position: center 46%; }
.photo-living-reading { object-position: center 65%; }
.photo-entry-shoes { object-position: center 62%; }

.study-band { background: var(--accent); color: white; }
.study-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 33px; padding-block: 32px; }
.study-inner img { aspect-ratio: 1.75/1; object-position: center 58%; }
.study-copy h2 { font-size: 42px; margin: 6px 0 10px; }
.study-copy p:not(.label) { max-width: 43ch; }
.study-copy .label { color: var(--sun); }
.study-copy .text-link { background: var(--sun); color: var(--ink); padding: 9px 12px; margin-top: 16px; border-radius: 2px; }
.study-band a:focus-visible { outline-color: white; }
.home-stack { padding-block: 34px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 17px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.section-head h2, .room-routes h2 { font-size: 34px; }
.section-head .label { margin-bottom: 4px; }
.section-head>a { font-size: 14px; font-weight: 750; color: var(--accent); }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.practice-grid .guide-card { border-bottom: 1px solid var(--rule); }
.quick-band, .related-band { background: var(--tint); }
.project-photo { display: block; }
.project-photo img { aspect-ratio: 2.12/1; }
.photo-living-rug { object-position: center 65%; }
.project-notes { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 15px; }
.project-notes h3 { font-size: 30px; margin-bottom: 6px; }
.klidkala .project-notes h3 a { text-decoration: underline; }
.project-notes p:not(.label) { color: var(--sub); max-width: 63ch; }
.project-tip { border-left: 4px solid var(--sun); padding: 9px 14px; background: var(--tint); font-size: 14px; }
.project-tip .label { margin-bottom: 3px; }
.furniture-band { background: #fff9e7; }
.furniture-grid img { aspect-ratio: 1.45/1; }
.photo-entry-coats { object-position: center 72%; }
.photo-living-side { object-position: center 72%; }
.photo-dining-four { object-position: center 60%; }
.photo-dining-work { object-position: center 66%; }
.table-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.table-grid .guide-card { border-bottom: 1px solid var(--rule); }
.table-grid img { aspect-ratio: 1.68/1; }
.row-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 28px; }
.row-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.row-card .card-copy { padding: 0; }
.row-card img { aspect-ratio: 1.35/1; }
.room-routes { padding-block: 25px 32px; }
.room-routes h2 { margin-bottom: 10px; }
.room-routes ul { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--rule); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.room-routes li+li { border-left: 1px solid var(--rule); }
.room-routes li a { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 10px 14px; font-size: 14px; font-weight: 750; text-decoration: none; color: var(--accent); }
.room-routes li a:hover { background: white; text-decoration: underline; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 18px 28px; padding-block: 24px; }
.footer-inner p { margin-top: 6px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 17px; }
footer { background: white; }

.interior-intro { padding-block: 26px 19px; }
.interior-intro h1 { font-size: 62px; margin: 8px 0 5px; }
.room-library { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); gap: 26px; }
.library-label { border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 13px; }
.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.library-grid img, .archive-grid img { aspect-ratio: 1.8/1; }
.library-grid .card-copy h3, .archive-grid .card-copy h3 { font-size: 22px; }
.room-library .library-feature img { aspect-ratio: 1.35/1; }
.archive-room { margin-bottom: 33px; }
.archive-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
.archive-grid .library-feature { grid-row: span 2; }
.archive-grid .library-feature img { aspect-ratio: 1.16/1; }
.archive-projects { margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--rule); }
.room-projects { padding-bottom: 8px; }
.room-article { max-width: 1080px; }
.room-article figure img { aspect-ratio: 2.05/1; }
.article-grid { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 665px); gap: 30px; padding: 27px 0 40px; }
.article-index { align-self: start; background: var(--tint); border-top: 3px solid var(--accent); padding: 13px 15px; }
.article-index ol { padding-left: 19px; margin: 9px 0 0; font-size: 14px; }
.article-index li+li { margin-top: 8px; }
.worksheet-link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; font-weight: 700; }
.article-grid .prose { margin: 0; font-size: 17px; line-height: 1.7; }
.article-grid .prose section { margin-top: 23px; }
.article-grid .prose p+p, .info-body p+p { margin-top: 10px; }
.info-page { max-width: 940px; padding-bottom: 37px; }
.info-body { max-width: 70ch; border-top: 1px solid var(--rule); padding-top: 17px; }
.info-body h2 { font-size: 27px; margin: 0 0 7px; }
.info-body p { color: var(--sub); font-size: 17px; }
.info-body section+section { margin-top: 22px; }
.sheet-page { max-width: 960px; padding-bottom: 40px; }
.sheet-page .interior-intro { padding-bottom: 23px; }
#room-sheet { max-width: 850px; border-top: 3px solid var(--accent); padding-top: 14px; }
#room-sheet label { display: block; font-size: 15px; font-weight: 680; }
#room-sheet :is(input,select,textarea,button) { font: inherit; }
#room-sheet :is(input,select,textarea) {
  display: block; width: 100%; min-width: 0; margin: 5px 0 11px; padding: 7px 9px;
  border: 1px solid #737a8d; border-radius: 3px; color: var(--ink); background: white;
}
#room-sheet :is(input,select,textarea,button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#room-sheet input:invalid { border-color: #942b39; }
#room-sheet textarea { resize: vertical; }
.sheet-identity { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.sheet-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sheet-table fieldset { min-inline-size: 0; margin: 7px 0 0; padding: 10px 12px 7px; border: 1px solid var(--rule); }
.sheet-table legend { padding-inline: 4px; font-weight: 750; color: var(--accent); font-size: 14px; }
.sheet-table output { display: block; min-height: 41px; margin: 4px 0 9px; padding: 7px 9px; color: var(--accent); background: var(--tint); overflow-wrap: anywhere; }
.sheet-table output.over { color: #812c26; background: #fff1e7; }
.sheet-note { margin: 12px 0 15px; color: var(--sub); font-size: 14px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet-actions button { cursor: pointer; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 3px; color: var(--accent); background: white; }
.sheet-actions #print-sheet { color: white; background: var(--accent); }
.sheet-actions button:hover { text-decoration: underline; }
#print-notes { display: none; }
.photo-entry-parcels { object-position: center 63%; }
.photo-living-play { object-position: center 62%; }

@media(max-width: 860px) {
  .room-gallery { gap: 16px; }
  .room-gallery .cover-card .card-image { min-height: 330px; }
  .practice-grid { gap: 14px; }
  .row-card { gap: 11px; }
  .card-copy h3 { font-size: 23px; }
  .article-grid { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 18px; }
}

@media(max-width: 700px) {
  .brand { font-size: 23px; }
  .mast .mast-inner { padding-block: 10px; gap: 5px 15px; }
  .mast nav { gap: 1px 14px; font-size: 13px; }
  .mast nav a { padding-block: 4px; }
  .klid-intro { padding-block: 17px 15px; }
  .klid-intro h1, .interior-intro h1 { font-size: 45px; }
  .room-gallery { grid-template-columns: 1fr; gap: 16px; padding-bottom: 22px; }
  .gallery-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 12px; align-items: stretch; }
  .room-gallery .guide-card { grid-template-rows: auto 1fr; }
  .room-gallery .card-image, .room-gallery .cover-card .card-image { min-height: 0; }
  .room-gallery .card-image img { position: static; height: auto; }
  .room-gallery .cover-card .card-image img { aspect-ratio: 1.58/1; }
  .cover-card .card-copy, .rail-card .card-copy { padding: 8px 0 10px; }
  .cover-card .card-copy h3 { font-size: 29px; }
  .rail-card .card-copy h3 { font-size: 21px; }
  .study-inner { grid-template-columns: 1fr; gap: 14px; padding-block: 16px 22px; }
  .study-copy h2 { font-size: 34px; }
  .home-stack { padding-block: 24px; }
  .project-photo img { aspect-ratio: 1.54/1; }
  .project-notes { grid-template-columns: 1fr; gap: 12px; }
  .project-notes h3 { font-size: 25px; }
  .table-grid { gap: 12px; }
  .table-grid .card-copy h3 { font-size: 21px; }
  .table-grid img { aspect-ratio: 1.18/1; }
  .section-head h2, .room-routes h2 { font-size: 28px; }
  .practice-grid, .room-library, .row-guides, .article-grid { grid-template-columns: 1fr; }
  .practice-grid .guide-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: 11px; padding-bottom: 10px; }
  .practice-grid .card-copy { padding: 0; }
  .practice-grid img { aspect-ratio: 1.18/1; }
  .room-library .library-feature img { aspect-ratio: 1.55/1; }
  .archive-grid .library-feature { grid-row: auto; }
  .archive-grid .library-feature img { aspect-ratio: 1.18/1; }
  .practice-grid h3, .row-guides h3 { font-size: 21px; }
  .room-routes li a { padding-inline: 6px; font-size: 12px; }
  .room-article figure img { aspect-ratio: 1.53/1; }
  .article-grid { padding: 15px 0 28px; }
  .article-grid .prose { font-size: 16px; }
  .sheet-identity { grid-template-columns: minmax(0, 1fr) minmax(125px, .7fr); }
  .sheet-table { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  body:has(.sheet-page) :is(.mast, footer, .skip, .sheet-actions, .crumb, #sheet-notes) { display: none; }
  .sheet-page { width: 100%; padding-bottom: 0; }
  .sheet-page .interior-intro h1 { font-size: 27pt; }
  .sheet-page .interior-intro { padding-top: 0; }
  .sheet-page #room-sheet { color: black; }
  .sheet-page #print-notes { display: block; min-height: 18mm; margin-top: 4px; border: 1px solid #777; padding: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .sheet-page #room-sheet fieldset { break-inside: avoid; }
}
