/* Family Tree Silver LLC — shared styles
   Seed 6-5-1-5-5-2-1: warm book-trade colours (kraft, oxblood, honey) · near-black base, light text ·
   split hero · serif throughout · pill-button nav · menu rows with dotted leaders ·
   sharp corners, 1px rules · motif: a row of book spines as the divider */

@font-face { font-family: "Gelasio"; src: url("fonts/gelasio-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("fonts/gelasio-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --base: #16120f;
  --panel: #201a16;
  --text: #f3ece2;
  --muted: #c2b5a5;
  --kraft: #c8955a;
  --kraft-dk: #9a6c3c;
  --oxblood: #a5452f;
  --honey: #e0a94a;
  --silver: #c9ccd1;
  --line: rgba(243, 236, 226, 0.16);
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--base);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

a { color: var(--honey); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
section { padding-block: clamp(3rem, 6vw, 5rem); }
.flush-top { padding-top: 0; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.55rem 1rem; background: var(--honey); color: var(--base); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* motif: a shelf of book spines */
.spines {
  height: 16px;
  background: repeating-linear-gradient(90deg,
    var(--kraft) 0 11px, var(--base) 11px 12px,
    var(--oxblood) 12px 20px, var(--base) 20px 21px,
    var(--honey) 21px 27px, var(--base) 27px 28px,
    #6b5a48 28px 39px, var(--base) 39px 40px,
    var(--silver) 40px 44px, var(--base) 44px 45px,
    var(--kraft-dk) 45px 55px, var(--base) 55px 56px);
  opacity: 0.8;
}

/* ---------- header with pill nav ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--text); text-decoration: none; }
.brand img { width: 68px; height: auto; flex: none; }
.brand-name { font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.brand:hover .brand-name { color: var(--honey); }
.pills ul { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.pills a {
  display: inline-block;
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--silver);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.98rem;
  text-decoration: none;
}
.pills a:hover { border-color: var(--honey); color: var(--honey); }
.pills a[aria-current="page"] { background: var(--honey); border-color: var(--honey); color: var(--base); font-weight: 700; }

/* ---------- shared parts ---------- */
.tag { display: inline-block; margin: 0 0 1.2rem; padding: 0.3rem 0.8rem; border: 1px solid var(--kraft); color: var(--kraft); font-style: italic; font-size: 0.98rem; }
.kicker { margin: 0 0 0.45rem; font-style: italic; color: var(--kraft); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 40ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--honey);
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  max-width: 100%; overflow-wrap: anywhere;
}
.btn-honey { background: var(--honey); color: var(--base); }
.btn-honey:hover { background: var(--text); border-color: var(--text); color: var(--base); }
.btn-line { color: var(--honey); }
.btn-line:hover { background: var(--panel); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- home: split hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-art { width: 100%; max-width: 620px; justify-self: end; }

.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 2rem 0 0; padding: 0; border: 1px solid var(--line); }
.routes li + li { border-left: 1px solid var(--line); }
.routes a { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.35rem 1.2rem; color: var(--text); text-decoration: none; }
.routes a:hover { background: var(--panel); }
.routes img { width: 56px; height: 56px; }
.routes .route-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em; line-height: 1.25; }
.routes .route-count { font-style: italic; color: var(--muted); font-size: 0.95rem; }

.spot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--kraft); background: var(--panel); }
.spot p { color: var(--muted); }
.spot .offer { margin: 0; font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.25; color: var(--honey); }

.svc-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.svc strong { color: var(--honey); }

.route-band { padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--kraft); color: var(--base); }
.route-band h2 { color: var(--base); }
.route-band p.note { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 58ch; }
.route-band .btn { border-color: var(--base); }
.route-band .btn-honey { background: var(--base); color: var(--honey); }
.route-band .btn-honey:hover { background: var(--panel); color: var(--text); }
.route-band .btn-line { color: var(--base); }
.route-band .btn-line:hover { background: var(--base); color: var(--honey); }
.route-band :focus-visible { outline-color: var(--base); }

/* ---------- catalog: menu rows with dotted leaders ---------- */
.page-head { padding-block: clamp(2.75rem, 6vw, 4rem) clamp(1.75rem, 3vw, 2.25rem); }
.jump { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.jump a { font-size: 0.98rem; }

.featured-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 1.75rem 0 0; padding: 0; border: 1px solid var(--line); }
.featured-list li { display: flex; flex-direction: column; padding: 1.4rem; }
.featured-list li + li { border-left: 1px solid var(--line); }
.featured-list p { color: var(--muted); }
.featured-list .offer { margin: auto 0 0; padding-top: 0.5rem; font-weight: 700; font-size: 1.22rem; line-height: 1.3; color: var(--honey); }

