/* Serving Since: an old city guide, set in type.
   Year = hero. Rules, not cards. No radius, no shadows, no gradients. */

:root {
  --paper: #F3EDE2;
  --paper-2: #EAE2D3;
  --ink: #1C1A17;
  --ink-2: #4A443C;
  --ink-3: #6F665B;
  --rule: #CDC1AE;
  --accent: #7B2D26;
  --brass: #8A6A35;
  --on-accent: #F8F3EA;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 46rem;
  --gutter: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1A1714; --paper-2: #231F1B; --ink: #EFE7DA; --ink-2: #CFC5B6; --ink-3: #A0958A;
    --rule: #3B342D; --accent: #D98F7E; --brass: #C9A86E; --on-accent: #1A1714;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1A1714; --paper-2: #231F1B; --ink: #EFE7DA; --ink-2: #CFC5B6; --ink-3: #A0958A;
  --rule: #3B342D; --accent: #D98F7E; --brass: #C9A86E; --on-accent: #1A1714;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 40rem) { :root { --gutter: 1.5rem; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }

/* small caps labels */
.label, .crumbs, .count, .section-title, .block-title, .entry-year .label, .entry-year .span,
.masthead, .place-since, .place-span, .place-meta, .entry-meta, .entry-foot, .cta, .btn,
.near-link, .near-btn, .segmented span, .chips span, .colophon-links, .claims, .see-all, .filters, .t-year {
  font-family: var(--label); letter-spacing: 0.09em; text-transform: uppercase; font-weight: 600;
}
.label { font-size: 0.75rem; color: var(--ink-3); margin: 0; }

/* masthead */
.masthead { border-bottom: 1px solid var(--ink); font-size: 0.78rem; }
.masthead::after { content: ""; display: block; border-bottom: 1px solid var(--ink); margin-top: 3px; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.7rem; }
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 1.35rem; width: auto; }
.masthead-nav { display: flex; gap: 1.1rem; }
.masthead-nav a { text-decoration: none; color: var(--ink-2); }
.is-home .wordmark { visibility: hidden; }

/* hero */
.hero { padding-top: 2.6rem; padding-bottom: 1rem; text-align: center; }
.hero-logo { margin: 0 auto 1.5rem; max-width: 23rem; }
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-kicker {
  font-family: var(--display); font-size: clamp(2.5rem, 13vw, 4.75rem); line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.9rem;
}
.hero-kicker::after { content: ""; display: block; width: 3.5rem; margin: 1.1rem auto 0; border-top: 2px solid var(--accent); }
.hero-title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.35rem, 5.2vw, 1.85rem); line-height: 1.25; margin: 0 auto 0.75rem; max-width: 26ch; }
.hero-sub { color: var(--ink-2); margin: 0 auto 2rem; max-width: 36ch; font-size: 1rem; }

/* finder */
.finder { text-align: left; border-top: 1px solid var(--rule); max-width: 32rem; margin: 0 auto; }
.finder-city, .finder-group { border: 0; border-bottom: 1px solid var(--rule); margin: 0; padding: 1rem 0; }
.finder-city { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.finder-city-name { font-family: var(--display); font-size: 1.3rem; }
.finder-group legend { padding: 0; margin-bottom: 0.65rem; float: left; width: 100%; }
.finder-group > div { clear: both; }
.segmented, .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.segmented label, .chips label { position: relative; flex: 1 1 auto; }
.segmented input, .chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span, .chips span {
  display: block; text-align: center; font-size: 0.82rem; padding: 0.75rem 0.7rem;
  border: 1px solid var(--ink-3); color: var(--ink); background: transparent; cursor: pointer;
  min-height: 44px; transition: background .12s, color .12s;
}
.chips label { flex: 0 1 auto; }
.chips span { padding: 0.6rem 0.8rem; font-size: 0.76rem; }
.segmented input:checked + span, .chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.segmented input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta {
  display: block; width: 100%; margin: 1.25rem 0 0.9rem; min-height: 54px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-size: 0.95rem; letter-spacing: 0.18em;
}
.cta:hover { filter: brightness(1.08); }
.near-link { display: block; text-align: center; font-size: 0.8rem; color: var(--accent); padding: 0.6rem 0; text-decoration: none; }

/* sections */
.section { padding-top: 2.75rem; padding-bottom: 1rem; }
.section-title { font-size: 0.8rem; color: var(--ink); text-align: center; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.9rem; }
.section-title::before, .section-title::after { content: ""; flex: 1; border-top: 1px solid var(--ink); }
.see-all { text-align: center; font-size: 0.8rem; margin: 1.5rem 0 0; }
.see-all a { text-decoration: none; color: var(--accent); }

/* directory rows */
.directory { list-style: none; margin: 0; padding: 0; }
.entry { border-bottom: 1px solid var(--rule); }
.entry-link { display: grid; grid-template-columns: 6.4rem 1fr; gap: 1rem; padding: 1.25rem 0; text-decoration: none; color: inherit; }
.entry-link:hover { color: inherit; background: var(--paper-2); }
.entry-link:hover .entry-name { color: var(--accent); }
.entry-year { display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--rule); padding-right: 0.75rem; }
.entry-year .label { font-size: 0.6rem; color: var(--ink-3); }
.entry-year .year { font-family: var(--display); font-size: 2.55rem; line-height: 1; margin: 0.2rem 0 0.35rem; font-variant-numeric: lining-nums; }
.entry-year .span { font-size: 0.68rem; color: var(--accent); }
.entry-name { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; margin: 0 0 0.2rem; }
.qualifier { font-family: var(--serif); font-style: italic; font-size: 0.72em; color: var(--ink-2); }
.entry-meta { font-size: 0.72rem; color: var(--ink-2); margin: 0 0 0.45rem; }
.entry-desc { margin: 0; font-size: 0.98rem; color: var(--ink); }
.entry-basis { margin: 0.35rem 0 0; font-size: 0.88rem; font-style: italic; color: var(--ink-2); }
.entry-foot { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0.6rem 0 0; font-size: 0.64rem; color: var(--ink-3); font-weight: 500; }
.entry-distance:empty { display: none; }
.entry-known { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--ink); }
.entry-known .k, .entry-foot .more { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; font-size: 0.64rem; color: var(--ink-3); margin-right: 0.35rem; }
.entry-foot .more { color: var(--accent); margin-left: auto; margin-right: 0; }
.entry-foot .crowd { font-weight: 600; color: var(--ink-2); }
.entry-foot .crowd-high { color: var(--brass); }
.entry-link:hover .more { text-decoration: underline; }

