/* hillsdalenjdrywallrepair.com: data-attribute variants, house-part class names, mo- prefix */
:root {
  --mo-ink: #202129;
  --mo-paper: #F9F9FD;
  --mo-slate: #747581;
  --mo-mist: #E9EAF6;
  --mo-brass: #745C10;
  --mo-on: #FFFFFF;
  --mo-rule: rgba(32, 33, 41, .16);
  --mo-soft: #4a4b57;
  --mo-side: 272px;
  --mo-max: 1120px;
  --mo-serif: "Alegreya", Georgia, "Times New Roman", serif;
  --mo-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--mo-paper);
  color: var(--mo-ink);
  font-family: var(--mo-sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: #4f3e0a; text-underline-offset: 3px; }
a:hover { color: var(--mo-ink); }
h1, h2, h3 { font-family: var(--mo-serif); font-weight: 700; line-height: 1.12; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.6rem); letter-spacing: -.01em; }
p { margin: 0 0 1.05em; }
ol, ul { padding-left: 1.25em; }

.mo-skip { position: absolute; left: -999px; top: 8px; background: var(--mo-ink); color: var(--mo-on); padding: 8px 14px; z-index: 50; }
.mo-skip:focus { left: 8px; }

/* ---------- attic: top bar on small screens, fixed left sidebar on wide ---------- */
.mo-attic {
  position: sticky; top: 0; z-index: 30;
  background: var(--mo-paper);
  border-bottom: 1px solid var(--mo-rule);
}
.mo-gable {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
}
.mo-sign {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mo-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.15;
  color: var(--mo-ink); text-decoration: none; margin-right: auto; min-width: 0;
}
.mo-sign-mark { display: inline-flex; color: var(--mo-brass); flex: none; }
.mo-sign-mark svg { fill: currentColor; }
.mo-switch { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.mo-phone { font-weight: 600; color: var(--mo-ink); text-decoration: none; white-space: nowrap; }
.mo-hours { font-size: .78rem; color: var(--mo-soft); white-space: nowrap; }
.mo-latch {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 .9rem var(--mo-sans); color: var(--mo-ink);
  background: var(--mo-mist); border: 1px solid var(--mo-rule); border-radius: 8px;
  padding: 7px 10px; cursor: pointer;
}
.mo-latch svg { fill: currentColor; }
.mo-rooms { display: none; padding: 4px 16px 18px; }
.mo-attic[data-open="true"] .mo-rooms { display: block; }
.mo-rooms ul { list-style: none; margin: 0 0 14px; padding: 0; }
.mo-rooms li a {
  display: block; padding: 9px 0; border-bottom: 1px solid var(--mo-rule);
  color: var(--mo-ink); text-decoration: none; font-weight: 500;
}
.mo-rooms li a[aria-current="page"] { color: var(--mo-brass); }

@media (max-width: 420px) {
  .mo-hours { display: none; }
  .mo-sign { font-size: 1rem; }
  .mo-latch span { position: absolute; left: -9999px; }
}

@media (min-width: 1100px) {
  .mo-attic {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--mo-side);
    border-bottom: 0; border-right: 1px solid var(--mo-rule);
    display: flex; flex-direction: column; overflow-y: auto;
    padding: 28px 22px;
  }
  .mo-gable { flex-direction: column; align-items: flex-start; padding: 0; gap: 18px; }
  .mo-sign { font-size: 1.3rem; margin: 0; }
  .mo-switch { align-items: flex-start; }
  .mo-phone { font-size: 1.2rem; }
  .mo-latch { display: none; }
  .mo-rooms { display: block; padding: 22px 0 0; }
  .mo-hall, .mo-cellar { margin-left: var(--mo-side); }
}

