/* Dax's Bar and Grill
   Palette taken straight off the sign: black ground, gold ornament, white
   lettering. Nothing else competes with it. */

:root {
  --ink: #0c0c0c;
  --ink-2: #151515;
  --ink-3: #1d1d1d;
  --gold: #c9992a;
  --gold-lift: #e0b448;
  --cream: #f4efe6;
  --muted: #a49c8f;
  --line: #2a2722;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0 0 .6rem;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0cd74; }
img { max-width: 100%; height: auto; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.lede { font-size: 1.1rem; color: #ded6c8; max-width: 60ch; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000;
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .8rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: #000;
  position: sticky; top: 0; z-index: 5;
}
.bar__brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--cream); text-decoration: none; font-family: ui-serif, Georgia, serif;
  font-size: 1.15rem; letter-spacing: .04em; margin-right: auto;
}
.bar__brand img { border-radius: 50%; }
.bar__brand em { color: var(--gold); font-style: normal; font-size: .8em; letter-spacing: .12em; }
.bar__nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.bar__nav a { color: var(--cream); text-decoration: none; font-size: .95rem; }
.bar__nav a:hover, .bar__nav a.is-active { color: var(--gold-lift); }
.bar__call {
  border: 1px solid var(--gold); border-radius: 999px; padding: .35rem .9rem;
  color: var(--gold-lift) !important; white-space: nowrap;
}

/* -------------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, #241d0f 0%, transparent 60%),
    linear-gradient(#000, var(--ink));
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.hero__mark {
  border-radius: 50%; border: 2px solid var(--gold);
  width: clamp(120px, 26vw, 180px); height: auto; margin-bottom: 1.4rem;
}
.hero__inner .lede { margin-inline: auto; }
.hero__meta { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-top: 1.6rem; }

.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #120e05; }
.btn--gold:hover { background: var(--gold-lift); color: #120e05; }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lift); }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section--dark { background: var(--ink-2); border-block: 1px solid var(--line); }
.page-head {
  padding: clamp(2rem, 6vw, 3.5rem) 0 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#000, var(--ink));
}
.head { color: var(--gold); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-family: inherit; font-weight: 700; margin-bottom: 1.4rem; }
.split { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* -------------------------------------------------------- the regular week */

.week { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.week__card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem 1.3rem;
}
.week__day { color: var(--gold); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .4rem; }
.week__when { color: var(--cream); font-weight: 600; margin: 0 0 .5rem; }
.week__card p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- agenda */

.agenda { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.agenda__day { padding: 1rem 0; border-top: 1px solid var(--line); }
.agenda__day:first-child { border-top: 0; }
.agenda__date { font-weight: 700; margin: 0 0 .5rem; color: var(--cream); }
.agenda__date.is-today { color: var(--gold); }
.agenda__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.agenda__day ul li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; }
.agenda__time { color: var(--muted); min-width: 6.5rem; font-variant-numeric: tabular-nums; font-size: .92rem; }
.agenda__title { font-weight: 600; }
.agenda__blurb { color: var(--muted); flex-basis: 100%; padding-left: 7.1rem; font-size: .92rem; }
.pill {
  border: 1px solid var(--gold); color: var(--gold-lift);
  border-radius: 999px; padding: .05rem .6rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 560px) {
  .agenda__time { min-width: 100%; }
  .agenda__blurb { padding-left: 0; }
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem 1.6rem; margin-bottom: 1.2rem;
}
.card--deal { border-color: var(--gold); background: linear-gradient(180deg, #241d0f, var(--ink-3)); }
.pending { color: var(--muted); }
.address a { color: var(--cream); text-decoration: none; font-size: 1.1rem; line-height: 1.5; }
.address a:hover { color: var(--gold-lift); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ticks li::before { content: "—"; color: var(--gold); margin-right: .6rem; }

/* ----------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: #000; padding: 2.5rem 0 1.5rem; margin-top: 1rem; }
.foot__grid {
  width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.foot__name { color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: var(--gold-lift); }
.foot__fine {
  width: min(var(--wrap), 100% - 2.5rem); margin: 2rem auto 0;
  border-top: 1px solid var(--line); padding-top: 1rem;
  color: var(--muted); font-size: .82rem;
}

/* ------------------------------------------------- photographs & the week */

/* The hero carries the building shot behind a scrim heavy enough that white
   type stays readable on a phone in daylight. --shot is set per page. */
.hero {
  position: relative;
  background-image: linear-gradient(rgba(6,6,6,.86), rgba(6,6,6,.94)), var(--shot, none);
  background-size: cover;
  background-position: center 60%;
}

.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  display: block; object-fit: cover;
}
.shot figcaption, .gallery figcaption {
  color: var(--muted); font-size: .88rem; margin-top: .6rem;
}
.shot--wide img { max-height: 460px; }
.split--photo { align-items: center; }

.gallery {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: 260px; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); display: block;
}

/* ------------------------------------------------------------------ hours */

.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--cream); padding-right: 1.5rem; }
.hours td { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold-lift); font-weight: 600; }
.hours__tag {
  border: 1px solid var(--gold); border-radius: 999px; padding: 0 .45rem;
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle;
}