/* place decision block */
.decide { max-width: 32rem; margin: 1.4rem auto 0; text-align: left; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.decide > div { display: grid; grid-template-columns: 6.8rem 1fr; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px dotted var(--rule); }
.decide > div:last-child { border-bottom: 0; }
.decide dt { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; font-size: 0.68rem; color: var(--accent); padding-top: 0.2rem; }
.decide dd { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.decide-go { font-family: var(--display); font-size: 1.2rem !important; line-height: 1.25 !important; }
.decide .catch { display: block; }
.decide .catch + .catch { margin-top: 0.3rem; }
.entry-distance { color: var(--accent); font-weight: 600; }
@media (min-width: 40rem) {
  .entry-link { grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1.5rem 0.5rem; }
  .entry-year .year { font-size: 3.1rem; }
}

/* list pages */
.list-head { padding-top: 1.75rem; }
.crumbs { font-size: 0.72rem; color: var(--ink-3); margin: 0 0 0.9rem; }
.crumbs a { text-decoration: none; }
.list-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 7.5vw, 2.8rem); line-height: 1.08; margin: 0 0 0.75rem; }
.list-intro { color: var(--ink-2); margin: 0 0 1.25rem; max-width: 38rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 0.75rem; }
.segmented-sm span { padding: 0.55rem 0.8rem; min-height: 40px; font-size: 0.75rem; }
.segmented-sm label { flex: 0 0 auto; }
.select select {
  font: inherit; letter-spacing: inherit; text-transform: uppercase; color: var(--ink); background: transparent;
  border: 1px solid var(--ink-3); border-radius: 0; padding: 0.55rem 1.8rem 0.55rem 0.7rem; min-height: 40px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.clear { color: var(--accent); text-decoration: none; margin-left: auto; }
.near { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 0 0; }
.near-btn { font-size: 0.75rem; background: none; border: 0; padding: 0.5rem 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; min-height: 44px; }
.near-status { margin: 0; font-size: 0.85rem; color: var(--ink-3); font-style: italic; }
.near-status:empty { display: none; }
.count { font-size: 0.7rem; color: var(--ink-3); margin: 1.1rem 0 0; padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink); }
.empty { padding: 2rem 0; color: var(--ink-2); }
.related { margin: 2.5rem 0 1rem; }
.related ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.related li { border-top: 1px solid var(--rule); }
.related a { display: block; padding: 0.75rem 0; font-family: var(--display); font-size: 1.1rem; text-decoration: none; }

