/* The Quilted Muse. Colors come from the star-block logo. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --cream: #fbf6ee;
  --paper: #fffdf9;
  --ink: #2b2420;
  --text: #4a403a;
  --muted: #776a61;
  --line: #e9ddcf;
  --blush: #e6afa2;
  --blush-tint: #f8e7e1;
  --gold: #e3bd5e;
  --gold-tint: #faf0d6;
  --tan: #c9a985;
  --rose: #a5463c;        /* buttons and links: 6:1 on cream */
  --rose-dark: #86362e;
  --error: #b3261e;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
  --gap: clamp(64px, 9vw, 120px);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 36, 32, 0.06), 0 12px 32px rgba(43, 36, 32, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 400 17px/1.7 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 560; line-height: 1.12; margin: 0 0 0.45em; font-variation-settings: "SOFT" 60, "WONK" 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h1 em, h2 em { font-style: italic; font-weight: 440; color: var(--rose); }
p { margin: 0 0 1em; }
strong { color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 1em; top: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--gap) 0; }
.hero + .section, .page-head + .section, .section:not(.band) + .section:not(.band) { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1rem;
  font: 700 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0l2.6 6.3L19 4l-2.3 6.4L19 16l-6.4-2.3L10 20l-2.6-6.3L1 16l2.3-5.6L1 4l6.4 2.3z' fill='%23e3bd5e'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text); max-width: 38em; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* A quilting stitch: a dashed line. */
.stitch { border: 0; height: 0; border-top: 2px dashed var(--tan); opacity: 0.6; margin: 0; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font: 700 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  padding: 1em 1.55em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--rose); color: #fff; }
.button.primary:hover { background: var(--rose-dark); color: #fff; }
.button.ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.button.ghost:hover { background: var(--ink); color: var(--cream); }
.button.light { background: var(--cream); color: var(--ink); }
.button.light:hover { background: #fff; color: var(--ink); }
.button.outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.button.outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 246, 238, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 80px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; transition: transform 0.4s ease; }
.brand:hover img { transform: rotate(45deg); }
.brand span { font: 600 1.4rem/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.3em 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px dashed var(--rose); }
.site-nav .button { padding: 0.8em 1.3em; color: #fff; border-bottom: 2px solid transparent; font-size: 0.95rem; }
.site-nav .button[aria-current="page"] { border: 2px solid transparent; }

.menu { display: none; }
@media (max-width: 860px) {
  .site-header .bar { height: 68px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 1.2rem; }
  .site-nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5em; font-weight: 700; color: var(--ink); padding: 0.65em 1em; border: 2px solid var(--ink); border-radius: 999px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 18px; height: 18px; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.5rem; display: grid; }
  .menu-panel a { padding: 0.85em 1em; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
  .menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--blush-tint); }
  .menu-panel .button { margin-top: 0.3rem; color: #fff; }
}

/* ---------- Home hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 var(--gap); }
.hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero .lead { margin-bottom: 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-facts li { font-size: 0.9rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px dashed var(--tan); border-radius: 999px; padding: 0.45em 1em; }

/* Four photos laid out like quilt blocks, each with a stitched edge. */
.patchwork { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1.02; }
.patchwork figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--line); }
.patchwork figure:first-child { grid-row: span 2; }
.patchwork img { width: 100%; height: 100%; object-fit: cover; }
.patchwork figure::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255, 255, 255, 0.75); border-radius: 9px; pointer-events: none; }
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .patchwork { aspect-ratio: 4 / 3; }
}

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 1.2rem; align-items: stretch; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: 1fr 1fr; } .estimator { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.price-card::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--line); border-radius: 12px; pointer-events: none; }
.price-card h3 { margin-bottom: 0.9rem; }
.price { font: 600 3.2rem/1 var(--serif); color: var(--ink); letter-spacing: -0.03em; margin: 0.2rem 0 0.3rem; }
.price small { font: 600 1rem/1.3 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 0.5em; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.55rem; }
.price-card li { padding-left: 1.4em; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.price-card .example { margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); background: var(--gold-tint); border-radius: 10px; padding: 0.8rem 1rem; }

