:root {
  --space: #e9e7df;
  --contact: #edf1ed;
  --field: #fffef9;
  --accent-soft: #e8cc7e;
  --accent-text: #786019;
  --logo-stone: #999274;
  --panel-radius: 8px;
  --button-radius: 5px;
  --portrait-radius: 240px 240px 7px 7px;
}

/* A light palette reaches every section, including fields and the original artwork. */
.site-header { border-color: var(--line); }
.brand-type > span { color: var(--accent-text); }
.text-link, .contact-email { border-color: var(--muted); }
.portrait-frame { background: var(--sage); border-radius: var(--portrait-radius); }
.debi-sun { background: var(--accent-soft); }
.debi-visual::before { border-color: var(--line); border-radius: var(--portrait-radius); }
.hero-note { border-color: var(--line); border-radius: var(--portrait-radius); }
.audience-list { border-color: var(--line); }
.audience-number, .step-number { color: var(--accent-text); }
.space-section { background: var(--space); }
.space-copy > p:not(.eyebrow) { color: var(--muted); }
.office-image, .form-panel, dialog { border-radius: var(--panel-radius); }
.contact-section { background: var(--contact); }
.form-panel, dialog { border-color: var(--line); }
.field input, .field textarea, .draft-copy-fallback {
  background: var(--field); border-color: var(--line); border-radius: var(--button-radius);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline-color: var(--blue); border-color: var(--blue); }
.form-result { border-color: var(--line); }
.button, .menu-toggle { border-radius: var(--button-radius); }
.site-header nav { border-color: var(--line); }
dialog::backdrop { background: color-mix(in srgb, var(--green-dark) 52%, transparent); }

:root[data-page-shape="soft"] {
  --panel-radius: 22px; --button-radius: 14px; --portrait-radius: 36px;
}
:root[data-page-shape="clean"] {
  --panel-radius: 3px; --button-radius: 2px; --portrait-radius: 4px;
}
:root[data-page-shape="organic"] {
  --panel-radius: 26px 8px 26px 8px; --button-radius: 999px;
  --portrait-radius: 46% 46% 8% 8% / 32% 40% 8% 8%;
}
:root[data-page-shape="clean"] .debi-visual::before { transform: none; }
:root[data-page-type="editorial"] h1,
:root[data-page-type="editorial"] h2,
:root[data-page-type="editorial"] .faq-title { letter-spacing: -.045em; line-height: 1.06; }
:root[data-page-type="calm"] h1,
:root[data-page-type="calm"] h2,
:root[data-page-type="calm"] .faq-title { letter-spacing: -.015em; line-height: 1.13; }
:root[data-page-type="calm"] .hero-description { line-height: 1.9; }
:root[data-page-type="modern"] h1,
:root[data-page-type="modern"] h2,
:root[data-page-type="modern"] .faq-title { letter-spacing: -.025em; font-weight: 500; }
:root[data-page-type="modern"] h1 em,
:root[data-page-type="modern"] h2 em { font-weight: 500; }
:root[data-page-type="editorial"] .eyebrow { letter-spacing: .22em; }

