/* Jameson's Bar, Eugene OR
   Colors come from the room: lounge (dark wood in shadow), felt (the orange pool tables),
   lamp (warm light), brass, and the logo's green, which only ever means "open".
   Type: Inter only. Headings use its Display optical size (opsz 32), body its Text size. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  /* Color */
  --lounge: #1a0f0b;
  --lounge-raised: #27170f;
  --felt: #e4501f;
  --lamp: #fbebd0;
  --brass: #d9a441;
  --open: #86cf4a;

  --bg: var(--lounge);
  --text: var(--lamp);
  --text-2: #cfbba0;
  --rule: rgb(251 235 208 / 0.2);
  --accent: var(--felt);
  --on-accent: var(--lounge);
  --focus: var(--lamp);

  /* Type */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-quote: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.6vw, 5.25rem);
  --fs-time: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);

  /* Space: local < group < section */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --measure: 60ch;

  /* Shape */
  --r-small: 0.5rem;
  --r-photo: 1.25rem;
  --r-pill: 999px;

  /* Motion */
  --dur-fast: 180ms;
  --dur-med: 520ms;
  --ease-out: cubic-bezier(0.24, 1, 0.4, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-5); }

body {
  margin: 0;
  background: var(--lounge);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* ---------- Type roles ---------- */
h1, h2, .deal-time, blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1, h2, h3, p, dl, dd, figure, blockquote, address { margin: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font: 700 var(--fs-h3)/1.25 var(--font-text); letter-spacing: -0.01em; }

p { max-width: var(--measure); text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
address { font-style: normal; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-small); }

.skip {
  position: absolute; inset-inline-start: var(--s-4); inset-block-start: -5rem; z-index: 20;
  padding: var(--s-3) var(--s-4); background: var(--lamp); color: var(--lounge);
  border-radius: var(--r-small); font-weight: 700; text-decoration: none;
}
.skip:focus { inset-block-start: var(--s-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); background: var(--bg); color: var(--text); }
.raised { --bg: var(--lounge-raised); }

.section-head { display: grid; gap: var(--s-5); margin-block-end: var(--s-7); }
.section-head p + p { margin-block-start: var(--s-4); }
@media (min-width: 56rem) {
  .section-head { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); align-items: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 var(--s-6);
  font: 700 var(--fs-body)/1 var(--font-text);
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--r-pill);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:focus-visible { border-radius: var(--r-pill); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background-image: linear-gradient(rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.14)); }
.btn-primary:active { background-image: linear-gradient(rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.12)); }
.btn-quiet { color: var(--text); border-color: rgb(251 235 208 / 0.55); background: rgb(26 15 11 / 0.35); }
.btn-quiet:hover { border-color: var(--lamp); }
.btn-quiet:active { background: rgb(251 235 208 / 0.12); }
.btn-ink { background: var(--lounge); color: var(--lamp); }
.btn-ink:hover { background-image: linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.1)); }
.btn-ink:active { background-image: linear-gradient(rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.2)); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Header (sits on the hero photo) ---------- */
.site-header {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 5;
  display: flex; align-items: center; gap: var(--s-5);
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  padding-block: var(--s-4);
}
.brand { flex: none; border-radius: var(--r-small); }
.brand img { width: 6.5rem; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-3);
  font-weight: 600; text-decoration: none; border-radius: var(--r-pill);
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; }
.header-cta { min-height: 2.75rem; padding: 0 var(--s-5); }

@media (max-width: 52rem) {
  .site-nav { display: none; }
  .header-cta { margin-inline-start: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-items: end;
  min-height: min(100svh, 54rem);
  background: var(--lounge);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgb(26 15 11 / 0.8), rgb(26 15 11 / 0) 9rem),
    linear-gradient(to top, rgb(26 15 11 / 0.98) 0%, rgb(26 15 11 / 0.86) 34%, rgb(26 15 11 / 0) 78%);
}
.hero-copy {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  padding-block: 9rem var(--s-7);
  display: grid; gap: var(--s-5); justify-items: start;
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; }

.status {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-weight: 600; line-height: 1.4;
}
.status-dot {
  flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%;
  border: 2px solid var(--text-2); background: transparent;
}
.status[data-state="open"] .status-dot { border-color: var(--open); background: var(--open); }
.status[data-state="unknown"] .status-dot { display: none; }

@media (min-width: 48rem) {
  .hero::before {
    background:
      linear-gradient(to bottom, rgb(26 15 11 / 0.75), rgb(26 15 11 / 0) 9rem),
      linear-gradient(to top, rgb(26 15 11 / 0.92) 0%, rgb(26 15 11 / 0) 62%),
      linear-gradient(to right, rgb(26 15 11 / 0.9) 0%, rgb(26 15 11 / 0.55) 42%, rgb(26 15 11 / 0) 74%);
  }
  .hero-copy { padding-block-end: var(--s-8); }
}

/* One load sequence, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise var(--dur-med) var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .status[data-state="open"] .status-dot { animation: pulse 2.8s ease-out infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(134 207 74 / 0.55); }
    70%, 100% { box-shadow: 0 0 0 0.65rem rgb(134 207 74 / 0); }
  }
}

/* ---------- Specials: the orange felt ---------- */
.felt {
  --bg: var(--felt); --text: var(--lounge); --focus: var(--lounge);
  position: relative; overflow: clip;
}
.felt .wrap { position: relative; }
.sputnik {
  position: absolute; inset-block-start: -8rem; inset-inline-end: -7rem;
  width: clamp(14rem, 26vw, 22rem); height: auto;
  color: var(--lounge); opacity: 0.14; pointer-events: none;
}

