/* =========================================================
   Wine Trail — City Guide
   Palette: vine #3A4630 · barrel #6B4A2F · glass #F3EDE2 · label #7A2E3B
   ========================================================= */

:root {
    --vine: #3A4630;
    --barrel: #6B4A2F;
    --glass: #F3EDE2;
    --label: #7A2E3B;
    --ink: #22271D;
    --paper: #FBF7F0;
    --white: #FFFFFF;
    --line: rgba(58, 70, 48, 0.25);
    --line-soft: rgba(58, 70, 48, 0.12);
    --shadow-tile: 0 1px 2px rgba(34, 39, 29, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.wt-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wt-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.wt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.wt-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(243, 237, 226, 0.97);
    border-bottom: 1px solid var(--line-soft);
}
.wt-header__inner {
    max-width: 1200px; margin: 0 auto; padding: 12px 24px;
    display: flex; align-items: center; gap: 26px;
}
.wt-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.wt-brand__mark {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--vine); color: var(--glass);
    display: grid; place-items: center;
    font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 14px;
}
.wt-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.wt-brand__name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 21px; color: var(--vine); letter-spacing: -0.01em; }
.wt-brand__tag { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--barrel); }

.wt-nav { display: flex; gap: 24px; }
.wt-nav a { font-size: 14px; font-weight: 500; color: var(--vine); padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease; }
.wt-nav a:hover { border-bottom-color: var(--label); color: var(--label); }

.wt-search { margin-left: auto; display: flex; }
.wt-search input {
    width: 250px; padding: 9px 14px; font: inherit; font-size: 13.5px; color: var(--ink);
    border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
    background: var(--white); outline: none;
}
.wt-search input:focus { border-color: var(--vine); box-shadow: 0 0 0 3px rgba(58, 70, 48, 0.12); }
.wt-search button {
    padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 600; color: var(--glass);
    background: var(--vine); border: 1px solid var(--vine); border-radius: 0 999px 999px 0; cursor: pointer;
    transition: background .15s ease;
}
.wt-search button:hover { background: var(--barrel); border-color: var(--barrel); }

/* ---------- Footer ---------- */
.wt-footer { margin-top: 80px; background: var(--vine); color: var(--glass); }
.wt-footer__inner { max-width: 1200px; margin: 0 auto; padding: 44px 24px 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.wt-footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.wt-footer__brand .wt-brand__mark { background: var(--glass); color: var(--vine); }
.wt-footer__title { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 700; }
.wt-footer__note { margin: 4px 0 0; font-size: 13.5px; color: rgba(243, 237, 226, 0.72); max-width: 34ch; }
.wt-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.wt-footer__nav a { font-size: 13.5px; font-weight: 500; color: rgba(243, 237, 226, 0.85); }
.wt-footer__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.wt-footer__meta { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(243, 237, 226, 0.2); font-size: 12.5px; color: rgba(243, 237, 226, 0.6); }

/* ---------- Section labels & links ---------- */
.wt-section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--barrel); }
.wt-link { font-size: 13.5px; font-weight: 600; color: var(--label); }
.wt-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.wt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 56px 0 22px; }
.wt-section-title { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 600; color: var(--vine); letter-spacing: -0.01em; }

/* ---------- Region chips (wayfinding) ---------- */
.wt-regions { padding-top: 26px; }
.wt-regions__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wt-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.wt-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--white); color: var(--vine);
    font-size: 13px; font-weight: 500; line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.wt-chip:hover { background: var(--vine); border-color: var(--vine); color: var(--glass); transform: translateY(-1px); }
.wt-chip--on { background: var(--vine); border-color: var(--vine); color: var(--glass); }
.wt-chip--tonight { border-color: var(--label); color: var(--label); }
.wt-chip--tonight:hover { background: var(--label); border-color: var(--label); color: var(--glass); }

/* ---------- Mosaic ---------- */
.wt-mosaic { padding-top: 18px; }
.wt-mosaic__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wt-mosaic__eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--barrel); }