/* ------------------------------------------------------------------- menu */

.card__when { color: var(--gold); font-size: .84rem; letter-spacing: .06em; margin-top: -.3rem; }
.menu__section {
  color: var(--cream); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  font-family: inherit; margin: 1.8rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.menu__line { display: flex; align-items: baseline; gap: .6rem; }
.menu__name { font-weight: 600; }
.menu__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.25rem); }
.menu__price { color: var(--gold-lift); font-variant-numeric: tabular-nums; font-weight: 600; }
.menu__desc { color: var(--muted); margin: .2rem 0 0; font-size: .94rem; }
.menu__foot { font-size: .86rem; margin-top: 1.6rem; }

/* ------------------------------------------------------------ footer credit */

.foot__fine {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.foot__fine p { margin: 0; }
.foot__by {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--muted); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .85; transition: opacity .15s ease;
}
.foot__by:hover { opacity: 1; color: var(--muted); }
.foot__by img { width: 140px; height: auto; display: block; }
@media (max-width: 520px) {
  .foot__fine { justify-content: flex-start; }
}

/* A photo band sitting directly under the hero needs less air above it than a
   normal section, or the page opens with a gap where the bar should be. */
.section--tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Bigger tiles: these photographs ARE the room, so they get to be seen. */
.gallery--big { gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery--big img { height: 340px; }
.gallery--pair { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery--pair img { height: 300px; }
@media (max-width: 600px) {
  .gallery--big img, .gallery--pair img { height: 260px; }
}

/* ==========================================================================
   Small screens
   Most of this page was already fluid -- clamped type, auto-fit grids, images
   at width:100%. What needed real work is the header: brand, four links and a
   phone number will not sit on one 360px line, and letting them wrap into a
   ragged block is how a bar's site ends up looking broken on the device
   everyone actually uses to find it.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; }        /* iOS inflating type in landscape */
img, table, figure { max-width: 100%; }

@media (max-width: 760px) {
  /* Brand on its own line, navigation as one scrollable row underneath. The
     row scrolls rather than wraps so the header keeps a predictable height and
     never eats a third of a phone screen. */
  .bar { flex-direction: column; align-items: stretch; gap: .6rem; padding: .7rem 1rem; }
  .bar__brand { margin-right: 0; justify-content: center; font-size: 1.05rem; }
  .bar__nav {
    display: flex; gap: .4rem; justify-content: space-between; align-items: center;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .bar__nav::-webkit-scrollbar { display: none; }
  .bar__nav a {
    padding: .55rem .5rem;                       /* 44px tall tap targets */
    font-size: .92rem; white-space: nowrap;
  }
  .bar__call { padding: .45rem .8rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: 2rem; }
  .hero__mark { width: 116px; margin-bottom: 1rem; }
  h1 { font-size: clamp(1.75rem, 8.5vw, 2.4rem); }
  .lede { font-size: 1rem; }
  .btn-row { gap: .5rem; }
  .btn { padding: .7rem 1.05rem; font-size: .92rem; }
  /* Every button full width once two of them no longer fit side by side --
     easier to hit with a thumb, and it stops a lone orphan button. */
  .hero .btn { flex: 1 1 100%; text-align: center; }
  .section { padding: 2rem 0; }
  .gallery--big img, .gallery--pair img, .gallery img { height: 220px; }
  .hours { max-width: none; }
  .hours th { padding-right: .75rem; }
  .card { padding: 1.2rem 1.1rem; }
  .menu__desc { font-size: .9rem; }
  .foot__by img { width: 118px; }
}

/* A phone in a pocket is the likeliest way anyone reaches this site, so the
   number stays reachable without hunting: it is in the sticky header, in the
   hero, in the footer and on every page. */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}

/* ---------------------------------------------------- calendar artwork (16:9) */

/* Flyers are landscape, so they lead the card rather than sitting beside the
   text. The aspect-ratio box means the page reserves the right space before the
   image loads and nothing jumps. */
.week__card--art { padding: 0; overflow: hidden; }
.week__card--art > :not(.week__art) { padding-inline: 1.3rem; }
.week__card--art > .week__day { padding-top: 1.1rem; }
.week__card--art > p:last-child { padding-bottom: 1.2rem; }
.week__art {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
}

.agenda__day li.has-art { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.agenda__art {
  width: 100%; max-width: 460px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); display: block;
}
.agenda__day li.has-art .agenda__time { min-width: 0; }
@media (min-width: 720px) {
  .agenda__day li.has-art { grid-template-columns: 240px 1fr; align-items: start; }
  .agenda__day li.has-art .agenda__art { grid-row: span 4; }
  .agenda__day li.has-art .agenda__blurb { padding-left: 0; }
}