.deals { margin: 0 0 var(--s-7); padding: 0; list-style: none; border-block-start: 2px solid var(--lounge); }
.deals li {
  display: grid; gap: var(--s-2);
  padding-block: var(--s-5); border-block-end: 2px solid var(--lounge);
}
.deal-time { font-size: var(--fs-time); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; max-width: none; white-space: nowrap; }
.deal-body { display: grid; gap: var(--s-2); align-content: center; }
.deal-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.on-now {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
  background: var(--lounge); color: var(--lamp);
  font-size: var(--fs-small); font-weight: 700; line-height: 1.2; letter-spacing: 0;
}
.on-now::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--open); }
.on-now[hidden] { display: none; }

@media (min-width: 52rem) {
  .deals li { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; padding-block: var(--s-6); }
}

/* ---------- The room ---------- */
.photos { display: grid; gap: var(--s-5); margin-block-end: var(--s-8); }
.photos figure { display: grid; gap: var(--s-3); align-content: start; }
.photos img { width: 100%; object-fit: cover; border-radius: var(--r-photo); background: var(--lounge-raised); }
.photos figcaption { font-size: var(--fs-small); color: var(--text-2); }
.photo-a img { aspect-ratio: 700 / 764; }
.photo-b img { aspect-ratio: 600 / 791; }

@media (min-width: 52rem) {
  /* flex-grow = aspect ratio, so both photos land on the same height */
  .photos { display: flex; gap: var(--s-5); }
  .photo-a { flex: 0.916 1 0; }
  .photo-b { flex: 0.759 1 0; }
}

.inside { display: grid; gap: var(--s-6); align-items: center; }
.inside h3 { margin-block-end: var(--s-4); }
.inside dl { display: grid; border-block-start: 1px solid var(--rule); }
.inside dl div { display: grid; gap: var(--s-1); padding-block: var(--s-4); border-block-end: 1px solid var(--rule); }
.inside dt { font-weight: 700; }
.inside dd { color: var(--text-2); max-width: var(--measure); }
.inside-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-photo); }

@media (min-width: 52rem) {
  .inside { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); }
  .inside dl div { grid-template-columns: 15rem 1fr; gap: var(--s-5); }
}

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: var(--s-7); }
.quotes figure { display: grid; gap: var(--s-4); align-content: start; }
.quotes blockquote { font-size: var(--fs-quote); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.quotes blockquote p { max-width: 26ch; }
.quotes figcaption { font-size: var(--fs-small); color: var(--text-2); }
.quotes cite { font-style: normal; }
@media (min-width: 52rem) { .quotes { grid-template-columns: 1.15fr 0.85fr 1.15fr; gap: var(--s-8); } }

/* ---------- Questions ---------- */
.faq-grid { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) { .faq-grid { grid-template-columns: 1fr 1.25fr; gap: var(--s-8); align-items: start; } }
.faq { border-block-start: 1px solid var(--rule); }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 3.75rem; padding-block: var(--s-4);
  font-size: var(--fs-lead); font-weight: 700; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { padding-block-end: var(--s-5); color: var(--text-2); }
.faq details p a { color: var(--text); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: var(--s-7); }
@media (min-width: 56rem) { .visit-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; } }
.visit-grid h2 { margin-block-end: var(--s-6); }
.facts { display: grid; margin-block-end: var(--s-6); border-block-start: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-4); padding-block: var(--s-4); border-block-end: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--text-2); line-height: 1.75; }
.facts dd { font-size: var(--fs-lead); line-height: 1.4; overflow-wrap: anywhere; }
.map-wrap { display: grid; gap: var(--s-3); }
.map {
  width: 100%; aspect-ratio: 4 / 3; min-height: 18rem; border: 0;
  border-radius: var(--r-photo); background: var(--lounge);
}

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s-7); font-size: var(--fs-small); line-height: 1.6; color: var(--text-2); }
.site-footer .wrap { display: grid; gap: var(--s-5); }
.site-footer img { width: 5.5rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin: 0; padding: 0; list-style: none; }
.site-footer li a, .site-footer address a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer address a { min-height: 2rem; }
.legal { grid-column: 1 / -1; padding-block-start: var(--s-5); border-block-start: 1px solid var(--rule); max-width: none; }
@media (min-width: 52rem) {
  .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5) var(--s-7); }
}

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 48rem) {
  .action-bar {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 10;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-3);
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: rgb(26 15 11 / 0.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-block-start: 1px solid var(--rule);
  }
  .action-bar .btn { min-height: 3rem; padding: 0 var(--s-4); }
  body { padding-block-end: calc(4.5rem + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
  .hero { min-height: min(100svh - 4.5rem, 46rem); }
  .hero-copy { padding-block-end: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .on-now { border: 1px solid CanvasText; }
  .status-dot { border-color: CanvasText; }
}

@media print {
  .action-bar, .map-wrap, .sputnik { display: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 30rem) {
  .actions .btn { flex: 1 1 auto; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .sputnik { opacity: 0.12; }
}
