@import url('fonts.css?v=1');

/* ---------------------------------------------------------------
   The Excelsior Pub — shared site styles
   Tokens extracted from the live Colibri build so the rebuild reads
   as the same brand.
   --------------------------------------------------------------- */

:root {
  --bg-maroon:  #330000;
  --fg:         #ffffff;
  --fg-dim:     rgba(255, 255, 255, 0.62);
  --accent:     #f79007;
  --footer-bg:  #000000;
  --rule:       rgba(255, 255, 255, 0.14);
  --row-alt:    rgba(232, 232, 217, 0.05);
  --happy-hour: rgba(232, 232, 217, 0.18);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --measure: 1180px;
}

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

body {
  margin: 0;
  background-color: var(--bg-maroon);
  background-image: url('../img/wood-texture.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The texture is a 1.1MB photo. On narrow/low-power devices the fixed
   attachment causes repaint jank, so drop to the flat maroon. */
@media (max-width: 700px) {
  body { background-image: none; background-attachment: scroll; }
}

a { color: var(--accent); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header ---------------------------------------------------- */

.site-header {
  padding: 38px 24px 8px;
  text-align: center;
}

.site-header img {
  width: 400px;
  max-width: 80%;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 30px;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  border-bottom-color: var(--accent);
}

/* --- Hero ------------------------------------------------------ */

.hero {
  text-align: center;
  padding: 46px 24px 30px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 4.05rem);
  line-height: 1.12;
  margin: 0 auto;
  max-width: 15ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero p {
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--fg-dim);
}

/* --- Sections -------------------------------------------------- */

.section { padding: 40px 0 56px; }

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  text-align: center;
  margin: 0 0 30px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* The "Drafts" wordmark ships as artwork, so the heading is the image
   itself — alt text carries the semantics. */
.section-title-img {
  margin-bottom: 18px;
  line-height: 0;
}

.section-title-img img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin: 0 auto;
}

/* --- Beverage table -------------------------------------------- */

.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.board caption {
  caption-side: bottom;
  padding-top: 14px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.board th {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  white-space: nowrap;
}

.board th:first-child { width: 2.4em; }
.board th.col-name    { text-align: left; }

.board td {
  padding: 13px 10px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board td.col-name { text-align: left; }
.board tbody tr:nth-child(even) { background: var(--row-alt); }
.board tr.is-happy-hour { background: var(--happy-hour); font-weight: 700; }

.board .num { font-variant-numeric: tabular-nums; }

.exclusive-mark {
  color: var(--accent);
  font-weight: 700;
}

.legend {
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin: 8px 0 0;
}

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

/* Descriptions are dense body copy and the wood grain is busy — a scrim
   buys the contrast back without losing the texture behind it. */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px 50px;
  background: rgba(20, 4, 4, 0.72);
  padding: 12px 34px 34px;
  border-radius: 4px;
}

.menu-category h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.menu-item { padding: 12px 0; }

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-weight: 600;
}

.menu-item-head .price {
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-item-head .price-note {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.menu-item p {
  margin: 5px 0 0;
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

.menu-region {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 30px 0 0;
  background: rgba(0, 0, 0, 0.28);
}

.callout h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.callout p { margin: 0; color: var(--fg-dim); font-size: 0.92rem; }

/* --- Status / staleness ----------------------------------------- */

.status-line {
  text-align: right;
  font-size: 0.78rem;
  color: var(--fg-dim);
  margin: 10px 0 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-dummy { background: var(--accent); color: #241100; }
.badge-stale { background: #b3261e; color: #fff; }

.error-note {
  border: 1px solid #b3261e;
  background: rgba(179, 38, 30, 0.16);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
}

/* --- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--footer-bg);
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(180px, 0.75fr);
  align-items: center;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer > div { padding: 42px 18px; }
.site-footer a { color: var(--fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-social {
  background: var(--accent);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-social a {
  color: #241100;
  font-size: 0;           /* hide the accessible label visually */
  line-height: 0;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

@media (max-width: 860px) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div { padding: 26px 18px; }
  .footer-social { padding: 24px 18px; }
}

/* --- Staging banner ---------------------------------------------- */

.staging-banner {
  background: var(--accent);
  color: #241100;
  text-align: center;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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