/* Martinez & Sons Remodeling: Swatch Board (prefix ms-) */
:root {
  --paper: oklch(95.5% 0.018 85);
  --paper-2: oklch(91% 0.03 82);
  --paper-3: oklch(86% 0.04 80);
  --ink: oklch(24% 0.03 60);
  --muted: oklch(44% 0.03 65);
  --rule: oklch(78% 0.04 78);
  --accent: oklch(44% 0.095 195);
  --accent-soft: oklch(88% 0.05 195);
  --sw-oak: oklch(72% 0.09 70);
  --sw-sky: oklch(82% 0.06 225);
  --sw-slate: oklch(48% 0.025 250);
  --sw-putty: oklch(86% 0.05 90);
  --sw-walnut: oklch(46% 0.07 55);
  --sw-teal: oklch(58% 0.09 195);
  --font-display: "Epilogue", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --measure: 42rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img, svg, iframe { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-style: normal; line-height: 1.12; margin: 0 0 .5em; overflow-wrap: anywhere; min-width: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ms-wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.ms-measure { max-width: var(--measure); }
.ms-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.ms-skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.ms-top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 3px solid var(--ink); }
.ms-top-row { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem 1rem; padding: .7rem 0; }
.ms-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; white-space: nowrap; min-width: 0; }
.ms-brand span { overflow: hidden; text-overflow: ellipsis; }
.ms-strip { display: none; grid-column: 1 / -1; gap: .4rem; padding-top: .1rem; }
.ms-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .45rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.ms-chip i { width: 1.15rem; height: 1.15rem; border: 2px solid var(--ink); background: var(--sw-oak); display: inline-block; }
.ms-chip.ms-sky i { background: var(--sw-sky); }
.ms-chip.ms-slate i { background: var(--sw-slate); }
.ms-chip.ms-putty i { background: var(--sw-putty); }
.ms-chip.ms-walnut i { background: var(--sw-walnut); }
.ms-chip.ms-teal i { background: var(--sw-teal); }
.ms-chip:hover, .ms-chip[aria-current="page"] { background: var(--ink); color: var(--paper); }
.ms-menu-btn { font: 500 .85rem var(--font-mono); background: var(--ink); color: var(--paper); border: 0; padding: .6rem 1rem; cursor: pointer; white-space: nowrap; }
.ms-top-cta { display: none; }
@media (min-width: 62rem) {
  .ms-strip { display: flex; flex-wrap: nowrap; }
  .ms-menu-btn { display: none; }
  .ms-top-row { grid-template-columns: 1fr auto; }
  .ms-top-cta { display: inline-flex; }
}