.estimator { background: var(--ink); color: #eadfd5; border-radius: var(--radius); padding: 1.8rem; }
.estimator h3 { color: #fff; }
.estimator p.note { font-size: 0.86rem; color: #c3b6ab; margin: 1rem 0 0; }
.estimator .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.6rem; }
.estimator label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #c3b6ab; margin-bottom: 0.35rem; }
.estimator input, .estimator select {
  width: 100%; font: inherit; font-size: 1.05rem; color: #fff; background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 10px; padding: 0.7em 0.8em;
}
.estimator select { appearance: none; background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 0.9em center; padding-right: 2.3em; }
.estimator select option { color: var(--ink); }
.estimator input:focus, .estimator select:focus { outline: none; border-color: var(--gold); }
.estimator .full { grid-column: 1 / -1; }
.estimate { margin-top: 1.3rem; border-top: 1.5px dashed rgba(255, 255, 255, 0.25); padding-top: 1rem; display: grid; gap: 0.35rem; }
.estimate div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.estimate .total { font: 600 1.7rem/1.2 var(--serif); color: var(--gold); margin-top: 0.3rem; }
.estimate .total span:first-child { font: 700 0.95rem/2.2 var(--sans); color: #fff; }

/* ---------- Gallery ---------- */

.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; background: var(--line); }
.gallery img { width: 100%; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(255, 255, 255, 0); border-radius: 8px; transition: border-color 0.2s ease; pointer-events: none; }
.gallery a:hover::after, .gallery a:focus-visible::after { border-color: rgba(255, 255, 255, 0.8); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.strip a { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip + .actions { margin-top: 1.6rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(28, 23, 20, 0.92); }
.lightbox .frame { width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox .caption { position: fixed; left: 0; right: 0; bottom: 22px; text-align: center; color: #e9dfd6; font-size: 0.95rem; padding: 0 1rem; }
.lightbox button { position: fixed; border: 0; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .frame { padding: 64px 10px 90px; } .lightbox .prev, .lightbox .next { top: auto; bottom: 56px; transform: none; } }

/* ---------- About ---------- */

.band { background: var(--blush-tint); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } }
.framed { position: relative; }
.framed img { width: 100%; border-radius: 16px; position: relative; z-index: 1; }
.framed::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px dashed var(--rose); border-radius: 18px; opacity: 0.55; }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.facts { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.facts strong { display: block; font: 600 1.25rem/1.2 var(--serif); margin-bottom: 0.25rem; }
.facts span { font-size: 0.9rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Call to action over the houses quilt ---------- */

.cta { position: relative; overflow: hidden; color: #f4ebe3; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 28, 24, 0.9) 0%, rgba(36, 28, 24, 0.72) 55%, rgba(36, 28, 24, 0.35) 100%); z-index: 1; }
.cta .container { position: relative; z-index: 2; padding-top: clamp(72px, 10vw, 132px); padding-bottom: clamp(72px, 10vw, 132px); }
.cta h2 { color: #fff; max-width: 14em; }
.cta p { max-width: 34em; font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta .eyebrow { color: var(--gold); }

/* ---------- Page heads ---------- */

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); }
.page-head .lead { margin-bottom: 0; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ways li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; display: flex; gap: 1rem; align-items: flex-start; }
.ways .icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--blush-tint); display: grid; place-items: center; }
.ways svg { width: 22px; height: 22px; fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ways h3 { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0.2rem 0 0.45rem; }
.ways a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.ways a:hover { color: var(--rose); text-decoration: underline; }
.ways .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed var(--line); border-radius: 15px; pointer-events: none; }
.form-card > * { position: relative; }
.form-card h2 { font-size: 1.7rem; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { form.contact .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 0.4rem; }
form.contact input, form.contact textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid #ddd0c1; border-radius: 12px; padding: 0.8em 0.95em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
form.contact textarea { min-height: 10em; resize: vertical; }
form.contact input:hover, form.contact textarea:hover { border-color: var(--tan); }
form.contact input:focus, form.contact textarea:focus { outline: none; background: #fff; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(165, 70, 60, 0.14); }
form.contact [aria-invalid="true"] { border-color: var(--error); background: #fff; }
.field-error { color: var(--error); font-size: 0.85rem; margin-top: 0.35rem; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 0.3rem 0 1rem; }
form.contact .button { width: 100%; padding: 1.1em; font-size: 1.05rem; }
form.contact .button[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-status { margin: 1rem 0 0; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.form-status.success { background: var(--gold-tint); color: var(--ink); border-radius: 12px; padding: 1.2rem 1.3rem; font-weight: 700; margin: 0; }

/* ---------- Simple pages ---------- */

.narrow { max-width: 620px; margin: 0 auto; text-align: center; }
.narrow .actions { justify-content: center; }
.narrow ul { text-align: left; display: inline-block; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0 28px; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.site-footer .logo img { width: 132px; }
.site-footer h2 { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0.3rem 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--rose); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 2px dashed var(--line); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .logo { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
