/* Prescott Senior Home Services: warm autumn theme (Nov 2026).
   All sizes are in rem so the A / A+ / A++ text-size buttons scale the whole page. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("/fonts/fraunces-latin-500-italic.woff2") format("woff2"); }

:root {
  --paper: #FFF9F0;      /* warm cream page */
  --card: #FFFFFF;
  --blush: #F8E6D6;      /* soft peach panels */
  --wheat: #F6EBD3;
  --ink: #2B211C;        /* warm near-black */
  --ink-soft: #5A4A40;
  --rust: #9A3E1C;       /* links and main buttons */
  --rust-dark: #7E3015;
  --pumpkin: #D9772B;
  --gold: #E3A33B;
  --cranberry: #8E2E3B;
  --forest: #3E5E47;
  --plum: #6B3F5E;
  --hearth: #3A2A24;     /* footer */
  --line: #EBDDC9;
  --focus: #1F5FA8;
  --round: 22px;
  --shadow: 0 2px 4px rgba(58,42,36,.06), 0 10px 28px rgba(58,42,36,.09);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.ts-1 { font-size: 112.5%; }
html.ts-2 { font-size: 125%; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--rust); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust-dark); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: .5rem .9rem; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 46rem; }
main { padding: 0 0 4rem; }

/* ---------- Header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; width: 2.9rem; height: 2.9rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.brand-tag { font-family: var(--display); font-style: italic; font-weight: 500; font-size: .95rem; color: var(--rust); }
.head-right { display: flex; align-items: center; gap: .5rem 1.2rem; flex-wrap: wrap; }
.nav { display: flex; gap: .2rem 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink); }

/* Text size control */
.textsize { display: inline-flex; align-items: center; gap: .3rem; font-size: .95rem; color: var(--ink-soft); }
.textsize button { font: inherit; font-weight: 700; color: var(--ink); background: var(--wheat); border: 2px solid transparent;
  border-radius: 999px; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .55rem; cursor: pointer; line-height: 1; }
