:root {
  --paper: #f3f0ea;
  --paper-2: #e5dfd4;
  --ink: #171614;
  --muted: #5f584f;
  --line: #ddd4c6;
  --accent: #1b3c34;
  --white: #fffcf8;
  --max: 74rem;
  --pad: clamp(1.1rem, 3.2vw, 2.25rem);
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Palatino, "Palatino Linotype", serif;
  --header: 4.75rem;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: calc(var(--header) + 0.75rem); }

body {
  margin: 0;
  padding-top: var(--header);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.shell {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.icon { width: 1.35rem; height: 1.35rem; display: block; flex: none; }
.icon-lg { width: 3.25rem; height: 3.25rem; }
.mark { width: 1.7rem; height: 1.7rem; display: block; flex: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand span {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding-block: 0.15rem;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

.nav a:hover { color: var(--ink); }

.lang-switch {
  border: 1px solid var(--line);
  padding: 0.32rem 0.65rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
}

.mast {
  display: grid;
  gap: 1.25rem;
  padding-top: clamp(1.35rem, 3vw, 2.25rem);
  padding-bottom: 1.15rem;
  align-items: end;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

img.avin-mark,
img.avin-card,
img.avin-loyalty {
  display: block;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand img.avin-mark {
  width: 4rem;
  height: 2.4rem;
  max-width: 4rem;
  max-height: 2.4rem;
}

.avin-card { height: 3.15rem; max-height: 3.15rem; }
.avin-card-lg { height: 4.15rem; max-height: 4.15rem; margin: 0 0 0.85rem; }
.avin-loyalty { height: 2.45rem; max-height: 2.45rem; }

.hours-panel {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
  padding: 1rem 1.1rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.hours-status {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-weight: 600;
}

.hours-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  flex: none;
}

.hours-panel.is-closed .hours-dot { background: #8a4038; }

.hours-when {
  font-weight: 400;
  color: var(--muted);
}

.hours-when::before {
  content: "·";
  margin-right: 0.45rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.hours-row dt,
.hours-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.hours-row dt { font-weight: 500; }

.hours-block {
  margin-top: 1.75rem;
  max-width: 36rem;
}

.hours-block h2 { margin-bottom: 0.85rem; }
.hours-block p { margin: 0.75rem 0 0; color: var(--muted); }

.avin-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6f3ee;
  padding: 0.7rem 0.9rem;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin: 0 0 0.85rem;
}

.brand-row .avin-card { height: 2.7rem; max-height: 2.7rem; }
.brand-row .avin-loyalty { height: 2.35rem; max-height: 2.35rem; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.logo-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.4rem;
  padding: 0.4rem 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
}

.logo-row img {
  display: block;
  height: 3.35rem;
  width: auto;
  max-width: 9.5rem;
  max-height: 3.35rem;
  object-fit: contain;
}

.mast h1,
.page-title,
.band h2,
.card h3,
.split h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.mast h1,
.page-title {
  margin: 0.3rem 0 0;
  font-size: clamp(2.7rem, 6.2vw, 5.1rem);
  line-height: 0.92;
}

.lead, .muted { color: var(--muted); }

.lead { margin: 0; font-size: 1.05rem; max-width: 36rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.frame-wide { aspect-ratio: 16 / 9; }

.frame-hero {
  aspect-ratio: auto;
  height: clamp(150px, 22vh, 240px);
}

.frame > img,
.map-frame > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.map-frame { margin-top: 1.75rem; }
.map-frame > iframe { border: 0; object-fit: fill; }

.frame-pending {
  display: grid;
  place-content: center;
  gap: 0.3rem;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.slot-file {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--ink);
  word-break: break-all;
}

.slot-shot { font-size: 0.88rem; max-width: 22rem; }

.hero-wrap { padding-bottom: 0.25rem; }

.index {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.index a {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 0.7rem;
  text-decoration: none;
  font-size: 0.82rem;
  border-left: 1px solid var(--line);
}

.index a:first-child { border-left: 0; }
.index a:hover { background: color-mix(in srgb, var(--paper-2) 65%, transparent); }

.section { padding-block: clamp(2.5rem, 6vw, 4.25rem); }

.section h2 {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1rem;
}

.card {
  display: grid;
  gap: 0.8rem;
  text-decoration: none;
}

.card h3 { margin: 0; font-size: 1.45rem; line-height: 1.15; }
.card p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95rem; }
.card-label { display: flex; align-items: center; gap: 0.5rem; }

.band { background: var(--ink); color: var(--white); }
.band-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; color: var(--white); }
.band p { margin: 0.75rem 0 0; color: #d9d1c5; max-width: 40rem; }
.band a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.08rem;
}

.split {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}

.split h2 { margin: 0.45rem 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.08; }
.split p { margin: 0.7rem 0 0; color: var(--muted); max-width: 38rem; }
.split-copy .icon { margin-bottom: 0.15rem; }

.stack { display: grid; gap: 0.75rem; }

.site-footer {
  background: #141311;
  color: #c9c2b6;
  padding: 2.4rem 0 calc(6.2rem + env(safe-area-inset-bottom));
  font-size: 0.92rem;
}
.site-footer .brand-row { margin-bottom: 1rem; }
.site-footer p { margin: 0.3rem 0; }
.site-footer strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.sticky-actions {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-actions .btn { width: 100%; }

@media (min-width: 900px) {
  .cards-pair { grid-template-columns: 1fr 1fr; }
  .mast { grid-template-columns: 1.2fr 0.8fr; column-gap: 2rem; }
  .band-inner { grid-template-columns: auto 1fr; column-gap: 2rem; }
  .split { grid-template-columns: 1.05fr 0.95fr; column-gap: 3rem; }
  .split.reverse .split-copy { order: 2; }
  .sticky-actions { display: none; }
  .site-footer { padding-bottom: 2.4rem; }
}

@media (max-width: 899px) {
  :root { --header: 6.85rem; }
  .index {
    display: flex;
    overflow-x: auto;
  }
  .index a {
    min-width: 7.2rem;
    border-left: 1px solid var(--line);
  }
  .cards { grid-template-columns: 1fr; }
  .bar {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.4rem;
  }
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.1rem;
  }
  .brand { font-size: 1rem; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
