/* Halverson & Daughter Painting: concept site by RG Works.
   Hand-written CSS, no framework. Fonts are self-hosted (SIL Open Font License). */

@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/zilla-slab-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/zilla-slab-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --white: #fbfaf6;
  --wall: #f0ede4;
  --navy: #1f2d42;
  --slate: #48566a;
  --yellow: #f2c94c;
  --rust: #a2482c;
  --rule: #dcd7ca;
  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.0625rem/1.65 var(--sans); }

h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--rust); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

.concept { background: var(--navy); color: #e6e9ee; font-size: 0.875rem; text-align: center; padding: 0.55rem 1.25rem; }
.concept p { margin: 0; }
.concept a { color: var(--yellow); }

/* Header */
.bar { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--rule); }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--navy); text-decoration: none; }
.brand__chips { display: grid; grid-template-rows: repeat(3, 0.55rem); gap: 2px; width: 1.4rem; flex: none; }
.brand__chips i { background: var(--navy); }
.brand__chips i:nth-child(2) { background: #6d7b6a; }
.brand__chips i:nth-child(3) { background: var(--yellow); }
.brand__name { font-family: var(--slab); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.brand__name em { font-style: normal; color: var(--rust); }
.brand__name span { font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); margin-left: 0.35rem; }
.nav { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--rust); }
@media (max-width: 42rem) { .brand__name span { display: none; } .nav { gap: 1rem; font-size: 0.875rem; } .brand__name { font-size: 1.05rem; } }

/* Hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 3.5rem 4rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.2fr 0.8fr; gap: 4.5rem; padding-block: 5rem; } }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%); padding: 0 0.08em; }
.lede { font-size: 1.18rem; color: var(--slate); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-block; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; padding: 0.9rem 1.4rem; border-radius: 999px; }
.btn:hover { background: var(--rust); color: #fff; }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); font-variant-numeric: tabular-nums; }
.btn--line:hover { background: var(--navy); }

/* Photo slots (swap for real photos: see README.md) */
.slot { margin: 0; aspect-ratio: 4 / 3; background: var(--wall); color: #b9b2a0; border: 1px solid var(--rule); display: grid; place-items: center; align-content: center; gap: 1rem; padding: 2rem; }
.slot--tall { aspect-ratio: 4 / 5; }
.slot svg { width: min(45%, 9rem); }
.slot .cap { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.slot--after { background: #e4e8e1; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; }

/* Paint chips */
.chips { background: var(--wall); border-block: 1px solid var(--rule); padding: 2.5rem 0; }
.chips__label { font-family: var(--slab); font-weight: 500; font-size: 1.2rem; margin-bottom: 1.25rem; }
.chips__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; }
.chips__row li { background: var(--c); border: 1px solid rgba(0, 0, 0, 0.08); min-height: 7.5rem; padding: 0.8rem; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.chips__row span { font-weight: 600; font-size: 0.95rem; }
.chips__row small { font-size: 0.8rem; color: #3b4656; }
.chips__row .dark { color: #fff; }
.chips__row .dark small { color: #fff; }
.chips__note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--slate); }

/* Work */
.work { padding-block: 4.5rem; }
.work h2, .prep h2, .estimate h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 2rem; }
.work__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .work__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.work article { border-top: 3px solid var(--navy); padding-top: 1rem; }
.label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.4rem; }
.work h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.work article p:last-child { color: var(--slate); }
.work__photos { display: grid; gap: 0.75rem; margin-top: 3rem; }
@media (min-width: 40rem) { .work__photos { grid-template-columns: 1fr 1fr; } }
.work__photos b { color: var(--navy); }

/* Prep */
.prep { background: var(--navy); color: #fff; padding: 4.5rem 0; }
.prep__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .prep__grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.prep p { color: #c9d1dc; }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid #36465e; font-size: 1.08rem; }
.checklist li::before { content: counter(c, decimal-leading-zero); font-family: var(--slab); font-weight: 700; color: var(--yellow); }

/* Estimate */
.estimate { padding-block: 4.5rem 5rem; display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .estimate { grid-template-columns: 0.9fr 1.1fr; column-gap: 4rem; } .cta { grid-column: 1 / -1; } }
.estimate h2 { margin-bottom: 1rem; }
.terms { margin: 0; }
.terms div { display: grid; gap: 0.25rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 36rem) { .terms div { grid-template-columns: 7rem 1fr; gap: 1rem; } }
.terms dt { font-family: var(--slab); font-weight: 700; font-size: 1.15rem; }
.terms dd { margin: 0; color: var(--slate); }
.cta { background: var(--yellow); padding: 1.5rem 1.75rem; font-size: 1.1rem; }
.cta p { margin: 0; }
.cta a { color: var(--navy); font-weight: 600; }

.foot { border-top: 1px solid var(--rule); padding: 1.75rem 0; font-size: 0.9rem; color: var(--slate); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.foot p { margin: 0; }