.wt-mosaic__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.wt-tile {
    position: relative; display: block; overflow: hidden; grid-column: span 4;
    min-height: 240px; border-radius: 14px; background: var(--glass);
    border: 1px solid var(--line-soft); box-shadow: var(--shadow-tile);
}
.wt-tile:first-child, .wt-tile.featured { grid-column: span 8; min-height: 360px; }
.wt-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.wt-tile:hover .wt-tile__img { transform: scale(1.04); }
.wt-tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,28,20,0.05) 20%, rgba(24,28,20,0.78) 100%); }
.wt-tile__badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(243, 237, 226, 0.92); color: var(--vine);
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.wt-tile__body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: var(--glass); }
.wt-tile__title { margin: 0 0 4px; font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.wt-tile:first-child .wt-tile__title, .wt-tile.featured .wt-tile__title { font-size: 30px; }
.wt-tile__dek { display: none; margin: 0 0 8px; font-size: 14.5px; color: rgba(243, 237, 226, 0.92); max-width: 52ch; }
.wt-tile:first-child .wt-tile__dek, .wt-tile.featured .wt-tile__dek { display: block; }
.wt-tile__meta { margin: 0; font-size: 12.5px; font-weight: 500; color: rgba(243, 237, 226, 0.85); }
.wt-tile__dot { margin: 0 6px; opacity: .6; }

/* ---------- Venue cards ---------- */
.wt-venues__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wt-venue {
    border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
    background: var(--white); box-shadow: var(--shadow-tile);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wt-venue:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 8px 20px rgba(58,70,48,.10); }
.wt-venue__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.wt-venue__body { padding: 14px 16px 16px; }
.wt-venue__cat { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--barrel); }
.wt-venue__name { margin: 0 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--vine); }
.wt-venue__addr { margin: 0 0 10px; font-size: 13px; color: rgba(34,39,29,.68); }
.wt-venue__hours { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line-soft); font-size: 12.5px; color: var(--ink); }
.wt-venue__hours b { color: var(--barrel); font-weight: 700; letter-spacing: .04em; }

/* ---------- List pages ---------- */
.wt-list { padding-top: 34px; }
.wt-list__head { max-width: 640px; margin-bottom: 22px; }
.wt-list__title { margin: 0 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 40px; font-weight: 700; color: var(--vine); letter-spacing: -0.02em; }
.wt-list__sub { margin: 0; font-size: 15.5px; color: rgba(34,39,29,.7); }

.wt-filterbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 26px; border-top: 1px solid var(--line-soft); margin-top: 8px; }

.wt-event-row {
    display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: stretch;
    border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
    background: var(--white); margin-bottom: 14px; box-shadow: var(--shadow-tile);
    transition: transform .18s ease, border-color .18s ease;
}
.wt-event-row:hover { transform: translateY(-2px); border-color: var(--line); }
.wt-event-row__img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.wt-event-row__body { padding: 16px 18px; }
.wt-event-row__cat { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--barrel); }
.wt-event-row__title { margin: 0 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600; color: var(--vine); }
.wt-event-row__dek { margin: 0 0 8px; font-size: 13.5px; color: rgba(34,39,29,.72); }
.wt-event-row__meta { margin: 0; font-size: 12.5px; font-weight: 500; color: rgba(34,39,29,.6); }

/* ---------- Neighborhood grid ---------- */
.wt-neighborhoods__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wt-nhood { position: relative; display: block; overflow: hidden; border-radius: 14px; min-height: 260px; border: 1px solid var(--line-soft); box-shadow: var(--shadow-tile); }
.wt-nhood__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.wt-nhood:hover .wt-nhood__img { transform: scale(1.04); }
.wt-nhood__body { position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px; background: linear-gradient(180deg, transparent, rgba(24,28,20,.82)); color: var(--glass); }
.wt-nhood__name { margin: 0 0 4px; font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 600; }
.wt-nhood__dek { margin: 0 0 8px; font-size: 13px; color: rgba(243,237,226,.9); }

