/* Package 8.1 — room contours, editorial proportions and two question modes. */
:root { --wide-page: 1160px; }
.home-main, .questions-shell, .blog-shell, .site-footer { width: min(var(--wide-page), calc(100% - 40px)); }
.about-shell { width: min(1160px, calc(100% - 40px)); }
.builder-shell, .session-workbook { width: min(1100px, calc(100% - 40px)); }
/* Reading measures remain independent of the wider page frame. */
.article-body, .article-notes, .article-afterword, .article-author { max-width: 720px; }
.question-form-preview { max-width: 720px; }

.home-cover { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; }
.home-room { position: relative; width: 100%; flex: 0 0 auto; min-height: calc(100svh - var(--home-header-height)); display: grid; place-items: center; padding: 64px 0 148px; }
.home-cover__content { transform: none; width: min(760px, 56%); margin: 0 auto; }
.cabinet-scene { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.cabinet-scene__side { position: absolute; z-index: 2; bottom: 7%; width: min(30%, calc((100% - 760px) / 2)); height: auto; overflow: hidden; }
.cabinet-scene__side--left { left: 0; }
.cabinet-scene__side--right { right: 0; }
.cabinet-scene__architecture { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; }
.room-ink { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.room-ink--architecture { stroke-width: .65; }
.room-ink--furniture { stroke: #bd9b64; }
.room-ink--people { stroke: #e0d2b9; }
.room-ink--plants { stroke: #8fa784; }
.room-ink--objects { stroke: #bd8b70; }
/* Both actions use exactly the same resting and interactive surfaces. */
.home-actions .home-action-button:first-child,
.home-actions .home-action-button:last-child { border-color: rgba(234,219,197,.72); color: var(--skin-heading); background: transparent; box-shadow: none; }
.home-actions .home-action-button:hover,
.home-actions .home-action-button:focus-visible { color: #1e3228; border-color: #f5e8d2; background: #f5e8d2; }
.home-actions .home-action-button:focus-visible { outline: 2px solid #f5e8d2; outline-offset: 4px; }
.tool-sheet h3 { display: flex; gap: 15px; align-items: baseline; max-width: 22ch; }
.tool-sheet h3 .tool-sheet__number { flex: 0 0 auto; font-family: var(--font-sans); font-size: 13px; font-weight: 450; letter-spacing: .06em; }
.tool-sheet__art svg { margin-top: 8px; }

.blog-shell { padding-top: clamp(36px, 4.2vw, 56px); padding-bottom: 72px; }
.blog-head { max-width: 850px; padding-bottom: 30px; }
.blog-head h1 { font-size: clamp(35px, 4.1vw, 56px); line-height: 1.12; letter-spacing: -.03em; margin: 12px 0 20px; }
.blog-head__lead { font-size: 18px; }
.blog-empty { padding: 32px 0; }
.blog-empty h2 { font-size: clamp(24px, 2.6vw, 31px); }
.questions-head { max-width: 850px; margin-bottom: 32px; }
.questions-head h1 { font-size: clamp(38px, 4.8vw, 64px); }
.questions-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 18px; border-bottom: 1px solid var(--line-strong); }
.questions-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 21px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 15px; text-decoration: none; transition: background-color 160ms, color 160ms; }
.questions-tabs a:hover { background: rgba(143,67,43,.07); color: var(--ink); }
.questions-tabs a[aria-selected="true"] { border-color: var(--accent-dark); color: var(--paper-surface); background: var(--accent-dark); }
.questions-tabs a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.questions-panel--public, .questions-panel--ask { padding: 32px 0 48px; border: 0; min-height: 0; }
.questions-panel[hidden] { display: none !important; }
.questions-panel--public .questions-section-head { display: none; }
.questions-empty { max-width: 780px; padding: 22px 0 32px; border-top: 0; }
.questions-section-head h2 { font-size: clamp(28px, 3.3vw, 38px); }
.public-answer h3 a { color: inherit; text-underline-offset: 5px; }
/* With scripts disabled the fragment itself switches the two views. */
.questions-shell:not(:has([role="tablist"])) #ask { display: none; }
.questions-shell:not(:has([role="tablist"])):has(#ask:target) #ask { display: block; }
.questions-shell:not(:has([role="tablist"])):has(#ask:target) #public-answers { display: none; }

.route-flip__paper > .home-main.route-home-tools { width: min(var(--wide-page), calc(100% - 40px)); }
.route-flip .home-room { min-height: calc(100svh - var(--home-header-height)); }
.route-flip .cabinet-scene path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
@media (max-width: 1100px) {
  .home-room { padding: 48px 0 104px; }
  .home-cover__content { width: min(700px, calc(100% - 72px)); }
  /* A separate compact scene occupies its own row below the actions. */
  .cabinet-scene { position: relative; inset: auto; width: 100%; height: clamp(280px, 40vw, 390px); margin-top: 26px; order: 2; }
  .home-room { display: flex; flex-direction: column; padding-bottom: 34px; }
  .cabinet-scene__side { width: min(42%, 258px); height: 100%; bottom: 0; }
  .cabinet-scene__side--left { left: 3%; }
  .cabinet-scene__side--right { right: 3%; }
  .cabinet-scene__architecture { opacity: .3; }
  .home-footer { position: relative; right: auto; bottom: auto; left: auto; }
}
@media (max-width: 720px) {
  .home-main, .questions-shell, .blog-shell, .site-footer, .about-shell, .builder-shell, .session-workbook { width: calc(100% - 32px); }
  .home-room { min-height: 0; padding: 36px 0 0; }
  .home-cover__content { width: calc(100% - 36px); }
  .home-cover--mobile-footer .home-footer--mobile-flow { margin-top: 12px; padding-bottom: 20px; }
  .cabinet-scene { height: clamp(230px, 69vw, 360px); margin-top: 24px; }
  .cabinet-scene__side { width: 46%; }
  .cabinet-scene__side--left { left: 1%; }
  .cabinet-scene__side--right { right: 1%; }
  .tool-sheet__art { display: flex; justify-content: space-between; gap: 18px; }
  .tool-sheet__art svg { width: 120px; margin: 0; order: 2; }
  .tool-sheet__caption { max-width: 20ch; margin: 0; }
  .questions-tabs { gap: 9px; }
  .questions-tabs a { flex: 1 1 145px; padding-inline: 12px; font-size: 14px; }
  .questions-head { margin-bottom: 26px; }
  .questions-panel--ask { padding-top: 26px; }
  .blog-head__lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .questions-tabs a { transition: none; }
  .cabinet-scene path, .tool-sheet__art path { animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
/* The cover owns its vertical scroll; avoid a second document scrollbar. */
body.home:not(.home-tools-active) { height: 100svh; overflow: hidden; }
