@import url("./assets/fonts.css");

:root {
  --ink: #102b2a;
  --evergreen: #163937;
  --mint: #e2eee8;
  --paper: #f5f8f4;
  --lime: #d5ef8e;
  --line: #adbfba;
  --body: Geist, Arial, sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; line-height: 1.48; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: .99; letter-spacing: -.05em; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #528279; outline-offset: 5px; }
.page-header :focus-visible, .page-footer :focus-visible { outline-color: var(--lime); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.shell { width: min(100% - 56px, 1140px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 3; transform: translateY(-160%); background: var(--paper); padding: 10px; }
.skip:focus { transform: none; }
.page-header, .page-footer { background: var(--ink); color: var(--paper); }
.page-header { border-bottom: 1px solid #597974; }
.page-header__inner, .page-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.13rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 22px; aspect-ratio: 1; flex: none; border: 1.5px solid var(--lime); }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: var(--lime); }
.brand-mark::before { top: 0; bottom: 0; left: 45%; width: 1.5px; transform: skewY(-12deg); }
.brand-mark::after { left: 45%; right: -15%; height: 1.5px; bottom: 5%; transform: rotate(-18deg); transform-origin: left; }
nav { display: flex; gap: clamp(12px, 4vw, 32px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { padding-block: clamp(31px, 5.2vw, 74px); border-bottom: 1px solid var(--line); background: #eaf3db; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 6vw, 85px); align-items: center; }
h1 { max-width: 13ch; font-size: clamp(3rem, 6.2vw, 6.25rem); font-weight: 630; }
.hero__copy p { max-width: 41ch; margin-top: 17px; font-size: clamp(1rem, 1.45vw, 1.14rem); }
.priority { padding: clamp(11px, 2.5vw, 25px); border: 1px solid #7d9d89; background: var(--paper); }
.priority p { margin-bottom: 11px; font-size: 1.03rem; font-weight: 700; }
.priority__options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.priority button { display: flex; align-items: center; gap: 8px; min-height: 57px; padding: 8px; border: 1px solid #97afa3; background: white; color: var(--ink); font-weight: 650; line-height: 1.22; text-align: left; cursor: pointer; }
.priority button::before { flex: none; width: 12px; height: 12px; border: 1px solid #52766b; border-radius: 50%; content: ""; }
.priority button:hover { border-color: var(--evergreen); }
.priority button[aria-pressed=true] { border-color: var(--evergreen); background: var(--lime); }
.priority button[aria-pressed=true]::before { border: 4px solid var(--evergreen); }
section[id] { scroll-margin-top: 12px; }
.styles, .before, .brief { padding-block: clamp(27px, 5vw, 65px); }
.styles__head { display: flex; align-items: end; justify-content: space-between; gap: 5px 20px; flex-wrap: wrap; margin-bottom: 16px; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.5rem); font-weight: 630; }
.styles__head p, .brief__grid > div > p { margin-top: 11px; }
.text-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: #225449; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.style-row { display: grid; grid-template-columns: minmax(93px,.32fr) minmax(0,.7fr) minmax(0,.75fr) auto; align-items: center; gap: 14px clamp(16px,3vw,44px); border-top: 1px solid var(--line); padding: 16px 0; }
#style-list { border-bottom: 1px solid var(--line); }
.style-row h3 { font-size: clamp(1.7rem,3.3vw,2.6rem); font-weight: 600; }
.style-row h3 a { text-decoration-thickness: 1px; text-decoration-color: #75958a; }
.style-row__motion { display: block; margin-top: 5px; color: #365d57; font-size: .87rem; font-weight: 650; }
.style-row__reason { font-size: .92rem; }
.choice { display: flex; align-items: center; min-height: 44px; gap: 8px; padding: 8px; border: 1px solid var(--line); font-size: .84rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #225449; cursor: pointer; }
.choice:has(input:checked) { border-color: #375f56; background: var(--mint); }
.window-diagram { position: relative; width: 95px; height: 72px; padding: 10px; border: 1px solid var(--line); background: var(--mint); }
.window-diagram i { position: absolute; inset: 12%; border: 1.5px solid #316059; background: #f5faf6; }
.window-diagram i + i { display: none; }
.window-diagram--slider i { right: 48%; }
.window-diagram--slider i + i { display: block; right: 12%; left: 49%; }
.window-diagram--hung i { bottom: 48%; }
.window-diagram--hung i + i { display: block; top: 49%; bottom: 12%; }
.window-diagram--casement i + i { display: block; right: 42%; transform: skewY(-20deg); transform-origin: left bottom; background: #e6f1ec; }
.window-diagram--awning i + i { display: block; top: 14%; bottom: 42%; transform: perspective(45px) rotateX(-30deg); transform-origin: top; background: #e6f1ec; }
.shortlist-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 14px; margin-bottom: 13px; padding: 9px 10px; border: 1px solid #b7cbd2; background: #e8f0f3; }
.shortlist-link p { font-weight: 650; }
.shortlist-link ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.shortlist-link li button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 8px; border: 1px solid #829da4; background: white; color: var(--ink); font-size: .87rem; font-weight: 650; cursor: pointer; }
.shortlist-link li button:hover { background: var(--mint); }
.shortlist-link li span { font-size: 1.12rem; }
.shortlist-link .action { min-height: 44px; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 49px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.action:hover { background: #e6f5c4; }
.action:disabled { opacity: .65; cursor: wait; }
.before { border-block: 1px solid var(--line); background: var(--mint); }
.before__grid, .brief__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(25px, 8vw, 93px); }
.before dl { margin: 0; }
.room-guides { margin-top: 14px; }
.before dl div { padding: 13px 0 15px; border-top: 1px solid #abc4ba; }
.before dt { font-family: var(--mono); font-size: .85rem; font-weight: 700; }
.before dd { margin: 4px 0 0; }
form { display: grid; gap: 13px; padding: clamp(15px,3vw,25px); border: 1px solid #879f96; background: white; }
.brief__selection { padding: 10px 12px; background: var(--mint); font-weight: 700; }
.brief__grid .brief__selection { margin-top: 18px; }
.brief__grid > #project-review { align-self: start; margin: 0; }
.brief__selection p + p { margin-top: 4px; font-weight: 500; }
.edit-styles { display: inline-block; margin-top: 8px; font-size: .91rem; }
.explorer .hero h1, .project-view .brief h1 { max-width: 13ch; font-size: clamp(2.65rem, 5.1vw, 5rem); }
.project-view .brief { padding-top: clamp(28px, 5vw, 66px); border-top: 7px solid var(--lime); }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
form label { display: block; font-size: .88rem; font-weight: 700; }
form label span { font-weight: 400; }
.field-help { display: block; margin: 4px 0 6px; color: #335a53; }
form :is(input,select,textarea) { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 9px 10px; margin-top: 4px; border: 1px solid #879f96; border-radius: 0; background: white; color: var(--ink); font-size: 1rem; font-weight: 400; }
form textarea { resize: vertical; }
form button { justify-self: start; }
.form-status { font-weight: 600; }
.form-status:empty { position: absolute; }
.form-status[data-state=error] { color: #a12b20; }
.page-footer__inner { flex-wrap: wrap; padding-block: 14px; }
#configured-links { display: flex; flex-wrap: wrap; gap: 10px 15px; }

@media (min-width: 980px) {
  .explorer main { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 2.15fr); align-items: start; gap: clamp(18px, 4vw, 55px); width: min(100% - 56px, 1240px); margin: clamp(30px, 5vw, 70px) auto; }
  .explorer main .shell { width: 100%; }
  .explorer .hero { padding: clamp(15px, 2.2vw, 28px); border: 1px solid var(--line); }
  .explorer .hero__grid, .explorer .priority__options { grid-template-columns: 1fr; }
  .explorer .hero__grid { gap: 25px; }
  .explorer .hero h1 { font-size: clamp(2rem, 3vw, 2.8rem); }
  .explorer .priority { padding: 0; border: 0; background: transparent; }
  .explorer .styles { padding: 0; }
}

@media (max-width: 790px) {
  .shell { width: min(100% - 36px, 690px); }
  .hero__grid { gap: 23px; }
  h1 { font-size: clamp(46px, 8.1vw, 73px); }
  .hero { padding-block: 30px; }
  .style-row { grid-template-columns: 75px minmax(0,.7fr) minmax(0,1fr) auto; gap: 11px 14px; }
  .window-diagram { width: 74px; height: 58px; }
  .before__grid, .brief__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .page-header__inner { min-height: 62px; gap: 9px; }
  .brand { gap: 6px; font-size: .98rem; }
  .brand-mark { width: 17px; }
  nav { gap: 10px; }
  nav a { font-size: .79rem; white-space: nowrap; }
  .hero { padding-block: 22px; }
  .hero__grid { grid-template-columns: 1fr; gap: 15px; }
  h1 { max-width: 15ch; font-size: clamp(2.25rem, 10.3vw, 3.1rem); }
  .hero__copy p { margin-top: 10px; }
  .priority button { min-height: 49px; padding: 6px; font-size: .86rem; }
  .priority p { font-size: .92rem; }
  .styles { padding-top: 23px; }
  .style-row { grid-template-columns: 58px 1fr auto; gap: 8px 10px; }
  .style-row__reason { grid-row: 2; grid-column: 1 / -1; }
  .window-diagram { width: 58px; height: 48px; }
  .choice { padding: 6px; font-size: .78rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .page-header__inner { gap: 7px; }
  .brand { font-size: .9rem; }
  nav { gap: 7px; }
  nav a { font-size: .72rem; }
}