/* drawer */
.ms-drawer { position: fixed; inset: 0; z-index: 50; background: var(--paper-2); padding: 1rem var(--gutter) 3rem; overflow-y: auto; display: none; }
.ms-drawer.is-open { display: block; }
.ms-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.ms-drawer h2 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 1.6rem 0 .7rem; font-weight: 500; }
.ms-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ms-tile { display: flex; align-items: center; gap: .7rem; border: 2px solid var(--ink); background: var(--paper); padding: .5rem; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.2; min-width: 0; }
.ms-tile svg { flex: none; width: 3rem; height: 3rem; }
.ms-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ms-links a { border: 2px solid var(--ink); padding: .45rem .9rem; color: var(--ink); text-decoration: none; background: var(--paper); font-weight: 700; white-space: nowrap; }
.ms-tile[aria-current="page"], .ms-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* buttons */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: oklch(98% 0.01 85); border: 2px solid var(--ink); padding: .75rem 1.25rem; font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.ms-btn:hover { background: var(--ink); color: var(--paper); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.ms-btn.is-quiet { background: var(--paper); color: var(--ink); }
.ms-btn[disabled] { opacity: .6; cursor: progress; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }

/* hero */
.ms-hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.ms-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: center; }
@media (min-width: 62rem) { .ms-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; } }
.ms-sign { display: inline-block; font: 500 .8rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: .3rem .7rem; margin-bottom: 1rem; }
.ms-sub { font-size: 1.2rem; max-width: 40rem; color: var(--muted); }
.ms-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; border: 3px solid var(--ink); padding: .6rem; background: var(--paper-2); }
.ms-board a { position: relative; display: block; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; color: var(--ink); line-height: 1.15; }
.ms-board svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.ms-board span { display: block; padding: .45rem .5rem .55rem; font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.ms-board a:hover { background: var(--ink); color: var(--paper); }

/* sections */
.ms-section { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 3px solid var(--ink); }
.ms-section.is-tint { background: var(--paper-2); }
.ms-label { font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 .6rem; }
.ms-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .ms-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .ms-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ms-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ms-card { border: 2px solid var(--ink); background: var(--paper); padding: 1.2rem 1.3rem; min-width: 0; }
.ms-card .ms-num { font: 500 .78rem var(--font-mono); letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: .5rem; }
.ms-more { font-weight: 700; }
.ms-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; counter-reset: s; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .ms-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .ms-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ms-steps li { counter-increment: s; border-top: 6px solid var(--accent); background: var(--paper); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 1rem 1.1rem; min-width: 0; }
.ms-steps li::before { content: counter(s, decimal-leading-zero); font: 500 .85rem var(--font-mono); color: var(--accent); display: block; margin-bottom: .4rem; }
.ms-steps h3 { font-size: 1.12rem; }
.ms-steps p { margin: 0; font-size: .98rem; }
.ms-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0; }
.ms-chips a, .ms-chips span { display: inline-block; border: 2px solid var(--ink); padding: .3rem .8rem; color: var(--ink); text-decoration: none; background: var(--paper); font-weight: 700; font-size: .95rem; }
.ms-chips a:hover { background: var(--ink); color: var(--paper); }
.ms-counties { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .ms-counties { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ms-county { border-top: 6px solid var(--ink); padding-top: .8rem; }
.ms-county h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.ms-county ul { list-style: none; padding: 0; margin: 0; }
.ms-county li { padding: .2rem 0; border-bottom: 1px dotted var(--rule); }
.ms-county a { font-weight: 700; }
.ms-diff { list-style: none; padding: 0; margin: 1rem 0 0; }
.ms-diff li { padding: .55rem 0; border-bottom: 1px dotted var(--rule); }
.ms-diff a { font-weight: 700; }

/* permit card, community, faq */
.ms-permit { border: 2px solid var(--ink); border-left-width: 10px; background: var(--paper); padding: 1.1rem 1.3rem; margin: 1.3rem 0; }
.ms-permit .ms-num { font: 500 .78rem var(--font-mono); letter-spacing: .1em; color: var(--accent); }
.ms-permit address { font-style: normal; }
.ms-permit ul { margin: .8rem 0 0; padding-left: 1.1rem; }
.ms-community { background: var(--accent-soft); border: 2px solid var(--ink); padding: 1.3rem 1.4rem; margin: 1.5rem 0; }
.ms-community h3 { margin-bottom: .5rem; }
.ms-entry { padding: .7rem 0; border-top: 1px dotted var(--ink); }
.ms-entry:first-of-type { border-top: 0; }
.ms-entry address { font-style: normal; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.ms-entry h4 { margin-bottom: .3em; }
.ms-faq h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.ms-sources { font: 400 .78rem var(--font-mono); color: var(--muted); margin-top: 1.4rem; line-height: 1.9; }
.ms-sources a { margin-right: .6rem; white-space: nowrap; }
.ms-map { border: 2px solid var(--ink); overflow: hidden; }
.ms-map iframe { display: block; border: 0; width: 100%; }

/* form */
.ms-form { border: 3px solid var(--ink); background: var(--paper); padding: 1.3rem 1.4rem 1.5rem; box-shadow: 8px 8px 0 var(--ink); min-width: 0; }
.ms-form label { display: block; font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .9rem; }
.ms-form input, .ms-form select, .ms-form textarea { display: block; width: 100%; margin-top: .3rem; font: 400 1rem var(--font-body); padding: .6rem .7rem; border: 2px solid var(--ink); background: oklch(98.5% 0.01 85); color: var(--ink); border-radius: 0; text-transform: none; letter-spacing: 0; }
.ms-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ms-note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }

/* footer */
.ms-footer { background: var(--ink); color: var(--paper); border-top: 3px solid var(--ink); padding: 2.5rem 0 2rem; margin-top: 2rem; }
.ms-footer a { color: var(--paper); text-decoration: none; }
.ms-cut-title { font: 500 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--sw-oak); margin: 0 0 1rem; }
.ms-cut { display: grid; gap: 0 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .ms-cut { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-cut a { display: flex; align-items: baseline; gap: .6rem; padding: .35rem 0; font-weight: 700; }
.ms-cut a i { flex: 1; border-bottom: 2px dotted oklch(60% 0.03 70); transform: translateY(-.25em); min-width: 1rem; }
.ms-cut a span:last-child { font: 400 .8rem var(--font-mono); color: var(--sw-oak); white-space: nowrap; }
.ms-cut a:hover span:first-child { text-decoration: underline; }
.ms-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid oklch(40% 0.03 60); }
.ms-foot-row address { font-style: normal; }
.ms-fine { font-size: .9rem; color: oklch(80% 0.03 80); margin: 0; }
.ms-fine a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.ms-top-row .ms-brand { grid-row: 1; grid-column: 1; }
.ms-top-row .ms-strip { grid-row: 2; }
.ms-top-row .ms-top-cta { grid-row: 1; grid-column: 2; }
.ms-top-row .ms-menu-btn { grid-row: 1; grid-column: 3; }
@media (max-width: 61.99rem) { .ms-top-row .ms-menu-btn { grid-column: 2; } }
.ms-card a, address a, .ms-note a { overflow-wrap: anywhere; }

/* photography */
.ms-visual { display: grid; gap: 1.1rem; min-width: 0; }
.ms-photo { position: relative; margin: 0; border: 3px solid var(--ink); background: var(--paper-2); box-shadow: 10px 10px 0 var(--tone, var(--accent)); min-width: 0; }
.ms-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ms-photo.is-band { margin: 1.4rem 0 1.8rem; }
.ms-photo.is-band img { aspect-ratio: 21 / 9; }
.ms-tag { position: absolute; top: -1rem; left: -.8rem; z-index: 1; transform: rotate(-4deg); border: 3px solid var(--ink); background: var(--paper); line-height: 0; box-shadow: 3px 3px 0 var(--ink); }
.ms-tag svg { display: block; width: 4.2rem; height: 4.2rem; }
.ms-tag.is-label { line-height: 1.2; padding: .35rem .7rem; font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); }
.ms-board.is-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; padding: .35rem; border-width: 2px; }
.ms-board.is-strip span { padding: .3rem .25rem .4rem; font-size: .6rem; letter-spacing: .02em; overflow-wrap: anywhere; }
@media (max-width: 39.99rem) {
  .ms-board.is-strip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
  .ms-photo { box-shadow: 6px 6px 0 var(--tone, var(--accent)); }
}
.ms-about-grid { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .ms-about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; } .ms-about-grid .ms-photo { position: sticky; top: 7rem; } }
