:root {
  color-scheme: light;
  --paper: #faf7ef;
  --tinted: #f1ebdf;
  --ink: #281c22;
  --muted: #665957;
  --line: #d8cfc2;
  --accent: #a33919;
  --apricot: #ffa671;
  --serif: "DM Serif Text", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.15rem, 5.4vw, 5.75rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
.wrap { width: min(100% - 2 * var(--gutter), 82rem); margin-inline: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #187991; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -8rem; z-index: 5; padding: .8rem; background: white; }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .masthead nav, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.masthead-inner { min-height: 4.8rem; }
.brand { font: bold 2.1rem/.95 var(--serif); letter-spacing: -.08em; text-decoration: none; }
.brand span { color: var(--accent); }
.masthead nav { gap: clamp(1.15rem, 3vw, 3rem); font-size: .95rem; font-weight: 600; }
.masthead nav a { padding: .5rem 0; text-decoration: none; }
.masthead nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--paper); }
.hero-copy { align-self: center; padding: clamp(3rem, 5.6vw, 6.8rem) clamp(1.6rem, 3vw, 4rem) clamp(3rem, 5.6vw, 6.8rem) max(var(--gutter), calc((100vw - 82rem) / 2)); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3rem, 6.45vw, 7.4rem); line-height: .96; letter-spacing: -.067em; }
h1 em { color: var(--apricot); }
.hero-copy p { max-width: 29rem; margin: clamp(1.4rem, 2.5vw, 2.3rem) 0 1.6rem; color: #ede3d7; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero-action { display: inline-block; padding: .75rem 1.3rem; border-radius: 2px; color: var(--ink); background: var(--apricot); font-weight: 700; text-decoration: none; }
.hero-action:hover { background: #ffc39e; }
.hero-image { position: relative; overflow: hidden; min-height: 19rem; background: #4b3432; }
.hero-image img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.city-section { padding: clamp(2.5rem, 4.5vw, 4.25rem) 0; background: var(--tinted); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
h2 { font-size: clamp(2.25rem, 3.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.055em; }
.section-count, .results-bar { color: var(--muted); font-size: .9375rem; }
.section-count { white-space: nowrap; }
.city-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; }
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 3.5vw, 4rem); margin-top: 1.75rem; }
.city-link { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem; padding: .65rem 0; border-bottom: 1px solid #cfc2b2; text-decoration: none; }
.city-link strong { font: 400 clamp(1.2rem, 1.65vw, 1.5rem)/1.3 var(--serif); letter-spacing: -.025em; }
.city-link small, .card-location { font: 700 .8rem/1.4 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.city-link small { color: var(--muted); }
.city-link:hover strong, .city-link[aria-current] strong { color: var(--accent); text-decoration: underline; text-underline-offset: .19em; }
.directory { padding-block: clamp(3.2rem, 6vw, 6.3rem); }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr); gap: 1.25rem; margin: 2rem 0 1.15rem; }
.filter-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; font-size: .9rem; font-weight: 650; }
.input-shell, .select-shell { position: relative; display: block; }
.filters input, .filters select { display: block; width: 100%; min-height: 3.1rem; padding: .75rem 1rem; border: 1px solid #a89b90; border-radius: 2px; background: transparent; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.filters input { padding-inline-start: 2.8rem; }
.filters input::placeholder { color: #726660; }
.filters select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-shell::after { content: ""; position: absolute; right: 1.1rem; top: 40%; width: .55rem; height: .55rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); pointer-events: none; }
.magnifier { width: .92rem; height: .92rem; border-radius: 50%; border: 1.6px solid var(--muted); position: absolute; pointer-events: none; left: 1.05rem; top: calc(50% - .56rem); }
.magnifier::after { content: ""; position: absolute; width: .48rem; height: 1.6px; background: var(--muted); left: .65rem; top: .72rem; transform: rotate(45deg); }
.results-bar { display: flex; min-height: 2.5rem; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.text-button { color: var(--accent); cursor: pointer; padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .18em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.65rem clamp(1.3rem, 2.3vw, 2.5rem); }
.card { display: flex; flex-direction: column; min-width: 0; border-top: 2px solid var(--ink); padding: 1.15rem 0 .65rem; }
.card-location { color: var(--accent); font-size: .82rem; }
.card h3 { font-size: clamp(1.75rem, 2.5vw, 2.5rem); line-height: 1.09; margin: .7rem 0 .4rem; letter-spacing: -.045em; overflow-wrap: anywhere; }
.card-meta { font-size: .925rem; color: var(--muted); }
.card-copy { margin-block: .9rem 1.25rem; color: #44373a; line-height: 1.55; }
.card-links { display: flex; align-items: center; gap: .45rem 1.35rem; flex-wrap: wrap; margin-top: auto; }
.card-links a { font-size: .9rem; text-underline-offset: .22em; text-decoration-color: #b5a99d; }
.card-links a:first-child { font-weight: 700; }
.card-links a:hover { color: var(--accent); text-decoration-color: currentColor; }
.empty { grid-column: 1/-1; border-block: 1px solid var(--line); padding: 1.5rem 0; }
footer { background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 7rem; gap: 1rem; }
footer .brand span { color: var(--apricot); }
footer p { font-size: .9rem; color: #e4d7ce; }
@media (max-width: 54rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .masthead-inner { min-height: 4rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.75rem var(--gutter); }
  h1 { font-size: clamp(3.35rem, 11.5vw, 5.1rem); }
  .hero-image { height: clamp(12rem, 45vw, 19rem); min-height: 0; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; gap: .85rem; }
}
@media (max-width: 35rem) {
  .cards { grid-template-columns: 1fr; }
  .city-section .section-heading { flex-wrap: wrap; gap: .3rem .9rem; }
  .city-grid { margin-top: 1.1rem; }
  .footer-inner { align-items: flex-start; justify-content: center; flex-direction: column; gap: .6rem; }
}
