:root {
  color-scheme: light;
  --coffee: #3d2b22;
  --coffee-soft: #604638;
  --gold: #ad8958;
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --beige: #e8ded0;
  --sand: #cbb99f;
  --forest: #526454;
  --text: #443a32;
  --muted: #81776e;
  --line: #e6dfd6;
  --danger: #a44838;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-header { min-height: 78px; padding: 0 clamp(22px, 7vw, 104px); display: flex; align-items: center; justify-content: space-between; background: var(--ivory); border-bottom: 1px solid rgba(61,43,34,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--coffee); text-decoration: none; }
.brand-logo { display: block; width: 54px; height: 54px; flex: none; object-fit: contain; }
.brand-text { display: grid; gap: 5px; }
.brand-name { font: 500 1.15rem var(--serif); letter-spacing: .01em; }
.brand-sub { color: var(--muted); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; }
.site-header nav a { color: var(--coffee); font-size: .91rem; text-decoration: none; }
.site-header nav a:hover, .text-button:hover { color: var(--gold); }
.hero { width: min(1320px, 100%); min-height: 650px; margin: 0 auto; padding: 80px clamp(22px, 7vw, 104px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(44px, 8vw, 110px); }
.hero-copy-block { padding: 14px 0 24px; }
.eyebrow { margin: 0 0 17px; color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .2em; line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.hero h1 { margin: 0; color: var(--coffee); font-size: clamp(3.6rem, 7vw, 6.7rem); line-height: .99; letter-spacing: -.045em; }
.hero-copy { max-width: 510px; margin: 26px 0 31px; color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: .84rem; font-weight: 600; text-decoration: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button-primary { color: var(--paper); background: var(--coffee); }
.button-primary:hover { background: var(--coffee-soft); }
.button-outline { min-height: 42px; color: var(--coffee); background: transparent; border-color: var(--sand); }
.button-outline:hover { background: var(--ivory); }
.hero-note { margin: 17px 0 0; color: var(--muted); font: italic .92rem var(--serif); }
.hero-art { position: relative; min-height: 465px; aspect-ratio: .98; overflow: hidden; background: #ded1bd; isolation: isolate; }
.hero-art::before { position: absolute; z-index: -2; inset: 0; content: ''; background: linear-gradient(130deg, #ddd0bb 0 54%, #bca990 54% 100%); }
.art-wall { position: absolute; z-index: -1; top: 0; right: 0; width: 22%; height: 75%; background: #c8b69d; }
.art-window { position: absolute; top: 10%; left: 11%; width: 33%; height: 42%; display: flex; border: 8px solid #f5efe5; background: linear-gradient(150deg, #bac5b2 0 48%, #8f9c86 49%); box-shadow: 0 4px 18px #58422d1c; }
.art-window span { width: 50%; border-right: 4px solid #f5efe5; }
.art-bed { position: absolute; right: 4%; bottom: 10%; width: 76%; height: 40%; background: #f0e8dd; box-shadow: 0 18px 30px #59452d23; }
.art-headboard { position: absolute; z-index: -1; top: -24%; left: -3%; width: 105%; height: 40%; border-radius: 2px; background: #836a55; }
.art-pillow { position: absolute; top: 10%; width: 24%; height: 28%; background: #d5c4ad; }
.pillow-one { left: 10%; transform: rotate(-5deg); }.pillow-two { left: 38%; background: #eee4d5; transform: rotate(5deg); }
.art-cover { position: absolute; top: 34%; left: -1%; width: 102%; height: 69%; background: #c5a884; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
.art-side-table { position: absolute; z-index: -1; right: 2%; bottom: 13%; width: 15%; height: 18%; background: #6e5440; }
.art-side-table span { position: absolute; top: -16%; left: 20%; width: 60%; height: 17%; border-radius: 50%; background: #e4d8c6; }
.art-plant { position: absolute; bottom: 24%; left: 8%; width: 50px; height: 122px; }
.art-plant i { position: absolute; bottom: 32%; left: 44%; width: 17px; height: 70px; border-radius: 100% 0 100% 0; background: #68745d; transform-origin: bottom; }
.art-plant i:nth-child(1) { transform: rotate(-36deg); }.art-plant i:nth-child(2) { transform: rotate(5deg); height: 87px; }.art-plant i:nth-child(3) { transform: rotate(35deg); height: 72px; }
.art-plant b { position: absolute; bottom: 0; left: 22%; width: 58%; height: 32%; background: #aa805b; clip-path: polygon(10% 0, 90% 0, 75% 100%, 25% 100%); }
.hero-art > p { position: absolute; right: 8%; bottom: 4%; margin: 0; color: var(--paper); font: italic 1rem var(--serif); text-shadow: 0 1px 8px #33231766; }
.studio-note { padding: 83px 22px 95px; text-align: center; background: #eee7dc; }
.studio-note h2 { margin: 0; color: var(--coffee); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.studio-note > p:last-child { max-width: 510px; margin: 20px auto 0; color: var(--muted); line-height: 1.75; }
.site-footer { min-height: 128px; padding: 26px clamp(22px, 7vw, 104px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #f4eee5; background: var(--coffee); }
.brand-footer { color: #f4eee5; }.brand-footer .brand-sub { color: #d1c3b4; }
.site-footer p, .site-footer small { margin: 0; color: #d1c3b4; font-size: .82rem; }
.designer-shell { width: min(920px, 100%); margin: 0 auto; padding: 65px 28px 100px; }
.designer-intro { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.designer-intro h1 { margin: 0; color: var(--coffee); font-size: clamp(3rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.035em; }
.designer-intro > p:last-child { max-width: 540px; margin: 18px auto 0; color: var(--muted); font-size: .98rem; line-height: 1.8; }
.form-section { margin-bottom: 18px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); background: var(--paper); }
.section-heading { margin-bottom: 25px; display: flex; align-items: flex-start; gap: 19px; }
.step-number { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--beige); border-radius: 50%; color: var(--gold); font-size: .68rem; letter-spacing: .06em; }
.section-heading h2 { margin: 0; color: var(--coffee); font-size: 1.62rem; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.drop-zone { min-height: 245px; display: grid; place-items: center; border: 1px dashed #c9b99f; background: #fbf9f5; transition: background-color .18s ease, border-color .18s ease; }
.drop-zone.is-dragging { border-color: var(--forest); background: #f1f3ee; }
.upload-placeholder { padding: 30px 18px; display: grid; justify-items: center; gap: 9px; text-align: center; }
.upload-icon { width: 39px; height: 39px; margin-bottom: 3px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: #edf0e9; font-size: 1.15rem; }
.upload-placeholder strong { color: var(--coffee); font: 500 1.2rem var(--serif); }
.muted, .upload-placeholder small { color: var(--muted); font-size: .77rem; }
.upload-placeholder small { margin-top: 4px; }
.preview-wrap { width: 100%; align-self: stretch; }
.preview-wrap[hidden], [hidden] { display: none !important; }
.preview-wrap > img { display: block; width: 100%; max-height: 470px; object-fit: contain; background: #eee7dc; }
.preview-actions { min-height: 54px; padding: 10px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.image-details { color: var(--muted); font-size: .75rem; }
.preview-actions > div { display: flex; gap: 14px; }
.text-button { padding: 4px 0; border: 0; color: var(--coffee-soft); background: transparent; cursor: pointer; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.text-button-danger { color: var(--danger); }
.field-error { min-height: 0; margin: 0; color: var(--danger); font-size: .8rem; }
.field-error:not(:empty) { margin-top: 10px; }
.privacy-note { margin-top: 18px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; background: #f3f0e9; }
.privacy-note > span { color: var(--forest); font-size: 1.1rem; }
.privacy-note p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.privacy-note strong { color: var(--coffee); font-weight: 600; }
.field-grid { display: grid; gap: 17px; }
.field-grid-three { grid-template-columns: repeat(3, 1fr); }.field-grid-two { grid-template-columns: repeat(2, 1fr); }
.field-label { display: grid; align-content: start; gap: 8px; color: var(--coffee); font-size: .83rem; font-weight: 600; }
.field-label > span { display: inline; color: #9b9187; font-size: .75rem; font-weight: 400; }
.field-label input, .field-label select, textarea { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 1px; outline: none; color: var(--text); background: var(--paper); font-size: .84rem; font-weight: 400; }
.field-label input:focus, .field-label select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px #ad89581b; }
.input-with-unit { position: relative; }.input-with-unit input { padding-right: 38px; }.input-with-unit > span { position: absolute; top: 50%; right: 13px; color: var(--muted); font-size: .8rem; transform: translateY(-50%); }
.notes-label { margin: 20px 0 8px; }.notes-label span { display: contents; }
textarea { min-height: 95px; resize: vertical; line-height: 1.6; }
.custom-colour-label { margin-top: 18px; }.budget-label { max-width: calc(50% - 9px); margin-top: 20px; }
.generate-section { margin-top: 34px; padding: clamp(25px, 5vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--paper); background: var(--coffee); }
.generate-section .eyebrow { margin-bottom: 10px; color: #d1b589; }.generate-section h2 { max-width: 440px; margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; }
.generate-button { flex: 0 0 auto; color: var(--coffee); background: #eee1cb; }.generate-button:hover { background: #fff3dd; }
.form-message { min-height: 22px; margin: 14px 0 0; color: var(--forest); font-size: .84rem; text-align: center; }
.results { margin-top: 64px; padding: 44px; border-top: 1px solid var(--line); background: var(--paper); }.results h2 { margin: 0; color: var(--coffee); font-size: 2.4rem; }.brief-summary { color: var(--muted); line-height: 1.7; }
.preview-state { margin-top: 24px; padding: 22px; display: flex; align-items: flex-start; gap: 17px; border: 1px solid var(--line); background: #fbf9f5; }.preview-state-mark { color: var(--gold); font-size: 1.4rem; }.preview-state h3 { margin: 0 0 7px; color: var(--coffee); font-size: 1.24rem; }.preview-state p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.site-footer-compact { min-height: 90px; }.site-footer-compact p { margin-left: auto; }

@media (max-width: 800px) {
  .hero { min-height: auto; grid-template-columns: 1fr 1fr; gap: 35px; padding-top: 70px; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(3.4rem, 8vw, 5rem); }.hero-art { min-height: 350px; }
  .site-footer { flex-wrap: wrap; }.site-footer small { margin-left: auto; }
}
@media (max-width: 620px) {
  .site-header { min-height: 68px; padding: 0 20px; }.brand-logo { width: 54px; height: 54px; }.brand-name { font-size: 1.05rem; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 58px 22px 54px; }.hero h1 { font-size: clamp(3.5rem, 16vw, 5.25rem); }.hero-copy { margin: 20px 0 25px; font-size: .94rem; }.hero-art { width: min(100%, 430px); min-height: unset; aspect-ratio: 1 / 1.03; justify-self: center; }
  .studio-note { padding: 65px 23px 72px; }.site-footer { padding: 25px 22px; }.site-footer p { width: 100%; order: 3; }.site-footer small { margin-left: 0; }
  .designer-shell { padding: 48px 16px 72px; }.designer-intro { margin-bottom: 33px; }.designer-intro h1 { font-size: clamp(2.9rem, 12vw, 4.2rem); }.desktop-break { display: none; }.designer-intro > p:last-child { font-size: .9rem; }
  .form-section { padding: 23px 19px; }.section-heading { gap: 13px; }.section-heading h2 { font-size: 1.42rem; }.section-heading p { font-size: .8rem; }.field-grid-three { grid-template-columns: 1fr 1fr; }.field-grid-two { grid-template-columns: 1fr; gap: 16px; }.budget-label { max-width: 100%; }
  .generate-section { align-items: stretch; flex-direction: column; gap: 22px; }.generate-button { width: 100%; }.preview-actions { align-items: flex-start; flex-direction: column; }.preview-actions > div { width: 100%; justify-content: space-between; }.results { padding: 30px 20px; }.results h2 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
