/* Hob & Hollow house style. Victorian reference-book feel: paper, ink, one faded red,
   thin double rules, a red drop capital, verse set as verse, framed numbered plates. */
:root {
  --paper: #F4EEE1; --leaf: #FBF7EE; --band: #EAE0CA; --ink: #221D16; --red: #8E2B1E; --red-dark: #5E1A10;
  --muted: #5A4E3C; --soft: #3B3328; --dot: #A8977A; --fold: #D7CAB0;
  --display: 'IM Fell English', 'Iowan Old Style', Georgia, serif; --sc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --body: 'EB Garamond', Garamond, Georgia, serif; --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 20px/1.62 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 12px; }
h2 { font-size: 32px; }
.red { stroke: var(--red); fill: var(--red); }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--leaf); padding: 8px 12px; z-index: 10; }
.small, .sub { font-size: 17px; color: var(--muted); }
.sub { font-style: italic; margin: 0 0 18px; }
.todo { color: var(--red); background: #F7E3DC; font-size: 0.85em; font-family: var(--body); font-style: normal; padding: 0 3px; }

/* Header: a thin double rule beneath */
header.site { border-bottom: 1px solid var(--ink); box-shadow: 0 4px 0 -2px var(--paper), 0 5px 0 -2px var(--ink); margin-bottom: 6px; }
header.site .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--sc); font-size: 30px; letter-spacing: 0.04em; line-height: 1; }
.logo i { font-family: var(--display); color: var(--red); }
header.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
header.site nav a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-family: var(--sc); font-size: 19px; letter-spacing: 0.05em; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; }

/* Ornamental rule */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto; color: var(--red); }
.ornament span { width: 120px; border-top: 1px solid var(--ink); }

/* Title page */
.title-page { text-align: center; padding-top: 64px; padding-bottom: 56px; }
.eyebrow { margin: 0 0 16px; font-family: var(--sc); letter-spacing: 0.22em; font-size: 16px; color: var(--muted); }
.title-page h1 { max-width: 860px; margin: 0 auto; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; }
.title-page h1 em { color: var(--red); }
.lede { max-width: 640px; margin: 0 auto; font-size: 22px; color: var(--soft); }
.seek { margin: 36px auto 0; max-width: 560px; display: flex; flex-wrap: wrap; gap: 10px; }
.seek input { flex: 1 1 240px; min-width: 0; height: 52px; border: 1px solid var(--ink); background: var(--leaf); padding: 0 16px; font: 19px var(--body); color: var(--ink); border-radius: 0; }
.seek button { min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 19px var(--sc); letter-spacing: 0.08em; cursor: pointer; border-radius: 0; }
.seek button:hover { background: var(--red); border-color: var(--red); }