/* ---------- Detail pages ---------- */
.wt-detail { padding-top: 26px; }
.wt-crumbs { display: flex; gap: 8px; font-size: 12.5px; color: rgba(34,39,29,.55); margin-bottom: 20px; }
.wt-crumbs a { color: var(--barrel); font-weight: 500; }
.wt-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wt-detail__cat { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.wt-detail__title { margin: 0 0 10px; font-family: 'Fraunces', Georgia, serif; font-size: 44px; font-weight: 700; color: var(--vine); letter-spacing: -0.02em; line-height: 1.1; max-width: 18ch; }
.wt-detail__dek { margin: 0 0 12px; font-size: 17px; color: rgba(34,39,29,.72); max-width: 60ch; }
.wt-detail__meta { margin: 0 0 22px; font-size: 13.5px; font-weight: 500; color: rgba(34,39,29,.65); }
.wt-detail__meta a { color: var(--label); font-weight: 600; }
.wt-detail__dot { margin: 0 8px; opacity: .5; }
.wt-detail__img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-soft); }
.wt-detail__body { margin-top: 26px; max-width: 720px; font-size: 15.5px; color: rgba(34,39,29,.85); white-space: pre-line; }

/* ---------- Search ---------- */
.wt-searchbar { display: flex; max-width: 560px; margin: 26px 0 6px; }
.wt-searchbar input { flex: 1; min-width: 0; padding: 11px 16px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--white); outline: none; }
.wt-searchbar input:focus { border-color: var(--vine); box-shadow: 0 0 0 3px rgba(58,70,48,.12); }
.wt-searchbar button { padding: 11px 22px; font: inherit; font-size: 14px; font-weight: 600; color: var(--glass); background: var(--vine); border: 1px solid var(--vine); border-radius: 0 999px 999px 0; cursor: pointer; }
.wt-searchbar button:hover { background: var(--barrel); }
.wt-search__hint { margin: 0 0 18px; font-size: 13px; color: rgba(34,39,29,.6); }

/* ---------- Guides ---------- */
.wt-guides__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wt-guide { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-tile); }
.wt-guide__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.wt-guide__body { padding: 16px 18px; }
.wt-guide__title { margin: 0 0 6px; font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--vine); }
.wt-guide__dek { margin: 0 0 10px; font-size: 13.5px; color: rgba(34,39,29,.72); }
.wt-guide__text { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line-soft); font-size: 13.5px; color: rgba(34,39,29,.8); white-space: pre-line; }

/* ---------- About ---------- */
.wt-about { padding-top: 34px; max-width: 760px; }
.wt-about h1 { margin: 0 0 10px; font-family: 'Fraunces', Georgia, serif; font-size: 40px; font-weight: 700; color: var(--vine); letter-spacing: -0.02em; }
.wt-about p { font-size: 15.5px; color: rgba(34,39,29,.82); margin: 0 0 16px; }

/* ---------- Motion: reduced ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wt-tile__img, .wt-nhood__img, .wt-tile, .wt-venue, .wt-event-row, .wt-chip { transition: none !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .wt-header__inner { flex-wrap: wrap; gap: 12px; }
    .wt-search { margin-left: 0; order: 3; width: 100%; }
    .wt-search input { flex: 1; width: auto; }
    .wt-venues__grid, .wt-neighborhoods__grid, .wt-guides__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .wt-mosaic__grid { grid-template-columns: 1fr; }
    .wt-tile, .wt-tile:first-child { grid-column: span 1; min-height: 260px; }
    .wt-venues__grid, .wt-neighborhoods__grid, .wt-guides__grid { grid-template-columns: 1fr; }
    .wt-event-row { grid-template-columns: 1fr; }
    .wt-event-row__img { max-height: 180px; }
    .wt-footer__inner { grid-template-columns: 1fr; }
    .wt-detail__title { font-size: 32px; }
    .wt-nav { gap: 14px; }
}