/* ---------- frames and rooms ---------- */
.mo-frame { max-width: var(--mo-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.mo-room { padding: clamp(48px, 6vw, 92px) 0; container-type: inline-size; }
.mo-room[data-tone="tint"] { background: var(--mo-mist); }
.mo-room[data-tone="ink"] { background: var(--mo-ink); color: var(--mo-paper); }
.mo-room[data-tone="ink"] a:not(.mo-door) { color: var(--mo-mist); }
.mo-wide { max-width: 46rem; }

.mo-wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; container-type: inline-size; }
.mo-beam > :last-child { margin-bottom: 0; }
.mo-sill { font-size: .98rem; }
@container (min-width: 760px) {
  .mo-wall { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
  .mo-sill { border-left: 1px solid var(--mo-rule); padding-left: 32px; }
}

/* ---------- hero: flat color, oversized type, no photo ---------- */
.mo-ceiling { background: var(--mo-mist); padding: clamp(56px, 10vw, 140px) 0 clamp(48px, 7vw, 96px); }
.mo-ceiling h1 {
  font-size: clamp(2.6rem, 6.2vw + 1rem, 6.75rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.02; max-width: 14ch;
}
.mo-ceiling[data-size="sm"] { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.mo-ceiling[data-size="sm"] h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.9rem); max-width: 22ch; }
.mo-mark {
  background-image: linear-gradient(transparent 62%, rgba(116, 92, 16, .32) 62%, rgba(116, 92, 16, .32) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mo-ceiling-lead { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); max-width: 40rem; margin-bottom: 1.6em; }
.mo-ceiling-hours { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 16px 0 4px; }
.mo-ceiling-hours svg { fill: var(--mo-brass); }
.mo-ceiling-more { margin-top: 8px; }

/* ---------- doors (buttons) ---------- */
.mo-door-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mo-door-row[data-shape="stack"] { flex-direction: column; align-items: stretch; margin-bottom: 8px; }
.mo-door {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 22px; border-radius: 999px;
  font: 600 1rem var(--mo-sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.mo-door svg { fill: currentColor; flex: none; }
.mo-door[data-kind="primary"] { background: var(--mo-slate); color: var(--mo-on); }
.mo-door[data-kind="primary"]:hover { background: #5f606b; color: var(--mo-on); }
.mo-door[data-kind="accent"] { background: var(--mo-brass); color: var(--mo-on); }
.mo-door[data-kind="accent"]:hover { background: #5c490c; color: var(--mo-on); }
.mo-door[data-kind="ghost"] { border-color: var(--mo-ink); color: var(--mo-ink); background: transparent; }
.mo-door[data-kind="text"] { min-height: 0; padding: 0; border-radius: 0; color: #4f3e0a; text-decoration: underline; }
.mo-room[data-tone="ink"] .mo-door[data-kind="ghost"] { border-color: var(--mo-mist); color: var(--mo-paper); }
.mo-room[data-tone="ink"] .mo-door[data-kind="primary"] { background: var(--mo-paper); color: var(--mo-ink); }
.mo-lintel { font-size: .95rem; color: var(--mo-soft); margin: 10px 0 0; max-width: 40rem; }
.mo-room[data-tone="ink"] .mo-lintel { color: #cfd0dc; }
.mo-close h2 { max-width: 22ch; }
.mo-close > p:first-of-type { max-width: 40rem; }

/* ---------- joists: definition-list rows ---------- */
.mo-joist { margin: 0 0 1.4em; border-top: 1px solid var(--mo-rule); container-type: inline-size; }
.mo-joist > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 28px; padding: 14px 0; border-bottom: 1px solid var(--mo-rule); }
.mo-joist dt { font-weight: 600; }
.mo-joist dd { margin: 0; }
.mo-joist dd > :last-child { margin-bottom: 0; }
@container (min-width: 520px) {
  .mo-joist > div { grid-template-columns: 11rem minmax(0, 1fr); }
  .mo-joist[data-size="lg"] > div { grid-template-columns: 15rem minmax(0, 1fr); }
  .mo-joist[data-shape="stack"] > div { grid-template-columns: minmax(0, 1fr); }
}
.mo-joist[data-shape="stack"] dt { font-family: var(--mo-serif); font-size: 1.2rem; }

/* ---------- stairs: numbered steps ---------- */
.mo-stair { counter-reset: mo-step; list-style: none; padding: 0; margin: 0 0 1.4em; }
.mo-stair > li { counter-increment: mo-step; position: relative; padding: 0 0 16px 52px; }
.mo-stair > li::before {
  content: counter(mo-step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mo-ink); color: var(--mo-paper); font: 600 .95rem var(--mo-sans);
}

/* ---------- panes (photos) ---------- */
.mo-pane { margin: 0 0 1.6em; }
.mo-pane img { display: block; width: 100%; height: auto; border-radius: 4px; }
.mo-pane figcaption, .mo-chart figcaption, .mo-cracks figcaption { font-size: .88rem; color: var(--mo-soft); margin-top: 8px; }
.mo-pane[data-shape="round"] { text-align: center; }
.mo-pane[data-shape="round"] img {
  width: min(240px, 70%); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  margin: 0 auto; border: 6px solid var(--mo-paper);
}

/* ---------- charts and drawings ---------- */
.mo-chart { margin: 0 0 1.6em; }
.mo-chart-lbl { font: 500 13px var(--mo-sans); fill: var(--mo-ink); }
.mo-chart-val { font: 600 13px var(--mo-sans); fill: var(--mo-ink); }
.mo-timeline { margin: 0; max-width: 300px; }
.mo-tl-rail { stroke: var(--mo-slate); stroke-width: 2; }
.mo-tl-node { fill: var(--mo-ink); }
.mo-tl-num { font: 600 11px var(--mo-sans); fill: var(--mo-paper); }
.mo-tl-name { font: 600 14px var(--mo-sans); fill: var(--mo-ink); }
.mo-tl-dry { font: italic 400 12px var(--mo-sans); fill: var(--mo-brass); }
.mo-cracks { margin: 0 0 1.4em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mo-cracks figcaption { grid-column: 1 / -1; }
@container (min-width: 700px) { .mo-cracks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mo-ck svg { display: block; width: 100%; max-width: 160px; }
.mo-ck p { font-size: .92rem; margin: 8px 0 0; }
.mo-ck-wall { fill: #fff; stroke: var(--mo-rule); stroke-width: 2; }
.mo-ck-line { fill: none; stroke: var(--mo-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mo-ck-door { fill: var(--mo-mist); stroke: var(--mo-slate); stroke-width: 2; }
.mo-ck-seam, .mo-ck-stud { stroke: var(--mo-slate); stroke-width: 7; opacity: .25; }
.mo-ck-edge { stroke: var(--mo-slate); stroke-width: 3; }
.mo-ck-pop { fill: var(--mo-paper); stroke: var(--mo-ink); stroke-width: 2; }

/* ---------- picker band ---------- */
.mo-picks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 600px) { .mo-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 960px) { .mo-picks { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mo-pick {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px 18px; border-radius: 10px;
  background: var(--mo-paper); border: 1px solid var(--mo-rule);
  color: var(--mo-ink); font-weight: 600; text-decoration: none;
}
.mo-pick svg { fill: var(--mo-brass); flex: none; }
.mo-pick:hover { border-color: var(--mo-brass); }

/* ---------- side notes ---------- */
.mo-pull {
  font-family: var(--mo-serif); font-size: 1.25rem; line-height: 1.4;
  border-top: 3px solid var(--mo-brass); padding-top: 14px; margin: 0;
}
.mo-pull svg { fill: var(--mo-brass); vertical-align: -4px; }
.mo-alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border-left: 4px solid var(--mo-brass); padding: 16px 18px; border-radius: 4px;
}
.mo-alert svg { fill: var(--mo-brass); flex: none; margin-top: 3px; }
.mo-alert p { margin: 0; }
.mo-alert[data-size="lg"] { margin: 40px auto 0; max-width: 46rem; }
.mo-swatch {
  display: inline-block; width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; vertical-align: middle;
  border: 1px solid var(--mo-rule); background-color: #fff;
}
.mo-swatch[data-tex="level"] { background: #fff; }
.mo-swatch[data-tex="fine"] { background-image: radial-gradient(var(--mo-slate) 1px, transparent 1.4px); background-size: 5px 5px; }
.mo-swatch[data-tex="flat"] { background-image: radial-gradient(ellipse 5px 3px, var(--mo-mist) 70%, transparent 72%), radial-gradient(ellipse 4px 3px, #d4d5e2 70%, transparent 72%); background-size: 11px 9px, 13px 11px; background-position: 0 0, 5px 4px; }
.mo-swatch[data-tex="hand"] { background-image: linear-gradient(115deg, transparent 40%, #d9dae6 41%, #d9dae6 58%, transparent 59%); background-size: 14px 14px; }
.mo-swatch[data-tex="acoustic"] { background-image: radial-gradient(#cfd0dc 2px, transparent 2.6px), radial-gradient(#e0e1ec 2px, transparent 2.6px); background-size: 7px 7px, 9px 9px; background-position: 0 0, 3px 4px; }

/* ---------- form ---------- */
.mo-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 18px; container-type: inline-size; }
@container (min-width: 0px) { .mo-field { min-width: 0; } }
@media (min-width: 640px) { .mo-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mo-field[data-span="full"], .mo-form > button { grid-column: 1 / -1; } }
.mo-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.mo-field label span { font-weight: 400; color: var(--mo-soft); }
.mo-field input, .mo-field select, .mo-field textarea {
  width: 100%; font: 400 1rem var(--mo-sans); color: var(--mo-ink);
  background: #fff; border: 1px solid #b9bac8; border-radius: 8px; padding: 11px 12px;
}
.mo-field input:focus, .mo-field select:focus, .mo-field textarea:focus { outline: 3px solid rgba(116, 92, 16, .35); border-color: var(--mo-brass); }
.mo-form > button { justify-self: start; }
.mo-consent { font-size: .9rem; margin: 14px 0 0; }

/* ---------- cellar (footer) ---------- */
.mo-cellar { background: #ecedf5; border-top: 1px solid var(--mo-rule); padding: 48px 0 28px; font-size: .92rem; container-type: inline-size; }
.mo-cellar-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@container (min-width: 720px) { .mo-cellar-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; } }
.mo-cellar-name { font-family: var(--mo-serif); font-weight: 700; font-size: 1.15rem; margin-bottom: .5em; }
.mo-cellar-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.mo-cellar-list li { break-inside: avoid; padding: 4px 0; }
.mo-cellar a { color: var(--mo-ink); }
.mo-cellar-note { border-top: 1px solid var(--mo-rule); padding-top: 18px; margin: 28px 0 0; }

/* ---------- porch: mobile call bar ---------- */
.mo-porch { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 66px; }
  .mo-porch {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--mo-ink); border-top: 1px solid #000;
  }
  .mo-porch a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 58px; padding: 8px; color: var(--mo-paper); text-decoration: none; font-weight: 600; font-size: .95rem;
  }
  .mo-porch a svg { fill: currentColor; }
  .mo-porch a[data-kind="call"] { background: var(--mo-slate); }
}