/* The header icon retains the 4 × 4 geometry of the supplied style_select.svg. */
.header-inner { gap: 20px; }
.style-picker { position: relative; flex: none; margin-inline: auto; }
.style-picker[hidden], .style-panel[hidden] { display: none !important; }
.style-toggle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 58px; min-height: 68px; padding: 5px; color: var(--green-dark);
  border: 1px solid transparent; border-radius: 6px; background: transparent;
}
.style-toggle:hover, .style-toggle[aria-expanded="true"] {
  background: var(--paper); border-color: var(--line);
}
.style-toggle > span { font-family: var(--sans); font-size: 10px; line-height: 1.3; letter-spacing: .025em; }
.style-picker-icon { display: block; width: 39px; height: 39px; }
.style-active-square { fill: transparent; }
.style-square.is-active .style-active-square { fill: var(--green); stroke: var(--green-dark); stroke-width: 7px; }
.style-panel {
  position: absolute; z-index: 15; top: calc(100% + 15px); left: 50%; transform: translateX(-50%);
  width: 366px; max-width: calc(100vw - 32px); padding: 21px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
  box-shadow: 0 14px 50px color-mix(in srgb, var(--green-dark) 17%, transparent);
  max-height: calc(100dvh - 118px); overflow-y: auto; overscroll-behavior: contain;
}
.style-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.style-panel .eyebrow { font-size: 9px; letter-spacing: .13em; margin-bottom: 6px; }
.style-panel h2 { font-family: var(--serif); font-size: 29px; line-height: 1.15; letter-spacing: -.025em; }
.style-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--green-dark); font-size: 25px; line-height: 1; }
.style-selection { margin-block: 17px 15px; min-height: 58px; }
.style-selection strong { display: block; color: var(--green-dark); font-size: 12px; font-weight: 600; }
.style-selection p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 4px 0 0; }
.style-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.style-option { min-width: 0; padding: 4px; background: transparent; color: var(--green-dark); border: 2px solid transparent; border-radius: 7px; }
.style-option:hover { background: var(--sage); }
.style-option[aria-checked="true"] { border-color: var(--green); background: var(--sage); }
/* Small composition previews stay as gentle as the practice styles. */
.style-option-art { display: flex; align-items: flex-start; position: relative; overflow: hidden; width: 100%; height: 59px; background: var(--option-paper); border: 1px solid var(--option-border); border-radius: 5px; }
.style-option-art::before { content: ''; position: absolute; right: 7px; top: 8px; width: 8px; height: 8px; background: var(--option-accent); border-radius: 50%; }
.style-option-art::after { content: ''; position: absolute; bottom: 5px; left: 8px; right: 8px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--option-primary) 0 31%, transparent 31% 35%, var(--option-secondary) 35% 65%, transparent 65% 69%, var(--option-accent) 69% 100%); }
.style-option-number { padding: 4px; color: var(--option-primary); font-family: var(--sans); font-size: 8px; font-weight: 500; line-height: 1; }
.style-option-type { position: absolute; inset: 17px 0 auto; text-align: center; color: var(--option-primary); font-family: var(--option-font); font-weight: var(--option-weight); font-size: 26px; line-height: 1.1; }
.style-option[data-style-id="grounded"] .style-option-art { border-radius: 22px 22px 4px 4px; }
.style-option[data-style-id="cobalt-studio"] .style-option-art::before { background: transparent; border: 1px solid var(--option-primary); opacity: .5; }
.style-option[data-style-id="ink-paper"] .style-option-type { text-align: left; padding-left: 8px; }
.style-option[data-style-id="terracotta-house"] .style-option-art { border-radius: 16px; background: var(--option-highlight); }
.style-option[data-style-id="nordic"] .style-option-type { text-align: left; padding-left: 8px; font-size: 24px; }
.style-option[data-style-id="sunroom"] .style-option-art { background: var(--option-highlight); }
.style-option[data-style-id="sunroom"] .style-option-art::before { width: 18px; height: 18px; right: -4px; top: -4px; }
.style-option[data-style-id="botanical"] .style-option-art { border-radius: 40% 40% 5px 5px; }
.style-option[data-style-id="botanical"] .style-option-art::before { width: 9px; height: 15px; border-radius: 90% 0 90% 0; top: 7px; right: 4px; }
.style-option[data-style-id="swiss"] .style-option-art::before { display: none; }
.style-option[data-style-id="lavender-cloud"] .style-option-art { border-radius: 18px; background: var(--option-highlight); }
.style-option[data-style-id="lavender-cloud"] .style-option-art::before { width: 18px; height: 18px; right: -5px; top: -5px; }
.style-option[data-style-id="maritime"] .style-option-art { border-radius: 18px 18px 5px 5px; }
.style-option[data-style-id="maritime"] .style-option-art::before { display: none; }
.style-option[data-style-id="clay-gallery"] .style-option-art::before { top: 15px; left: 5px; width: 16px; height: 34px; border-radius: 10px 10px 3px 3px; }
.style-option[data-style-id="clay-gallery"] .style-option-type { text-align: right; padding-right: 4px; font-size: 23px; }
.style-option[data-style-id="atelier"] .style-option-art::before { display: none; }
.style-option[data-style-id="atelier"] .style-option-type { font-size: 27px; }
.style-option[data-style-id="color-block"] .style-option-art { background: var(--option-highlight); border-radius: 5px 18px 5px 5px; }
.style-option[data-style-id="blueprint"] .style-option-type { text-align: left; padding-left: 7px; font-size: 24px; }
.style-option[data-style-id="blueprint"] .style-option-art::before { display: none; }
.style-option[data-style-id="field-notes"] .style-option-art { border-radius: 3px; border-left: 4px solid var(--option-accent); }
.style-option[data-style-id="modern-sage"] .style-option-art { border-radius: 14px; }
.style-option[data-style-id="modern-sage"] .style-option-art::before { background: transparent; border: 1px solid var(--option-primary); opacity: .5; }
.style-option-label { display: flex; align-items: center; justify-content: center; min-height: 28px; font-size: 10px; line-height: 1.25; margin-top: 3px; overflow-wrap: anywhere; }
.style-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.style-panel-footer button { color: var(--green-dark); min-height: 34px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 701px) and (max-width: 1000px) {
  .header-inner { gap: 14px; }
  .brand { gap: 9px; }
  .brand img { width: 43px; height: 43px; }
  .brand-type { font-size: 30px; }
  .site-header nav { gap: 15px; font-size: 13px; }
  .site-header nav .button-small { gap: 12px; padding-inline: 15px; font-size: 13px; }
  .style-toggle { width: 49px; }
  .style-picker-icon { width: 33px; height: 33px; }
}
@media (max-width: 700px) {
  .header-inner { gap: 10px; }
  .style-picker { margin-left: auto; margin-right: 0; }
  .style-toggle { width: 44px; min-height: 57px; padding: 3px; }
  .style-picker-icon { width: 31px; height: 31px; }
  .style-toggle > span { font-size: 8px; }
  .style-panel { position: fixed; top: 86px; left: auto; right: 16px; transform: none; width: 366px; max-height: calc(100dvh - 102px); padding: 18px; }
  .style-panel h2 { font-size: 27px; }
  .style-selection { margin-block: 13px; min-height: 54px; }
  .style-option-art { height: 57px; }
  .style-panel-footer { padding-top: 10px; margin-top: 8px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 7px; }
  .brand { gap: 8px; }
  .brand img { width: 35px; height: 35px; }
  .brand-type { font-size: 26px; }
  .brand-type > span { font-size: 6px; }
  .style-options { gap: 6px; }
}