/* place page */
.place-head { text-align: center; padding-top: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--ink); }
.place-head .crumbs { text-align: left; }
.place-since { font-size: 0.8rem; letter-spacing: 0.28em; color: var(--ink-2); margin: 1.25rem 0 0; }
.place-year {
  font-family: var(--display); font-size: clamp(5.5rem, 30vw, 10.5rem); line-height: 0.92;
  margin: 0.1rem 0 0.35rem; font-variant-numeric: lining-nums; letter-spacing: -0.01em;
}
.place-span { font-size: 0.85rem; letter-spacing: 0.2em; color: var(--accent); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.8rem; justify-content: center; }
.place-span::before, .place-span::after { content: ""; width: 2rem; border-top: 1px solid var(--accent); }
.place-name { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.05; margin: 0 0 0.45rem; }
.place-meta { font-size: 0.78rem; color: var(--ink-2); margin: 0; }
.place-basis { max-width: 32rem; margin: 0.4rem auto 0; font-style: italic; color: var(--ink-2); font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.4rem 0 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.1rem; border: 1px solid var(--ink); text-decoration: none; font-size: 0.76rem; flex: 1 1 9rem; max-width: 14rem; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.place-scores { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.68rem; color: var(--ink-3); margin: 0; }
.place-scores a { text-decoration: none; }

.place-body { padding-bottom: 2rem; }
.block { padding: 1.75rem 0 0.25rem; }
.block + .block { border-top: 1px solid var(--rule); margin-top: 1.25rem; }
.block-title { font-size: 0.78rem; color: var(--accent); margin: 0 0 0.9rem; }
.block p { margin: 0 0 1rem; max-width: 38rem; }
.orders { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.orders li { font-family: var(--display); font-size: 1.3rem; padding: 0.35rem 0; border-bottom: 1px dotted var(--rule); }
.orders li:last-child { border-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 0.6rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4.9rem; top: 0.9rem; bottom: 0.9rem; border-left: 1px solid var(--rule); }
.t-year { font-size: 0.92rem; color: var(--ink); text-align: right; font-variant-numeric: lining-nums; padding-top: 0.12rem; }
.t-label { padding-left: 1.1rem; position: relative; }
.t-label::before { content: ""; position: absolute; left: -0.36rem; top: 0.55rem; width: 0.5rem; height: 0.5rem; background: var(--paper); border: 1px solid var(--ink); transform: rotate(45deg); }
.t-today .t-year { color: var(--accent); }
.t-today .t-label::before { background: var(--accent); border-color: var(--accent); }
.cite { font-family: var(--label); font-size: 0.62rem; vertical-align: super; margin-left: 0.2rem; text-decoration: none; color: var(--accent); }

.block-notes ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-style: italic; }
.block-notes li { margin-bottom: 0.4rem; }

.facts { display: grid; grid-template-columns: minmax(7rem, 30%) 1fr; margin: 0; }
.facts dt, .facts dd { padding: 0.55rem 0; border-bottom: 1px dotted var(--rule); margin: 0; }
.facts dt { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; font-size: 0.7rem; color: var(--ink-3); padding-top: 0.75rem; }

.score { border-collapse: collapse; width: 100%; max-width: 24rem; font-size: 0.95rem; margin: 0.25rem 0 0.75rem; }
.score th { text-align: left; font-weight: 400; padding: 0.35rem 0; color: var(--ink-2); }
.score td { text-align: right; padding: 0.35rem 0 0.35rem 0.5rem; font-variant-numeric: tabular-nums; }
.score td:last-child { color: var(--ink-3); width: 3.2rem; }
.score tbody tr { border-bottom: 1px dotted var(--rule); }
.score tfoot th, .score tfoot td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 0.5rem; }
.tourist { font-size: 0.95rem; color: var(--ink-2); }

.sources { padding-left: 1.4rem; margin: 0; font-size: 0.92rem; }
.sources li { margin-bottom: 0.65rem; }
.sources li:target { background: var(--paper-2); }
.claims { display: block; font-size: 0.64rem; color: var(--ink-3); margin-top: 0.15rem; font-weight: 500; }

/* prose pages */
.prose { padding-top: 2rem; padding-bottom: 2rem; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin: 2rem 0 0.5rem; }
.prose h3 { font-family: var(--serif); font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
.prose p { max-width: 38rem; }
.levels { list-style: none; padding: 0; margin: 0.25rem 0 0; font-size: 0.95rem; }
.levels li { display: grid; grid-template-columns: 2.2rem 1fr; padding: 0.3rem 0; border-bottom: 1px dotted var(--rule); }
.levels span { font-variant-numeric: tabular-nums; color: var(--accent); }

/* footer */
.colophon { margin-top: 3rem; border-top: 1px solid var(--ink); padding: 1.5rem 0 2.5rem; text-align: center; color: var(--ink-3); }
.colophon::before { content: ""; display: block; border-top: 1px solid var(--ink); margin-top: -1.5rem; margin-bottom: 1.5rem; transform: translateY(3px); }
.colophon-line { font-style: italic; margin: 0 0 0.5rem; font-size: 0.95rem; }
.colophon-links { font-size: 0.72rem; margin: 0 0 0.5rem; }
.colophon-links a { text-decoration: none; }
.colophon-fine { font-size: 0.8rem; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.related-links { list-style: none; padding: 0; margin: 0; }
.related-links li { border-top: 1px dotted var(--rule); }
.related-links a { display: block; padding: 0.6rem 0; font-family: var(--display); font-size: 1.1rem; text-decoration: none; }

/* walking route */
.walk{margin:1.25rem 0 0}
.walk .btn{display:flex;max-width:none;width:100%}
.walk-note{font-size:.9rem;color:var(--ink-3);margin:.6rem 0 0;font-style:italic}
.tour{margin:2.5rem 0 0;padding:1.1rem 1.2rem;border:1px solid var(--rule)}
.tour a{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.tour-note{font-size:.8rem;color:var(--ink-3);margin:.5rem 0 0}
