/* ============================================================
   DineTheBar.com — one stylesheet, no framework.
   Warm paper, oxblood and brass: a bar menu, not a law office.
   Fonts are the same self-hosted pair as TexasInheritance.com
   (SIL Open Font License; licence files sit beside the fonts).
   ============================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --wine: #6B2232;        /* links, active states */
  --wine-deep: #4A1621;   /* header, footer, headings */
  --brass: #8C5E14;       /* small labels — 5.2:1 on --bg */
  --brass-light: #E3C48A; /* on dark backgrounds only */
  --bg: #FBF7F0;          /* warm paper */
  --card: #FFFFFF;
  --line: #E6DCCD;
  --text: #2B2522;
  --muted: #675D56;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 0.15em; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--wine-deep); line-height: 1.15; font-weight: 650; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--text { width: min(720px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.75rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--wine-deep); color: #fff; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand:hover { color: #fff; }
.brand__name { font: 700 1.5rem/1 var(--serif); letter-spacing: 0.01em; }
.brand__by { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-light); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: var(--radius); }
.site-nav a:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass-light); border-radius: 0; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(var(--wine-deep), var(--wine)); color: #F6EEE3; padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px); }
.hero__inner { max-width: 760px; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); font-weight: 700; margin-bottom: 0.45em; }
.hero p { font-size: 1.125rem; margin: 0 0 0.8em; max-width: 62ch; }
.hero p:last-child { font-family: var(--serif); font-style: italic; color: var(--brass-light); font-size: 1.25rem; }

.places { padding: 40px 0 64px; }
.places__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.places__bar h2 { margin: 0; }
.filter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 3px; }
.filter button { font: 500 0.95rem/1 var(--sans); border: 0; background: none; color: var(--text); padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.filter button[aria-pressed="true"] { background: var(--wine-deep); color: #fff; }

/* ---------- Cards ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.card[hidden] { display: none; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.card a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgb(74 22 33 / 0.12); color: var(--text); }
.card img, .card__nophoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.card__text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.card__city { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.card__title { font: 650 1.15rem/1.25 var(--serif); color: var(--wine-deep); }
.card__tags { font-size: 0.875rem; color: var(--muted); margin-top: auto; padding-top: 6px; }

/* ---------- Place page ---------- */
.place__head { padding: 44px 0 8px; }
.place__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; margin: 0; }
.place__body { padding-bottom: 32px; }
.prose p { margin: 0 0 1.1em; }
.prose > .photos { margin: 1.6em 0; }
.photos { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photos--one { grid-template-columns: 1fr; }
.photos figure { margin: 0; }
.photos a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .15s; }
.photos--one img { aspect-ratio: auto; max-height: 560px; object-fit: contain; background: var(--wine-deep); }
.photos a:hover img { opacity: 0.92; }
.photos figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.more { padding: 8px 0 64px; border-top: 1px solid var(--line); }

/* ---------- Plain pages ---------- */
.page { padding: 44px 0 64px; }
.h1-sub { font-weight: 400; color: var(--muted); }
.cities { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cities a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--wine-deep); aspect-ratio: 4 / 3; }
.cities img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity .15s; }
.cities a:hover img { opacity: 0.55; }
.cities__name, .cities__count { position: absolute; left: 16px; right: 16px; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.cities__name { bottom: 36px; font: 700 1.6rem/1.1 var(--serif); }
.cities__count { bottom: 14px; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-deep); color: #EADFD2; padding: 36px 0 44px; font-size: 0.95rem; }
.site-footer p { margin: 0 0 8px; }
.site-footer__name { font: 700 1.25rem/1.2 var(--serif); color: #fff; }
.site-footer a { color: var(--brass-light); }

/* ---------- Photo viewer ---------- */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(20 8 11 / 0.96); color: #fff; }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viewer::backdrop { background: rgb(20 8 11 / 0.96); }
.viewer img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); object-fit: contain; }
.viewer__cap { margin: 12px 16px 0; text-align: center; color: #EADFD2; min-height: 1.4em; }
.viewer__btn, .viewer__close { position: absolute; background: rgb(255 255 255 / 0.12); color: #fff; border: 0; border-radius: 999px; cursor: pointer; font: 500 1rem/1 var(--sans); }
.viewer__btn { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2rem; }
.viewer__prev { left: 12px; } .viewer__next { right: 12px; }
.viewer__close { top: 12px; right: 12px; padding: 12px 16px; }
.viewer__btn:hover, .viewer__close:hover { background: rgb(255 255 255 / 0.24); }

@media (max-width: 560px) {
  .site-header__bar { padding: 12px 0; }
  .grid, .grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__text { padding: 10px 12px 12px; }
  .card__title { font-size: 1rem; }
  .card__city { font-size: 0.68rem; }
  .card__tags { font-size: 0.8rem; }
  .site-nav a { padding: 8px 10px; }
  .photos { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