.textsize button:nth-of-type(2) { font-size: 1.1em; }
.textsize button:nth-of-type(3) { font-size: 1.25em; }
.textsize button:hover { border-color: var(--gold); }
.textsize button[aria-pressed="true"] { background: var(--rust); color: var(--paper); }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.18; color: var(--ink); font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .8rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.05rem); margin: 3rem 0 .8rem; }
h3 { font-size: 1.35rem; margin: 0 0 .35rem; }
.script { font-style: italic; font-weight: 500; color: var(--rust); }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 42rem; margin: 0 0 1.2rem; }
.small { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Photo hero (home) ---------- */
.photo-hero { position: relative; min-height: 34rem; display: flex; align-items: flex-end; background: var(--hearth) center 60% / cover no-repeat; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58,42,36,0) 55%, rgba(58,42,36,.3) 100%); }
.photo-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 3.6rem; }
.hero-card { background: var(--paper); border-radius: 28px 28px 28px 6px; padding: 1.3rem 1.4rem 1rem; max-width: 34rem; box-shadow: var(--shadow); position: relative; }
.hero-card h1 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); margin-bottom: .5rem; }
.hero-card .lead { font-size: 1.08rem; }
.hero-card .lead { margin-bottom: .6rem; }
.wave { display: block; width: 100%; height: 2.4rem; margin-top: -2.4rem; margin-bottom: -2px; position: relative; z-index: 2; color: var(--paper); }
.credit { position: absolute; right: 10px; bottom: 6px; z-index: 3; font-size: .78rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.credit a { color: #fff; }
.leaf-deco { position: absolute; pointer-events: none; z-index: 1; }

/* Search */
.search { display: flex; gap: .5rem; max-width: 40rem; margin: 1rem 0 .4rem; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .85rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.search input:focus { border-color: var(--rust); outline: none; box-shadow: 0 0 0 4px rgba(227,163,59,.3); }
.search-results { list-style: none; margin: .4rem 0 0; padding: 0; max-width: 40rem; }
.search-results li { padding: .6rem .2rem; border-bottom: 1px dashed var(--line); }
.search-results .cat { display: block; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Welcome note ---------- */
.welcome { display: grid; gap: 1.2rem; align-items: center; margin: 2.6rem 0 0; }
.welcome p { margin: 0 0 .8rem; font-size: 1.15rem; }
.welcome .sign { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--rust); font-size: 1.3rem; }
@media (min-width: 52rem) { .welcome { grid-template-columns: 1.4fr 1fr; gap: 2.4rem; } }
.note-card { background: var(--blush); border-radius: 30px 8px 30px 30px; padding: 1.4rem 1.5rem; position: relative; }
.note-card p:last-child { margin-bottom: 0; }

/* ---------- Category tiles (soft, staggered) ---------- */
.tiles { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.1rem; }
.tile a { display: flex; align-items: center; gap: .9rem; height: 100%; background: var(--card); border-radius: var(--round);
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; line-height: 1.25;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.tile a:hover { transform: translateY(-3px) rotate(-.4deg); color: var(--ink); box-shadow: 0 4px 8px rgba(58,42,36,.08), 0 16px 34px rgba(58,42,36,.13); }
.tile .ico { flex: none; width: 3.3rem; height: 3.3rem; display: grid; place-items: center; color: #fff;
  border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; background: var(--pumpkin); }
.tile:nth-child(6n+2) .ico { background: var(--cranberry); border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.tile:nth-child(6n+3) .ico { background: var(--forest); border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%; }
.tile:nth-child(6n+4) .ico { background: #B7791F; }
.tile:nth-child(6n+5) .ico { background: var(--plum); border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%; }
.tile:nth-child(6n) .ico { background: var(--rust); }
.tile .count { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); margin-top: .15rem; }
@media (min-width: 52rem) { .tiles.stagger { row-gap: 2rem; padding-bottom: 1.4rem; } .tiles.stagger .tile:nth-child(even) { transform: translateY(1.2rem); } }

/* ---------- License lookup band ---------- */
.license-band { display: grid; gap: 1rem 1.4rem; align-items: center; margin: 3rem 0 0; padding: 1.5rem 1.4rem;
  background: var(--card); border-radius: 30px 30px 30px 8px; box-shadow: var(--shadow); border-left: 8px solid var(--forest); }
.license-band h2 { margin: 0 0 .3rem; }
.license-band p { margin: 0; }
.license-band .ico { width: 4rem; height: 4rem; display: grid; place-items: center; color: #fff; background: var(--forest); border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; }
.license-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 52rem) { .license-band { grid-template-columns: auto 1fr auto; } .license-actions { flex-direction: column; } }
@media (max-width: 34rem) { .license-band .ico { display: none; } .license-actions .btn { flex: 1 1 100%; } }

/* ---------- Photo link cards ---------- */
.photo-cards { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .photo-cards { grid-template-columns: 1.3fr 1fr; } .photo-cards li:first-child { grid-row: span 2; } }
.photo-card { position: relative; display: flex; align-items: flex-end; min-height: 15rem; height: 100%; border-radius: var(--round);
  overflow: hidden; background: var(--hearth) center / cover no-repeat; text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.photo-cards li:first-child .photo-card { min-height: 22rem; border-radius: 34px 34px 34px 8px; }
.photo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,33,28,0) 25%, rgba(43,33,28,.82) 100%); transition: background .25s; }
.photo-card:hover { color: #fff; }
.photo-card:hover::before { background: linear-gradient(180deg, rgba(43,33,28,0) 10%, rgba(43,33,28,.9) 100%); }
.photo-card .txt { position: relative; padding: 1.2rem 1.3rem 1.6rem; }
.photo-card .txt strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.photo-card .txt span { display: block; font-size: 1.02rem; margin-top: .2rem; opacity: .95; }
.photo-cards li { position: relative; }
.photo-cards .credit { bottom: 5px; right: 14px; left: 14px; text-align: right; font-size: .72rem; line-height: 1.3; }

/* ---------- Category page ---------- */
.cat-band { position: relative; min-height: 21rem; display: flex; align-items: flex-end; background: var(--hearth) center 55% / cover no-repeat; }
.cat-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58,42,36,0) 50%, rgba(58,42,36,.3) 100%); }
.cat-band .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 3rem; }
.cat-card { background: var(--paper); border-radius: 22px 22px 22px 6px; padding: .8rem 1.3rem .8rem 1rem; display: inline-flex; max-width: 100%; box-shadow: var(--shadow); gap: .9rem; align-items: center; }
.cat-card .ico { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; color: #fff; background: var(--pumpkin); border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; margin-top: .2rem; }
.cat-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.lead.intro { margin: .2rem 0 1rem; max-width: 46rem; color: var(--ink); }
.crumbs { font-size: 1rem; color: var(--ink-soft); margin: 1.4rem 0 .4rem; }

/* ---------- Listings ---------- */
.listings { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.3rem; }
.listing { background: var(--card); border-radius: var(--round); padding: 1.3rem 1.4rem 1.2rem 1.6rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.listing::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--gold); }
.listing:nth-child(4n+2)::before { background: var(--cranberry); }
.listing:nth-child(4n+3)::before { background: var(--forest); }
.listing:nth-child(4n)::before { background: var(--pumpkin); }
.listing .about { margin: .2rem 0 .8rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: 0 0 .8rem; font-size: 1.05rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.notes { margin: 0 0 .9rem; padding-left: 1.3rem; font-size: 1.05rem; }
.notes li::marker { color: var(--pumpkin); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .6rem 1.3rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--rust); cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--rust); color: var(--paper); }
.btn-primary:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: var(--paper); }
.btn-ghost { background: var(--card); color: var(--rust-dark); }
.btn-ghost:hover { background: var(--blush); color: var(--rust-dark); }
.checked { margin: .9rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.callout { background: var(--wheat); border-radius: 8px 28px 28px 28px; padding: 1.2rem 1.4rem; margin: 2rem 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Signup panel ---------- */
.signup { background: var(--forest); color: var(--paper); border-radius: 34px 34px 34px 8px; padding: 1.8rem 1.5rem; margin: 3rem 0 0;
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; position: relative; overflow: hidden; }
.signup::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(227,163,59,.22); pointer-events: none; }
.signup > * { position: relative; z-index: 1; }
.signup h2 { color: var(--paper); margin: 0 0 .5rem; }
.signup p { margin: 0 0 .5rem; }
.signup form { display: grid; gap: .75rem; }
.signup label { display: block; font-size: 1rem; margin-bottom: .25rem; }
.signup input[type=text], .signup input[type=email] { width: 100%; font: inherit; padding: .8rem .9rem; border-radius: 14px; border: 2px solid transparent; background: var(--paper); color: var(--ink); }
.signup input:focus { border-color: var(--gold); outline: none; }
.signup .btn { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.signup .btn:hover { background: #F0B95A; border-color: #F0B95A; color: var(--ink); }
.signup .fine { font-size: .95rem; opacity: .92; }
.signup :focus-visible { outline-color: #FFE08A; }
@media (min-width: 48rem) { .signup { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 2.3rem; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Forms ---------- */
.form { display: grid; gap: .9rem; max-width: 39rem; }
.form label { font-weight: 700; display: block; margin-bottom: .25rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
.form textarea { min-height: 9rem; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--rust); outline: none; }

/* ---------- Plain pages ---------- */
.page-top { background: var(--wheat); padding: .2rem 0 2.6rem; }
.page-top + .wave { color: var(--paper); }
.prose h2 { margin-top: 2.4rem; }
.prose li { margin: .4rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
.prose th, .prose td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { width: 100%; border-radius: var(--round); display: block; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .3rem; }
.credits-list { list-style: none; padding: 0; }
.credits-list li { padding: .7rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- Footer ---------- */
.foot-wave { display: block; width: 100%; height: 2.4rem; color: var(--hearth); margin-top: 2rem; }
.site-foot { background: var(--hearth); color: var(--paper); padding: 1.6rem 0 2.2rem; font-size: 1rem; }
.site-foot a { color: var(--paper); }
.site-foot .cols { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .site-foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .3rem 0; }
.site-foot p { margin: 0 0 .6rem; }
.site-foot .foot-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: #F2C46B; }
.site-foot :focus-visible { outline-color: #FFE08A; }

@media (max-width: 34rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: .4rem; }
  .actions .btn { flex: 1 1 100%; }
  .cat-card .ico { width: 2.4rem; height: 2.4rem; }
  .photo-hero { min-height: 30rem; }
  .cat-band { min-height: 15rem; }
  .hero-card { padding: 1.3rem 1.1rem 1rem; }
  .leaf-deco { display: none; }
  .brand-tag { display: none; }
  .photo-hero, .cat-band { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .photo-hero .wrap, .cat-band .wrap { padding-bottom: .4rem; }
  .photo-hero > .credit, .cat-band > .credit { position: relative; right: auto; bottom: auto; display: block; text-align: right; padding: 0 12px 2.7rem; z-index: 1; font-size: .72rem; }
  .nav { gap: .1rem .9rem; }
  .nav a { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .tile a:hover { transform: none; } }
@media print {
  .site-head .nav, .textsize, .signup, .actions, .site-foot, .foot-wave, .wave, .credit { display: none; }
  body { background: #fff; }
  .photo-hero, .cat-band { background: none !important; min-height: 0; }
  .listing { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
