/* Painting Professor — ink-on-paper, periodic-tile motif from the logo. */
:root {
  --paper: #f5f0e7;
  --paper-2: #ece5d8;
  --card: #fffdf8;
  --ink: #141311;
  --ink-2: #4b473f;
  --ink-3: #7a746a;
  --line: #d9d1c2;
  --green: #2f4a3b;      /* the deep green from the fireplace wall */
  --green-ink: #e9efe9;
  --star: #b8860b;
  --font-display: "Gambetta", "Iowan Old Style", Georgia, serif;
  --font-body: "Switzer", "Inter", system-ui, sans-serif;
  --text-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --text-sm: clamp(.875rem, .85rem + .12vw, .9375rem);
  --text-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  --r: 6px;
  --pad: clamp(3.5rem, 8vw, 7rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.1rem; border-radius: var(--r); font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .18s, color .18s, transform .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: .85rem 1.4rem; font-size: var(--text-base); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--green); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: block; padding: 10px 0; line-height: 0; }
.brand img { width: 104px; height: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: var(--text-sm); font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); padding: .4rem 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .nav { display: none; } .top-call { margin-left: auto; } }
@media (max-width: 420px) { .top-call { font-size: .8125rem; padding: .55rem .8rem; } .brand img { width: 80px; } }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 var(--pad); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--text-hero); max-width: 12ch; margin: 1.1rem 0 1.25rem; }
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; }
.fine { font-size: var(--text-xs); color: var(--ink-3); }
.rating { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: var(--text-sm); color: var(--ink-2); }
.rating strong { color: var(--ink); }
.rating:hover { border-color: var(--ink); }
.stars { color: var(--star); letter-spacing: .08em; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: .55rem; background: var(--card); padding: .4rem .7rem .4rem .4rem; border-radius: var(--r); font-size: var(--text-xs); font-weight: 500; }
.tile-mini { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: #fff; font: 600 .8125rem/1 var(--font-display); border-radius: 3px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* Offer band */
.offer { background: var(--green); color: var(--green-ink); }
.offer-in { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem) 0; }
.offer h2 { color: #fff; margin-bottom: .4rem; }
.offer p { max-width: 60ch; }
.offer strong { color: #fff; }
.offer .tile { background: transparent; border-color: var(--green-ink); color: #fff; }
@media (max-width: 720px) { .offer-in { grid-template-columns: 1fr; } .offer .btn { justify-self: start; } }

/* Element tiles */
.tile { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; background: var(--card); border: 1.5px solid var(--ink); border-radius: 3px; padding: .85rem 1rem 1.1rem; min-height: 190px; }
.tile .n { font-size: var(--text-xs); font-weight: 600; justify-self: end; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tile .sym { font: 600 clamp(2.5rem, 2rem + 2vw, 3.25rem)/1 var(--font-display); letter-spacing: -.02em; margin-top: -.2rem; }
.tile .nm { font-weight: 600; margin-top: .35rem; }
.tile .ds { font-size: var(--text-sm); color: var(--ink-2); margin-top: .35rem; }
.tile-lg { width: 120px; min-height: 120px; padding: .5rem .7rem; grid-template-rows: auto 1fr auto; }
.tile-lg .n { color: inherit; opacity: .8; }
.tile-lg .sym { font-size: 2.5rem; }
.tile-lg .nm { margin: 0; font-size: var(--text-sm); }
.tile:not(.tile-lg):first-child { background: var(--ink); color: #fff; }
.tile:not(.tile-lg):first-child .n, .tile:not(.tile-lg):first-child .ds { color: #d8d2c6; }

/* Sections */
.section { padding: var(--pad) 0; }
.sec-head { display: grid; gap: .6rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 62ch; }
.sec-head p { color: var(--ink-2); }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.sec-head.row > div { display: grid; gap: .6rem; max-width: 60ch; }
.table { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .table { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .table { gap: 8px; } .tile { min-height: 0; padding: .7rem .8rem .9rem; } .tile .ds { font-size: var(--text-xs); } }

/* Gallery */
.work { background: var(--paper-2); }
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 230px); gap: 10px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gallery figure:hover img { transform: scale(1.03); }
.g-a { grid-column: span 2; grid-row: span 2; }
.g-t { grid-row: span 2; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .g-a { grid-column: span 2; } }

/* Reviews */
.feature-quote { margin: 0 0 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--ink); color: #fff; border-radius: var(--r); }
.feature-quote blockquote { margin: 0; font: 500 clamp(1.25rem, 1rem + 1.1vw, 1.875rem)/1.35 var(--font-display); max-width: 48ch; }
.feature-quote figcaption { margin-top: 1rem; font-size: var(--text-sm); color: #cfc8bb; }
.rv-grid { columns: 3 300px; column-gap: 12px; }
.rv { break-inside: avoid; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.rv p { font-size: var(--text-sm); color: var(--ink-2); white-space: pre-line; }
.rv footer { display: flex; justify-content: space-between; gap: .5rem; margin-top: .75rem; font-size: var(--text-xs); color: var(--ink-3); }
.rv footer strong { color: var(--ink); font-weight: 600; }
.rv .stars { font-size: var(--text-xs); display: block; margin-bottom: .4rem; }
.rv-more { background: none; border: 0; padding: 0; font: inherit; font-size: var(--text-xs); color: var(--ink); text-decoration: underline; cursor: pointer; margin-top: .35rem; }
.center { text-align: center; margin-top: 1.5rem; }

/* Steps */
.how { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 1rem; display: grid; gap: .5rem; }
.step-n { font: 600 var(--text-xs)/1 var(--font-body); color: var(--ink-3); letter-spacing: .08em; }
.steps p { color: var(--ink-2); font-size: var(--text-sm); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Estimate */
.estimate { background: var(--card); border-top: 1px solid var(--line); }
.est-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.est-grid > div { display: grid; gap: 1rem; align-content: start; }
.est-grid > div p { color: var(--ink-2); }
.code-note { background: var(--paper); border-left: 3px solid var(--green); padding: .6rem .8rem; font-size: var(--text-sm); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label, .form legend { display: grid; gap: .35rem; font-size: var(--text-sm); font-weight: 500; }
.form input:not([type=checkbox]), .form textarea { font: inherit; font-size: var(--text-base); padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); min-height: 48px; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.checks label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.checks input { accent-color: var(--ink); margin: 0; }
.opt { color: var(--ink-3); font-weight: 400; }
.span2 { grid-column: span 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.form-err { color: #9b2c1f; font-size: var(--text-sm); }
@media (max-width: 860px) { .est-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .form-actions .btn { flex: 1 1 100%; } }

/* Footer */
.foot { background: var(--paper-2); padding: 2.5rem 0 3rem; font-size: var(--text-sm); color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.foot strong { color: var(--ink); }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; } }