/* Map and key */
.map-key { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-bottom: 72px; }
.map-key > .map-frame { flex: 999 1 540px; min-width: 0; }
.map-key > aside, .map-page > aside { flex: 1 1 300px; min-width: 0; }
.map-page { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 72px; }
.map-page > .map-frame { flex: 999 1 600px; min-width: 0; }
.map-frame { border: 1px solid var(--ink); padding: 7px; background: var(--leaf); }
.map { border: 1px solid var(--ink); min-height: 480px; height: 60vh; max-height: 640px; background: #EFE6D2; }
.map-big .map { height: 70vh; max-height: 760px; }
.mini-map { margin-top: 18px; height: 220px; border: 1px solid var(--ink); background: #EFE6D2; }
.map-fallback { margin: 0; padding: 16px 20px 16px 36px; font-size: 18px; }
p.map-fallback { padding: 16px 20px; }
.leaflet-container { font: 16px var(--body); background: #EFE6D2; }
.leaflet-tile-pane { filter: sepia(0.55) saturate(0.7) contrast(0.92) brightness(1.03); }
.leaflet-control-attribution { font-size: 12px; background: rgba(244, 238, 225, 0.9) !important; }
.pin { width: 36px; height: 36px; border-radius: 50%; background: var(--leaf); border: 1.5px solid var(--ink); box-shadow: 0 0 0 2px var(--leaf), 0 0 0 3px var(--ink); color: var(--ink); display: flex !important; align-items: center; justify-content: center; }
.pin:hover, .pin:focus { color: var(--red); border-color: var(--red); }
.leaflet-popup-content-wrapper { background: var(--leaf); color: var(--ink); border-radius: 0; border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.leaflet-popup-tip { background: var(--leaf); }
.leaflet-popup-content { margin: 14px 18px; }
.pop { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.pop-kind { font: 13px var(--sc); letter-spacing: 0.14em; color: var(--red); }
.pop-title { font: 22px/1.1 var(--display); }
.pop-place { font-size: 15px; color: var(--muted); font-style: italic; }
.key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 16px; }
.key a, .key .soon { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); border-bottom: 1px dotted var(--dot); font-size: 19px; }
.key a:hover { color: var(--red); }
.key .soon { color: #8C7F69; }

/* Cards and featured plates */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.card { display: flex; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 9px; }
.card-in { border: 1px solid var(--ink); padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kind { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--sc); letter-spacing: 0.14em; font-size: 15px; color: var(--red); }
.card-title { font: 34px/1.08 var(--display); }
.card-text { font-size: 19px; color: var(--soft); }
.card-go { margin-top: auto; padding-top: 8px; font: italic 19px var(--display); color: var(--red); }
.card:hover .card-title { color: var(--red); }
.featured { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--band); padding: 64px 0; }
.featured h2, .how h2 { text-align: center; font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 40px; }
.plates-label { margin: 0 0 6px; text-align: center; font-family: var(--sc); letter-spacing: 0.2em; font-size: 15px; color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px; }
.feat { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: stretch; }
.feat-plate { display: block; border: 1px solid var(--ink); padding: 6px; background: var(--leaf); }
.feat-plate img { display: block; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--ink); }
.how { padding: 72px 0; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 36px; }
.how h3 { font: 24px var(--sc); letter-spacing: 0.05em; margin-bottom: 8px; }
.how p { margin: 0; color: var(--soft); }

/* Hubs */
.hub-hero { text-align: center; padding-top: 40px; padding-bottom: 36px; }
.hub-hero h1 { font-size: clamp(40px, 5.4vw, 64px); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.crumb { font-size: 17px; color: var(--muted); font-style: italic; margin: 0 0 14px; }
.crumb a { color: var(--muted); }
nav.crumb { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; margin: 0 auto; }
.county-list { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.county-list a { display: flex; flex-direction: column; border: 1px solid var(--ink); padding: 20px 24px; text-decoration: none; color: var(--ink); background: var(--leaf); }
.county-list .count { font-style: italic; color: var(--muted); }
main > section.inner:last-child { padding-bottom: 72px; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 72px; }
.prose h2 { margin-top: 36px; }
.prose li { margin-bottom: 8px; }

/* The legend: a book spread */
.spread { display: flex; flex-wrap: wrap; margin: 24px 0 56px; border: 1px solid var(--ink); background: var(--leaf); box-shadow: 0 1px 0 var(--ink), 0 6px 0 -3px #E3D8C0, 0 7px 0 -3px var(--ink); }
.page-left { flex: 1 1 460px; min-width: 0; padding: 48px 52px 52px; border-right: 1px solid var(--fold); background: linear-gradient(90deg, var(--leaf) 85%, #EFE6D2 100%); }
.page-right { flex: 1 1 380px; min-width: 0; padding: 48px 40px 40px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(270deg, var(--leaf) 85%, #EFE6D2 100%); }
.page-left h1 { margin: 10px 0 6px; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; }
.place { margin: 0 0 14px; font-style: italic; color: var(--muted); }
.mood { display: inline-block; margin: 0 0 26px; padding: 2px 10px; border: 1px solid currentColor; font: 14px var(--sc); letter-spacing: 0.14em; color: var(--muted); }
.mood-spooky { color: var(--red); }
.page-left p { margin: 0 0 18px; }
.dropcap::first-letter { float: left; font-family: var(--display); font-size: 84px; line-height: 0.8; padding: 8px 12px 0 0; color: var(--red); }
.verse { margin: 24px 0; padding: 14px 0 14px 28px; border-left: 1px solid var(--red); font-style: italic; font-size: 21px; line-height: 1.5; }
.verse span { display: block; }
.verse cite { display: block; margin-top: 8px; font-size: 16px; color: var(--muted); }
.plate { margin: 0; width: 100%; max-width: 440px; text-align: center; position: sticky; top: 24px; }
.plate-no { margin: 0 0 14px; font-family: var(--sc); letter-spacing: 0.2em; font-size: 15px; color: var(--muted); }
.plate-frame { border: 1px solid var(--ink); padding: 3px; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf), 0 0 0 5px var(--ink); margin: 5px; }
.plate-frame img { display: block; width: 100%; border: 1px solid var(--ink); }
.plate figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.plate-cap { font: 16px var(--sc); letter-spacing: 0.08em; }
.no-plate { margin: auto 0; text-align: center; color: var(--dot); }
.no-plate p { font-style: italic; font-size: 17px; color: var(--muted); max-width: 280px; }
.plate-credit { font-style: italic; font-size: 16px; color: var(--muted); }
.lore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 48px; padding-bottom: 56px; }
.lore-grid .wide { grid-column: 1 / -1; max-width: 820px; }
.lore { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.lore li::marker { color: var(--red); }
.band-dark { border-top: 1px solid var(--ink); background: var(--band); }
.visit-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 52px; padding-bottom: 52px; }
.box { flex: 1 1 340px; min-width: 0; background: var(--paper); border: 1px solid var(--ink); padding: 8px; }
.box-in { border: 1px solid var(--ink); padding: 22px 24px; }
.box h2 { font: 26px var(--sc); letter-spacing: 0.06em; }
.box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 18px; }
.box dt { font-weight: 600; }
.box dd { margin: 0; }
.checked { font-size: 15px; font-style: italic; color: var(--muted); margin: 12px 0 0; }
.day-out { flex: 999 1 520px; min-width: 0; }
.day-out h2 { font-size: 34px; margin-bottom: 4px; }
.sisters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.sister { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); padding: 18px 20px; }
.sister:hover .sister-title { color: var(--red); }
.sister-site { font: 14px var(--sc); letter-spacing: 0.14em; color: var(--red); }
.sister-title { font: 23px/1.15 var(--display); }
.sister-text { font-size: 17px; color: var(--soft); }
.sources { margin: 52px 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); box-shadow: 0 -4px 0 -3px var(--ink); padding: 26px 0; }
.sources h2 { font: 24px var(--sc); letter-spacing: 0.08em; }
.sources ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.tell-us { margin: 16px 0 0; font-size: 17px; font-style: italic; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.form label { font-weight: 600; display: block; margin-bottom: 4px; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; border: 1px solid var(--ink); background: var(--leaf); padding: 10px 14px; font: 19px var(--body); color: var(--ink); border-radius: 0; }
.form textarea { min-height: 220px; }
.form fieldset { border: 1px solid var(--ink); padding: 12px 18px; margin: 0; }
.form .hint { font-size: 16px; color: var(--muted); font-weight: 400; }
.form .trap { position: absolute; left: -9999px; }
.form button { align-self: flex-start; min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 19px var(--sc); letter-spacing: 0.08em; cursor: pointer; border-radius: 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--ink); background: var(--ink); color: #EFE6D2; margin-top: 0; }
.site-foot .inner { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; padding-top: 44px; padding-bottom: 36px; }
.site-foot a { color: #EFE6D2; }
.foot-about { max-width: 520px; }
.foot-about p { margin: 0; font-size: 18px; color: #D9CDB3; }
.foot-brand { font: 26px var(--sc) !important; letter-spacing: 0.04em; color: #EFE6D2 !important; margin-bottom: 8px !important; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-block; padding: 5px 0; font-size: 18px; }
.site-foot .small { flex-basis: 100%; color: #C9BC9F; font-size: 15px; margin: 0; }

@media (max-width: 640px) {
  body { font-size: 19px; }
  .inner { padding: 0 16px; }
  .logo span { font-size: 26px; }
  header.site nav ul { gap: 0 18px; }
  header.site nav a { font-size: 17px; padding: 8px 0; }
  .page-left { padding: 30px 20px 32px; border-right: 0; border-bottom: 1px solid var(--fold); background: var(--leaf); }
  .page-right { padding: 30px 20px; background: var(--leaf); }
  .dropcap::first-letter { font-size: 68px; }
  .verse { padding-left: 18px; font-size: 20px; }
  .feat { grid-template-columns: 1fr; }
  .feat-plate { max-width: 260px; }
  .map { min-height: 380px; height: 55vh; }
  .ornament span { width: 70px; }
  .box dl { grid-template-columns: 1fr; gap: 2px; }
  .box dd { margin-bottom: 8px; }
}
@media print {
  header.site nav, .map-frame, .mini-map, .day-out, .site-foot { display: none; }
  .spread { box-shadow: none; }
}
