:root {
  font-family: system-ui, sans-serif;
  color: #191f40;
  background: #f6f7fc;
  line-height: 1.6;
  --primary: #30369f;
  --line: #d7def6;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #2b3490; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #626bf1; outline-offset: 4px; }
.page-header, .missing, .guide { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.page-header { display: flex; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 1.6rem; font-weight: 850; letter-spacing: -.06em; text-decoration: none; }
.wordmark img { width: 34px; height: 34px; }
.wordmark span { margin-left: -8px; }
.wordmark span, .guide-header .brand span { color: #575ed3; }
h1, h2, p { margin-block-start: 0; }
h1 { line-height: 1.03; letter-spacing: -.065em; }
.missing { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(32px, 7vw, 96px); padding-block: clamp(42px, 8vh, 90px); }
.missing h1 { font-size: clamp(3.4rem, 8vw, 6.6rem); margin-bottom: 24px; }
.missing p:not(.error-code) { max-width: 35ch; }
.error-code { color: #383e9e; font-weight: 750; font-size: .95rem; margin-bottom: 16px; }
.page-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 10px; color: #fff; background: var(--primary); font-weight: 700; text-decoration: none; }
.page-button:hover { background: #22277b; }
.blueprint { display: grid; place-items: center; min-width: 0; aspect-ratio: 1.2; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(#bdc8ee 1px, transparent 1px) 0 0 / 16px 16px, #ecf0fc; }
.plan { position: relative; width: 66%; aspect-ratio: 36 / 29; border: 4px solid #353b65; background: #fffdfa; }
.plan span { position: absolute; }
.plan-width, .plan-length { color: #444e82; text-align: center; border-bottom: 1px dashed #747fac; font-size: clamp(.65rem, 1.3vw, .85rem); }
.plan-width { inset: auto 0 calc(100% + 12px); }
.plan-length { top: 50%; right: calc(100% + 16px); width: 45%; transform-origin: right center; transform: rotate(-90deg) translateX(50%); }
.plan-window { top: -5px; left: 31%; width: 38%; height: 6px; background: #7195cf; }
.plan-bed { width: 38%; height: 28%; right: 8%; top: 9%; background: #e5bdb0; border: 1px solid #9f6c64; border-radius: 3px; }
.plan-bed::after { content: ""; position: absolute; inset: 12% 59% 12% 9%; border-radius: 4px; background: #fff3e9; }
.plan-rug { width: 35%; height: 36%; left: 35%; top: 45%; border-radius: 50%; background: #ebdfc9; border: 4px double #b29367; }
.plan-cabinet { left: 4%; top: 5%; width: 16%; height: 32%; border: 1px solid #8b9a77; border-radius: 3px; background: #ccd5ba; }
.plan-door { left: 6%; bottom: -5px; width: 25%; aspect-ratio: 1; border: 1px dashed #b57551; border-radius: 0 100% 0 0; border-bottom: 5px solid #fffdfa; border-left: 0; }
.plan-door::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 4px; background: #b57551; transform-origin: left center; transform: rotate(-56deg); animation: open-door 850ms 160ms both; }
@keyframes open-door { from { transform: rotate(0); } to { transform: rotate(-56deg); } }
.guide-page {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #faf9f6;
  --line: #e1ded4;
}
.guide, .guide-footer {
  width: min(1280px, calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
}
.guide-skip { position: absolute; z-index: 1; top: -100px; left: 16px; background: #fff; padding: 8px 12px; }
.guide-skip:focus { top: 16px; }
.guide-header { border-bottom: 1px solid var(--line); }
.guide-header .brand { color: inherit; text-decoration: none; }
.guide-nav { display: flex; gap: 22px; }
.guide-nav a {
  align-content: center;
  min-height: 40px;
  border-bottom: 1px solid transparent;
  color: #4b5268;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.guide-nav [aria-current], .guide-nav a:hover { color: #292f87; border-bottom-color: #777bb0; }
.guide-cover {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding-block: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.guide-intro { animation: guide-enter 400ms ease both; }
.guide-kicker {
  margin-bottom: 18px;
  color: #424894;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .045em;
}
.guide h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5.7vw, 5.15rem);
  font-weight: 750;
  line-height: 1;
}
.guide h1 em {
  display: block;
  margin-top: .06em;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.07em;
}
.guide .lead { max-width: 36ch; margin-bottom: 26px; color: #414962; font-size: clamp(1rem, 1.55vw, 1.18rem); }
.guide-start { gap: 10px; min-height: 48px; transition: background 180ms ease, translate 180ms ease; }
.guide-start:hover { translate: 0 -2px; }
.guide-start:active { translate: 0 1px; }
.guide-art {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e8e5df;
}
.guide-cover .guide-art { aspect-ratio: 4 / 3; animation: guide-enter 460ms 45ms ease both; }
.guide-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-art--room img { object-position: center; }
.guide-art--plan { background: #f3f6ff; }
.guide-cover .guide-art--plan img { object-fit: contain; padding: clamp(7px, 2.1vw, 30px); }
.guide-body {
  display: grid;
  grid-template-columns: minmax(160px, .34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 6vw, 90px);
  padding-block: clamp(36px, 6vw, 86px);
}
.guide-contents { position: sticky; top: 26px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.guide-contents p { margin-bottom: 10px; color: #4d5369; font-size: .9rem; font-weight: 700; }
.guide-contents a {
  display: block;
  width: fit-content;
  color: #262e4c;
  padding-block: 6px;
  font-size: 1rem;
  text-decoration: none;
}
.guide-contents a:hover { text-decoration: underline; }
.guide-article { display: grid; gap: clamp(25px, 4vw, 48px); max-width: 830px; }
.guide-article section { scroll-margin-top: 28px; }
.guide-article section + section { padding-top: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); }
.guide-article h2 { margin-bottom: 10px; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.046em; }
.guide-article p { max-width: 64ch; margin-bottom: 0; color: #414962; font-size: clamp(1rem, 1.4vw, 1.13rem); }
.guide-article .guide-art { aspect-ratio: 16 / 9; }
.guide-article .guide-art--plan { aspect-ratio: 20 / 13; }
.guide-article .guide-art--plan img { object-fit: contain; }
.guide-art--interior img { object-position: 55% center; }
.guide-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 40px);
  border-radius: 16px;
  background: #21254f;
  color: #fff;
  text-decoration: none;
  transition: background 180ms ease, translate 180ms ease;
}
.guide-next:hover { background: #2c3268; translate: 0 -2px; }
.guide-next small, .guide-next strong { display: block; }
.guide-next small { color: #e0e3ff; margin-bottom: 6px; }
.guide-next strong { font-size: clamp(1.2rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.guide-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: clamp(28px, 5vw, 68px);
  padding-block: 17px;
  border-top: 1px solid var(--line);
  color: #4d5369;
  font-size: .86rem;
}
.guide-footer a { color: inherit; font-weight: 750; text-decoration: none; }
@keyframes guide-enter {
  from { opacity: .65; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
@media (max-width: 790px) {
  .guide-cover, .guide-body { grid-template-columns: 1fr; }
  .guide-cover .guide-art { aspect-ratio: 3 / 2; }
  .guide-body { gap: 28px; }
  .guide-contents { position: static; }
  .guide-contents a { min-height: 44px; align-content: center; }
}
@media (max-width: 440px) {
  .guide-nav { gap: 12px; }
  .guide-nav a { font-size: .81rem; line-height: 1.25; text-align: center; }
  .guide h1 { margin-bottom: 16px; }
  .guide-kicker { margin-bottom: 12px; }
  .guide-cover { gap: 22px; }
}
@media (max-width: 700px) {
  .missing { grid-template-columns: 1fr; }
  .blueprint { width: min(100%, 480px); }
}
@media (prefers-reduced-motion: reduce) {
  .plan-door::after { animation: none; }
  .guide-intro, .guide-cover .guide-art { animation: none; }
  .guide-next, .guide-start { transition: none; translate: none; }
  .guide-next:hover, .guide-start:hover, .guide-start:active { translate: none; }
}
.page-icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.guide-start .page-icon { transition: translate 180ms ease; }
.guide-start:hover .page-icon { translate: 2px 0; }
.guide-next-icon { display: grid; flex: none; place-items: center; width: clamp(44px, 6vw, 56px); aspect-ratio: 1; border: 1px solid #ffffff3d; border-radius: 50%; transition: background 180ms ease, border-color 180ms ease; }
.guide-next-icon .page-icon { width: 22px; height: 22px; }
.guide-next:hover .guide-next-icon { background: #fff; border-color: #fff; color: #21254f; }
@media (prefers-reduced-motion: reduce) { .guide-start .page-icon, .guide-next-icon { transition: none; } .guide-start:hover .page-icon { translate: none; } }
/* The studio runs on tablets and computers; phones see a device notice there, so the guides do not offer it. */
@media (pointer: coarse) and (max-width: 599px), (pointer: coarse) and (max-height: 599px) {
  .guide-start { display: none; }
  .guide .lead { margin-bottom: 0; }
}
