/* American Heritage Creek LLC — shared styles
   Seed 1-3-5-5-5-5-2: muted natural newsprint, ink, creek teal and brick · pale creek-teal tint base ·
   editorial newspaper columns with a narrow index column · serif throughout (Crimson Pro) · pill-button nav ·
   category index column + item rows · 4px radius · motif: halftone newsprint dots */

@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --tint: #eaf1ee;
  --paper: #f8f6f0;
  --ink: #1f2a2c;
  --teal: #3a6a64;
  --teal-deep: #10242a;
  --brick: #92493a;
  --ochre: #c49a4a;
  --muted: #4b5a59;
  --rule: #bfcfca;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --dots: url("assets/motif-halftone.svg") 0 0 / 12px 12px repeat;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--tint); }
body { margin: 0; font-family: var(--serif); font-size: 1.16rem; line-height: 1.6; color: var(--ink); background: var(--tint); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 0.16em; }
a:hover { color: var(--brick); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.4rem 1rem; border-radius: var(--r); background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
.dots { height: 22px; background: var(--dots); }

/* ---------- masthead header with pill-button navigation ---------- */
.site-header { background: var(--paper); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 0.85rem; border-bottom: 6px double var(--ink); }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--ink); text-decoration: none; }
.brand img { width: 60px; height: auto; flex: none; border-radius: var(--r); }
.brand-name { font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.05; }
.brand:hover .brand-name { color: var(--teal); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.34rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 1.05rem; text-decoration: none; line-height: 1.35; }
.main-nav a:hover { background: #dbe7e3; border-color: var(--teal); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #ffffff; font-weight: 700; }

/* ---------- newspaper grids ---------- */
.section { padding-block: clamp(2.4rem, 5.5vw, 4rem); }
.paper-band { background: var(--paper); border-block: 1px solid var(--rule); }
.front { display: grid; grid-template-columns: 12.5rem minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; align-items: start; }
.front > * { padding-inline: clamp(1rem, 2.2vw, 1.8rem); }
.front > :first-child { padding-left: 0; }
.front > :last-child { padding-right: 0; }
.front > * + * { border-left: 1px solid var(--rule); }
.paper { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 0; align-items: start; }
.paper > .index { padding-right: clamp(1rem, 2.4vw, 2rem); }
.paper > .index + * { padding-left: clamp(1rem, 2.4vw, 2rem); border-left: 1px solid var(--rule); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; padding-top: 0.45rem; margin-bottom: 1.1rem; border-top: 3px solid var(--ink); }
.sec-head h2 { margin: 0; }
.kicker { margin: 0 0 0.35rem; color: var(--brick); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sec-head .kicker { margin: 0; }
.cols-3 { column-count: 3; column-gap: clamp(1.4rem, 3vw, 2.4rem); column-rule: 1px solid var(--rule); }
.cols-2 { column-count: 2; column-gap: clamp(1.4rem, 3vw, 2.4rem); column-rule: 1px solid var(--rule); }

.hero { padding-block: clamp(2rem, 4.5vw, 3.2rem); }
.hero-art { display: block; width: 100%; border-radius: var(--r); border: 1px solid var(--rule); }
.tag { display: inline-block; margin: 0 0 0.9rem; padding: 0.12rem 0.6rem; border-radius: var(--r); background: var(--teal); color: #ffffff; font-size: 0.95rem; line-height: 1.5; }
.lede { font-size: clamp(1.2rem, 2vw, 1.38rem); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.55rem 1.15rem; border: 1px solid var(--teal); border-radius: var(--r); background: var(--teal); color: #ffffff; font-weight: 700; font-size: 1.08rem; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #ffffff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* index column */
.index h2, .index .index-title { margin: 0 0 0.6rem; padding-top: 0.45rem; border-top: 3px solid var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick); }
.index .index-title.mt { margin-top: 1.6rem; }
.index ol, .index ul { list-style: none; margin: 0; padding: 0; }
.index li { border-bottom: 1px solid var(--rule); }
.index li > a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.4rem; padding: 0.5rem 0; color: var(--ink); text-decoration: none; line-height: 1.25; }
.index li > a:hover { color: var(--teal); }
.index .no { color: var(--brick); font-weight: 700; }
.index .cnt { display: block; color: var(--muted); font-size: 0.95rem; font-style: italic; }
.index .fact { padding: 0.5rem 0; line-height: 1.3; }
.index .fact a { overflow-wrap: anywhere; }
.index .fact span { display: block; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* home lists */
.counter { list-style: none; margin: 0; padding: 0; }
.counter li { break-inside: avoid; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); color: var(--muted); }
.counter strong { color: var(--ink); }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { break-inside: avoid; margin: 0 0 1.1rem; padding: 0.9rem 1rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); }
.offers h3 { margin-bottom: 0.2rem; }
.offers p { margin: 0; color: var(--muted); }
.offers .deal { display: inline-block; margin-top: 0.4rem; padding: 0.05rem 0.5rem; border-radius: var(--r); background: var(--brick); color: #ffffff; font-weight: 700; }
.sections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; }
.sections li { border-top: 1px solid var(--rule); }
.sections a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.75rem 0; color: var(--ink); text-decoration: none; }
.sections img { width: 52px; height: 52px; }
.sections .s-name { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.sections .s-meta { display: block; color: var(--muted); font-style: italic; font-size: 1rem; }
.sections a:hover .s-name { color: var(--teal); }

/* ---------- catalog: index column + item rows ---------- */
.catalog .index { position: sticky; top: 1rem; }
.cat { scroll-margin-top: 1rem; }
.cat + .cat { margin-top: clamp(2rem, 4vw, 2.8rem); }
.cat-head { display: flex; align-items: center; gap: 0.8rem; padding-top: 0.45rem; border-top: 3px solid var(--ink); }
.cat-head img { width: 50px; height: 50px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.rows { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.6rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.rows h3 { margin: 0 0 0.1rem; font-size: 1.2rem; }
.rows p { margin: 0; color: var(--muted); font-style: italic; }
.rows .pr { font-weight: 700; font-size: 1.22rem; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.rows .pr.free { color: var(--teal); }
.rows .pr.quote { white-space: normal; max-width: 13rem; font-size: 1rem; color: var(--brick); line-height: 1.3; }
.rows .pr.quote a { display: block; font-weight: 400; white-space: nowrap; }

/* ---------- about / contact ---------- */
.dropcap::first-letter { float: left; margin: 0.06em 0.12em 0 0; font-size: 4.3em; line-height: 0.78; font-weight: 700; color: var(--teal); }
.story p { color: var(--muted); }
.story .dropcap { color: var(--ink); }
.story .tag { color: #ffffff; }
.facts { margin: 0; }
.facts div { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 0.92rem; font-style: italic; }
.facts dd { margin: 0; font-weight: 700; line-height: 1.3; }
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { break-inside: avoid; margin-bottom: 1rem; color: var(--muted); }
.reasons strong { color: var(--ink); }
.details { margin: 0; }
.details div { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.details dt { color: var(--muted); font-size: 0.92rem; font-style: italic; }
.details dd { margin: 0; font-weight: 700; line-height: 1.35; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.4rem; font-weight: 700; font-size: 1.5rem; }
.hours th, .hours td { padding: 0.42rem 0; text-align: left; border-bottom: 1px solid var(--rule); }
.hours thead th { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick); border-bottom: 2px solid var(--ink); }
.hours tbody th { font-weight: 700; padding-right: 0.8rem; }
.hours td { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.map-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: #cfe0db; font-size: 1.05rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #f0d9a0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.6rem; padding-block: 2.1rem 1.3rem; }
.footer-name { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.4rem; color: #ffffff; }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: #f0d9a0; font-weight: 700; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.95rem; }

@media (max-width: 1040px) {
  .front { grid-template-columns: 11rem minmax(0, 1fr); }
  .front > .art { grid-column: 1 / -1; padding: 1.6rem 0 0; border-left: 0; }
  .cols-3 { column-count: 2; }
}

@media (max-width: 760px) {
  .front, .paper { grid-template-columns: 1fr; }
  .front > *, .paper > .index, .paper > .index + * { padding-inline: 0; border-left: 0; }
  .front > * { padding-top: 0; }
  .front > .index { order: 1; padding-top: 1.8rem; }
  .front > .art { padding-top: 1.6rem; }
  .paper > .index + * { padding-top: 1.8rem; }
  .catalog .index { position: static; }
  .cols-3, .cols-2 { column-count: 1; }
  .sections { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand img { width: 50px; }
  .main-nav a { padding: 0.3rem 0.85rem; font-size: 1rem; }
  .rows li { grid-template-columns: 1fr; }
  .rows .pr { text-align: left; }
  .rows .pr.quote { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
