:root {
  --ink: #241c16;
  --ink-soft: #4a3d33;
  --paper: #f7f1e6;
  --paper-2: #efe4d2;
  --chalk: #fffaf3;
  --line: #ddcfba;
  --ply: #c6a36a;
  --hold: #d85a2a;
  --pine: #234237;
  --pine-2: #1a332b;
  --warn: #6e3418;
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(36, 28, 22, 0.03), transparent 280px),
    var(--paper);
  color: var(--ink);
}
img, svg { max-width: 100%; }
a { color: var(--pine); }
a:hover { color: var(--hold); }
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif; line-height: 1.15; font-weight: 600; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--chalk); padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(247, 241, 230, 0.92); position: sticky; top: 0; z-index: 5; }
.header-row, .footer-base { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.header-row { min-height: 72px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.brand strong { font-weight: 750; }
.mark {
  width: 28px; height: 28px; border-radius: 4px; background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 9px 9px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 9px 9px,
    var(--ink);
  position: relative; flex: none;
}
.mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--hold); left: 10px; top: 10px; }
nav[aria-label="Primary"] { display: flex; flex-wrap: wrap; gap: 8px 16px; }
nav[aria-label="Primary"] a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav[aria-label="Primary"] a:hover { color: var(--hold); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; padding: 48px 0 28px; }
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--hold); margin: 0 0 8px; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin: 22px 0; }
.button, button.button {
  display: inline-block; background: var(--pine); color: var(--chalk); text-decoration: none;
  padding: 12px 18px; border-radius: 999px; border: 2px solid var(--pine); font: inherit; font-weight: 650; cursor: pointer;
}
.button:hover, button.button:hover { background: var(--pine-2); color: white; }
.text-link { font-weight: 650; }
.trust-line { color: var(--ink-soft); font-size: 0.95rem; }

.wall-figure { margin: 0; background: var(--chalk); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 4px; }
.wall-figure svg { display: block; width: 100%; height: auto; }
.room { fill: #f3eadc; stroke: #c9b89d; }
.back-wall { stroke: var(--ink); stroke-width: 8; }
.panel { stroke: var(--ply); stroke-width: 14; stroke-linecap: round; }
.mat { stroke: var(--hold); stroke-width: 10; stroke-linecap: round; }
.dim { stroke: var(--ink-soft); stroke-width: 1; }
.angle, .wall-figure text { fill: var(--ink-soft); font-size: 14px; font-family: Georgia, serif; }
.wall-figure figcaption, .prose figcaption { color: var(--ink-soft); font-size: 0.92rem; padding: 8px 8px 12px; }

.spaces { background: var(--ink); color: var(--chalk); padding: 42px 0; }
.spaces h2, .spaces h3 { color: var(--chalk); }
.spaces a { color: var(--chalk); text-decoration: none; background: #31281f; border-radius: 16px; padding: 18px; display: block; min-height: 100%; }
.spaces a:hover { background: #3d3228; }
.space-grid, .guide-grid, .planner-grid { display: grid; gap: 14px; }
.space-grid { grid-template-columns: repeat(4, 1fr); }
.space-grid span { color: var(--ply); font-variant-numeric: tabular-nums; }

.order, .featured, .sisters, .listing { padding: 42px 0; }
.order { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 24px; }
.order ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order a { display: block; padding: 14px 16px; background: var(--chalk); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.order a:hover { border-color: var(--hold); }
.section-head, .listing header { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.guide-grid { grid-template-columns: repeat(2, 1fr); }
.guide-grid a, .listing .guide-grid a {
  display: block; padding: 18px; background: var(--chalk); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none;
}
.guide-grid a:hover { border-color: var(--pine); }
.guide-grid small, .breadcrumb { color: var(--hold); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.sisters { border-top: 1px solid var(--line); }

.article { padding: 28px 0 56px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.disclosure, .planner-note, .form-note {
  background: #fff7ea; border-left: 4px solid var(--hold); padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 18px 0;
}
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: start; }
.prose { font-size: 1.05rem; max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { font-size: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td, .cost-table th, .cost-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 6px; vertical-align: top; }
.prose th:not(:first-child), .prose td:not(:first-child) { text-align: right; }
.rail { position: sticky; top: 88px; display: grid; gap: 10px; font-size: 0.92rem; }
.toc { display: grid; gap: 6px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a.sub { padding-left: 10px; }
.rail > a { font-weight: 700; }

.planner { background: var(--chalk); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.planner-grid { grid-template-columns: repeat(3, 1fr); }
.planner label, .contact-form label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 650; }
.planner input, .planner select, .contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-weight: 450;
}
fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; }
.planner-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.planner-results div { background: var(--paper); border-radius: 12px; padding: 10px; }
.planner-results dt { font-size: 0.78rem; color: var(--ink-soft); }
.planner-results dd { margin: 4px 0 0; font-family: Georgia, serif; font-size: 1.35rem; }
.warnings { padding-left: 18px; }
.warnings li { margin: 8px 0; }
.planner-error { color: var(--warn); font-weight: 700; }
.cost-table { width: 100%; border-collapse: collapse; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.contact-form { display: grid; gap: 12px; max-width: 640px; margin-top: 8px; }
.check { font-weight: 450; grid-template-columns: auto 1fr; align-items: start; }

.site-footer { background: var(--ink); color: #eadfce; padding: 36px 0 18px; }
.site-footer a { color: #f3d3c4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.footer-grid h2 { font-size: 1rem; margin-top: 0; }
.footer-grid a, .footer-base { display: block; margin: 6px 0; }
.footer-base { display: flex; border-top: 1px solid #3d332b; margin-top: 18px; padding-top: 14px; color: #cbbba6; }

.consent {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--chalk); color: var(--ink); border: 1px solid var(--ink); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 10px 40px rgba(36, 28, 22, 0.16); max-width: 880px; margin-inline: auto;
}
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions button {
  min-width: 110px; font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--chalk); cursor: pointer;
}
.consent[hidden] { display: none; }

:focus-visible { outline: 3px solid var(--hold); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero, .order, .article-grid, .footer-grid, .space-grid, .planner-grid, .planner-results { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .rail { position: static; }
  .header-row, .consent, .footer-base, .section-head { flex-direction: column; align-items: stretch; }
  .consent-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