.ledger { max-width: 900px; }
.cat { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 1rem; }
.cat-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--kraft); }
.cat-head img { width: 56px; height: 56px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.95rem); letter-spacing: 0.03em; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.line { display: flex; align-items: flex-end; gap: 0.6rem; }
.line h3 { margin: 0; flex: 0 1 auto; line-height: 1.3; }
.leader { flex: 1 1 1.5rem; min-width: 1.5rem; margin-bottom: 0.42em; border-bottom: 2px dotted rgba(200, 149, 90, 0.6); }
.price { flex: none; margin: 0; max-width: 17rem; text-align: right; line-height: 1.3; }
.price .amt { font-weight: 700; font-size: 1.2rem; color: var(--honey); white-space: nowrap; }
.price .unit { color: var(--muted); font-style: italic; }
.price.quote .amt { white-space: normal; font-size: 1.05rem; }
.desc { margin: 0.35rem 0 0; color: var(--muted); font-style: italic; }
.price-extra { margin: 0.35rem 0 0; text-align: right; font-weight: 700; color: var(--kraft); }
.call { display: inline-block; margin-top: 0.35rem; font-size: 0.95rem; }

.account { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--line); background: var(--panel); }

/* ---------- about ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2rem 0 0; padding: 0; border: 1px solid var(--line); }
.facts div { padding: 1rem 1.2rem; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-style: italic; color: var(--kraft); font-size: 0.95rem; }
.facts dd { margin: 0.1rem 0 0; font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.story .first { font-size: clamp(1.25rem, 2.3vw, 1.5rem); line-height: 1.5; }
.story-aside { padding: 1.4rem; border: 1px solid var(--kraft); }
.story-aside img { width: 64px; height: 64px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 2rem 0 0; padding: 0; border: 1px solid var(--line); }
.why li { padding: 1.35rem; }
.why li + li { border-left: 1px solid var(--line); }
.why strong { color: var(--honey); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 5vw, 3.5rem); align-items: start; }
.dock { padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.dock address { font-style: normal; font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin-bottom: 1rem; }
.dock dl { margin: 0; }
.dock div { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.dock dt { font-style: italic; color: var(--kraft); font-size: 0.95rem; }
.dock dd { margin: 0; font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.7rem; font-weight: 700; font-size: 1.25rem; }
.hours th, .hours td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hours thead th { font-style: italic; font-weight: 400; color: var(--kraft); background: var(--panel); }
.hours tbody th { white-space: nowrap; }
.hours .closed { color: var(--muted); }
.hours .note { display: block; font-size: 0.95rem; font-style: italic; color: var(--muted); }
.route-note { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 3px solid var(--kraft); background: var(--panel); color: var(--muted); }
.map-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--line); background: var(--panel); }
.map-link { margin-top: 0.9rem; }

/* ---------- footer ---------- */
.site-footer { background: #0f0c0a; color: var(--muted); font-size: 1rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--honey); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem; padding-block: 2.5rem 1.6rem; }
.footer-name { margin: 0 0 0.35rem; font-weight: 700; font-size: 1.4rem; color: var(--text); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.5rem; font-style: italic; color: var(--kraft); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 0.12rem 0; }
.footer-bottom { margin: 0; padding-block: 1rem 1.6rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .spot, .svc-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; }
  .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes li:nth-child(3) { border-left: 0; }
  .routes li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .featured-list, .why { grid-template-columns: 1fr; }
  .featured-list li + li, .why li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand img { width: 58px; }
  .brand-name { font-size: 1.3rem; }
  .pills ul { gap: 0.3rem; }
  .pills a { padding: 0.34rem 0.75rem; font-size: 0.9rem; }
  .routes { grid-template-columns: 1fr; }
  .routes li + li, .routes li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .line { display: block; }
  .leader { display: none; }
  .price { max-width: none; text-align: left; margin-top: 0.3rem; }
  .price .amt { white-space: normal; }
  .price-extra { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div, .facts div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .hours th, .hours td { padding: 0.65rem 0.75rem; }
  .hours tbody th { white-space: normal; }
  .map-frame { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

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