:root {
  --wall: #E8E9E0;
  --paper: #FDFCF9;
  --ink: #1D2622;
  --door: #2E4B3E;
  --brass: #A47B2C;
  --muted: #5A625B;
  --line: #C7CFC4;
  --error: #9B2C2C;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--door); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 42rem; }

.btn {
  display: inline-block; font: 600 1rem/1 var(--body); padding: 1rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid var(--door); background: var(--door); color: var(--paper); text-decoration: none; cursor: pointer;
}
.btn:hover { background: #24392F; }
.btn.secondary { background: transparent; color: var(--door); }
.btn.secondary:hover { background: rgba(46,75,62,.07); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Site header */
.site-head { background: var(--wall); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 1.25rem; }
.brand { font: 400 1.6rem/1 var(--display); color: var(--ink); text-decoration: none; }
.brand span { font: 500 .8rem/1 var(--body); color: var(--muted); margin-left: .4rem; letter-spacing: .02em; }
.lettering { font-family: var(--display); fill: var(--ink); }
.drawing .lettering { opacity: 0; animation: fade .8s 2.1s ease forwards; }
@keyframes fade { to { opacity: 1; } }
.site-head nav a { margin-left: 1.5rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--door); text-decoration: underline; }

/* Frame object */
.framed { position: relative; }
.frame {
  --frame: #2A2622;
  background: var(--frame); padding: clamp(10px, 2.2vw, 18px); border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 22px 34px -20px rgba(29,38,34,.55), 0 4px 8px -4px rgba(29,38,34,.3);
}
.frame.white { --frame: #F4F4F0; }
.frame.oak { --frame: #B8915E; }
.mat { background: var(--paper); padding: 20% 9%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 2px 6px rgba(0,0,0,.12); }
.mat svg { width: 100%; height: auto; display: block; }

/* House art variables (ink and watercolor default) */
.house { --h-stroke: var(--ink); --h-w: 2; --h-body: rgba(150,178,192,.5); --h-roof: rgba(64,72,80,.55);
  --h-door: rgba(46,75,62,.85); --h-glass: rgba(205,220,226,.65); --h-green: rgba(104,138,88,.55); }
.house .ln { stroke: var(--h-stroke); stroke-width: var(--h-w); stroke-linejoin: round; stroke-linecap: round; }
.house .b { fill: var(--h-body); } .house .r { fill: var(--h-roof); } .house .d { fill: var(--h-door); }
.house .g { fill: var(--h-glass); } .house .v { fill: var(--h-green); } .house .n { fill: none; }
.house.fine-line { --h-w: 1.4; --h-body: transparent; --h-roof: transparent; --h-door: transparent; --h-glass: transparent; --h-green: transparent; }
.house.gouache { --h-stroke: rgba(29,38,34,.28); --h-w: 1.2; --h-body: #9DB6C0; --h-roof: #4B545A; --h-door: #2E4B3E; --h-glass: #E6ECEE; --h-green: #6C8A5D; }

/* Hero */
.hero { background: var(--wall); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-art { position: relative; isolation: isolate; padding-top: 2.75rem; max-width: 440px; justify-self: center; width: 100%; }
.hero-art::before { /* picture light glow on the wall */
  content: ""; position: absolute; left: 50%; top: 0; width: 120%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,240,205,.75), rgba(255,240,205,0) 65%); pointer-events: none; z-index: -1;
}
.picture-light { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); width: 46%; height: 10px; border-radius: 6px;
  background: linear-gradient(#C69A45, #8C6522); box-shadow: 0 2px 3px rgba(0,0,0,.25); z-index: 2; }
.picture-light::before { content: ""; position: absolute; left: 50%; top: -1.4rem; width: 4px; height: 1.4rem; background: #8C6522; transform: translateX(-50%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.75rem; }
.hero-actions small { color: var(--muted); font-size: .95rem; }

.drawing .ln { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: draw 1.9s cubic-bezier(.45,.05,.3,1) forwards, wash .9s 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wash { to { fill-opacity: 1; } }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(s); font: 400 2.4rem/1 var(--display); color: var(--brass); display: block; margin-bottom: .75rem; }
.steps p { color: var(--muted); }

.styles-sec { background: var(--wall); }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.style-grid figure { margin: 0; }
.style-grid .frame { max-width: 300px; }
.style-grid figcaption { margin-top: 1.25rem; }
.style-grid figcaption p { color: var(--muted); margin: .25rem 0 0; }

/* Order form */
.order { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.order aside p { color: var(--muted); }
.tips { padding-left: 1.1rem; color: var(--muted); }
.tips li { margin-bottom: .4rem; }
form.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend, .label { font-weight: 600; margin-bottom: .6rem; display: block; padding: 0; }
.hint { color: var(--muted); font-size: .95rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
input[type=text]:focus, input[type=email]:focus, textarea:focus { border-color: var(--door); outline: none; box-shadow: 0 0 0 3px rgba(46,75,62,.18); }
textarea { min-height: 5.5rem; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row label { display: block; }
.choices { display: grid; gap: .6rem; }
.choices.inline { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .8rem .95rem; cursor: pointer; background: var(--paper); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; font-weight: 600; }
.choice span { color: var(--muted); font-size: .95rem; }
.choice:has(input:checked) { border-color: var(--door); box-shadow: inset 0 0 0 1px var(--door); background: rgba(46,75,62,.05); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
.swatch-dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; vertical-align: -.1rem; margin-right: .45rem; border: 1px solid rgba(0,0,0,.25); }

.drop { display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: 1.5rem; cursor: pointer; background: var(--paper); }
.drop:hover, .drop:focus-within { border-color: var(--door); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop img { max-height: 220px; width: auto; border-radius: 2px; margin-bottom: .75rem; }
.photo-msg { font-size: .95rem; margin-top: .6rem; }
.photo-msg.warn { color: #7A5A12; } .photo-msg.ok { color: var(--door); } .photo-msg.err, .form-error { color: var(--error); }

.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-bottom: 1.25rem; }
.total strong { font: 400 2rem/1 var(--display); }
.total span { color: var(--muted); font-size: .95rem; }
form.card .btn { width: 100%; }
.form-error { margin-top: .9rem; }

.agents { background: var(--door); color: var(--paper); }
.agents .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.agents p { color: rgba(252,252,248,.82); }
.agents ul { margin: 0; padding-left: 1.1rem; color: rgba(252,252,248,.9); }
.agents li { margin-bottom: .5rem; }
.agents .btn { background: var(--paper); color: var(--door); border-color: var(--paper); margin-top: 1rem; }
.agents .btn:hover { background: #fff; }

details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 400 1.3rem/1.3 var(--display); list-style-position: outside; }
details p { margin: .75rem 0 0; color: var(--muted); }

footer { background: var(--wall); padding-block: 2.5rem; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .hero .wrap, .order, .agents .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .steps, .style-grid { grid-template-columns: 1fr; }
  .style-grid .frame { max-width: 260px; }
  .site-head nav a:not(:last-child) { display: none; }
}
@media (max-width: 520px) {
  .row, .choices.inline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .drawing .ln { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .drawing .lettering { animation: none; opacity: 1; }
}
