/* ==========================================================================
   Seat Tags (BusSeatTags.com) — main stylesheet (mobile-first)
   Built on the Bent Castle layout: same breakpoints, side gutters and fonts.
   No menu button: phones and tablets get around through the footer links.

   Small  : default styles, designed at 360px (everything under 768px)
   Medium : 768px and up
   Large  : 1280px and up
   ========================================================================== */

:root {
  /* Colors */
  --color-bar-bg: #E4DBCF;        /* header and upper footer band: Ben's warm gray, 5% darker */
  --color-line: #C5B197;          /* button outlines, footer bullets, lower footer band: bar gray 20% darker, same hue */
  --color-button-bg: #FFC200;     /* yellow buttons: same yellow as the bus graphic */
  --color-button-quiet: #DEDBD5;  /* the cart's UPDATE button */
  --color-text: #000;
  --color-text-soft: #383838;
  --color-page-bg: #fff;
  --color-gutter: #000;           /* black beside the page in wider windows */
  --color-panel: #EEE9E1;         /* panels on the page: halfway between the old light panel and the header gray (Ben) */

  /* Fonts (same pair as Bent Castle) */
  --font-body: "Yanone Kaffeesatz", "Arial Narrow", sans-serif;   /* text, panel headings, links */
  /* Yanone in two weights only (Ben): light for text, regular for headings and emphasis */
  --weight-light: 300;
  --weight-regular: 400;
  --font-display: "Crushed", "Yanone Kaffeesatz", sans-serif;     /* buttons and page headlines */

  --page-gutter: 20px;
  --radius: 7px;

  /* Yanone Kaffeesatz's capitals sit above the middle of a line-height:1 box; this top padding
     centers them (Ben's setting D). Used where Yanone sits in a box: the cart count and
     the number box. Crushed's capitals are already centered, so buttons don't need it. */
  --cap-nudge: 0.18em;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-gutter); }
body {
  margin: 0; min-width: 320px; min-height: 100vh; position: relative;
  display: flex; flex-direction: column;
  background: var(--color-page-bg); color: var(--color-text);
  font-family: var(--font-body); font-weight: var(--weight-light); font-size: 20px; line-height: 1.3;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; }
p { margin: 0 0 12px; }
strong, b { font-weight: var(--weight-regular); }
/* Numbered lists: the step numbers follow the number rule (regular weight) */
ol li::marker { font-weight: var(--weight-regular); }
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
/* Phone: (empty) | one-line logo, centered | cart. No bus. */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 60px; padding: 0 18px; background: var(--color-bar-bg);
}
.site-header__logo { display: flex; align-items: flex-start; }
.site-header__mark { height: 28px; width: auto; }
/* From 768 up the bus sits beside the logo: the back of the bus is the logo's height and
   level with it, so the wheels hang below. (The bus body is 70.3 of the SVG's 86 units tall.) */
.site-header__bus { display: none; width: auto; }

.site-header__nav { display: none; }   /* desktop only */

.site-header__cart { justify-self: end; display: flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; }
.site-header__cart img { width: 30px; }
.site-header__badge {
  display: grid; place-items: center; min-width: 27px; height: 27px; padding: var(--cap-nudge) 6px 0;
  border-radius: 999px; background: #000; color: #fff;
  font-weight: var(--weight-regular); font-size: 18px; line-height: 1;
}
.site-header__badge[hidden] { display: none; }

/* Ben's color bar: repeats left to right under the header and above the footer */
.color-bar { height: 14px; background: url("../images/color-bar.svg") repeat-x left top / 156px 14px; }
.color-bar--footer { transform: scaleY(-1); }   /* flipped so the squares sit on the footer gray */

/* ---------- Page ---------- */
.site-main { flex: 1 0 auto; padding: 0 var(--page-gutter) 46px; }
.page { max-width: 760px; margin: 0 auto; }
h1, h2, h3 { font-weight: var(--weight-regular); line-height: 1.1; margin: 0; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 40px; margin: 28px 0 14px; }
h2 { font-size: 30px; margin: 28px 0 10px; }
h3 { font-size: 24px; margin: 18px 0 6px; }
.page ul.bullets { padding-left: 1.1em; margin: 0 0 12px; }
.page ul.bullets li { margin-bottom: 6px; }
.lead { font-size: 22px; color: var(--color-text-soft); }
.note { font-size: 17px; color: var(--color-text-soft); }

/* Buttons: Crushed, all caps, 3px warm outline (Ben, Nov 2: tried 4px, too thick) */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 3px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-button-bg); color: #000;
  font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; text-transform: uppercase; text-decoration: none;
}
.button--wide { display: flex; width: 100%; }
.button--quiet { background: var(--color-button-quiet); }
.text-button { text-decoration: underline; font-size: 19px; color: var(--color-text-soft); }

/* Space for Ben's photos, so the layout can be judged. Replace with real images. */
.photo-slot {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px;
  border: 2px dashed #b9b6b0; border-radius: var(--radius); background: var(--color-panel);
  color: #77746e; font-size: 17px; text-align: center;
}

/* Home */
.home-head { text-align: center; padding-top: 6px; }
.home-head h1 { font-size: 38px; margin: 26px 0 8px; }
.home-head p { color: var(--color-text-soft); font-size: 21px; }
.paths { display: grid; gap: 18px; margin-top: 18px; }
.path { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 12px; background: var(--color-panel); }
.path h2 { margin: 0; font-size: 32px; }
.path .button { margin-top: auto; }
/* Sample chart: the whole letter-size page, scaled down in proportion */
.path__chart { width: 100%; height: auto; border: 1px solid #e3e0da; border-radius: 4px; background: #fff; }
.price-line { margin: 0; font-size: 26px; }
.byline { margin: 26px 0 0; text-align: center; color: var(--color-text-soft); font-size: 19px; }

/* Buy page */
.buy-photo { width: 100%; height: auto; border-radius: var(--radius); }
.photo { display: block; width: 100%; max-width: 738px; height: auto; border-radius: var(--radius); }   /* capped at the photo's own width until full-size originals arrive */
.photo--full { max-width: none; }   /* full-size photo: free to fill the panel */
/* Graphics from Ben's brochure and package */
.tag-detail { display: block; width: 100%; max-width: 560px; height: auto; }   /* sits on a panel, like Ben's brochure */
.letter-panel { margin: 14px 0 16px; padding: 18px 20px 14px; border-radius: 12px; background: var(--color-panel); }
.letter-panel img { display: block; width: 100%; max-width: 640px; height: auto; }
.letter-panel figcaption { margin-top: 8px; font-size: 20px; }
/* More details page: text column + graphics column (Ben) */
.details__sheet { display: block; width: 100%; max-width: 260px; height: auto; margin: 16px auto 0; border: 1px solid #e3e0da; border-radius: 4px; }
.details__text-a > h2:first-child, .details__text-b > h2:first-child { margin-top: 18px; }
@media (min-width: 768px) {
  .details {
    display: grid; grid-template-columns: 1fr 300px; column-gap: 36px; align-items: start;
    grid-template-areas: "a tag" "a sheet" "b sheet";
    grid-template-rows: auto auto 1fr;
  }
  .details__tag { grid-area: tag; margin: 0; padding: 12px 14px; }
  .details__text-a { grid-area: a; }
  .details__text-b { grid-area: b; }
  .details__sheet { grid-area: sheet; max-width: none; margin: 16px 0 0; }
  .details__text-a > h2:first-child { margin-top: 0; }
}
@media (min-width: 1280px) { .details { grid-template-columns: 1fr 340px; } }
/* Questions page: "Still have a question?" box (Ben chose a button over a form) */
.ask-panel { margin: 36px 0 0; padding: 24px 20px 20px; border-radius: 12px; background: var(--color-panel); text-align: center; }
.ask-panel h2 { margin: 0 0 6px; }
.ask-panel p { margin: 0 0 16px; }
.ask-panel .note { margin: 12px 0 0; }
.about-photo { max-width: 267px; margin: 0 0 18px; }
.price-list { margin: 0 0 6px; padding: 0; list-style: none; font-size: 24px; line-height: 1.5; }
.over-40 {
  margin: 8px 0 18px; padding: 12px 14px;
  border-left: 6px solid var(--color-button-bg); background: var(--color-panel);
  font-size: 22px; font-weight: var(--weight-regular);
}
.over-40 a { white-space: nowrap; }
.buy-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 6px; }
.buy-form label { font-size: 22px; }
input[type=number] {
  width: 90px; height: 46px; padding: var(--cap-nudge) 10px 0;
  border: 1px solid #b9b6b0; border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 22px; font-weight: var(--weight-regular);
}
.ship-table { width: 100%; margin: 6px 0 12px; border-collapse: collapse; font-size: 19px; }
.ship-table td { padding: 6px 4px; border-bottom: 1px solid #e3e0da; }
.ship-table td:last-child { text-align: right; }

/* Cart */
.cart-box { margin-top: 10px; padding: 20px; border-radius: 12px; background: var(--color-panel); }
.cart-qty { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cart-lines { width: 100%; border-collapse: collapse; font-size: 22px; }
.cart-lines td { padding: 8px 0; }
.cart-lines td:last-child { text-align: right; }
.cart-lines .total td { padding-top: 10px; border-top: 2px solid #000; font-size: 24px; font-weight: var(--weight-regular); }
.cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cart-actions form { margin: 0; }

/* Questions page */
.faq h3 { margin-top: 22px; }

/* ---------- Footer ---------- */
/* Two bands: links on the warm gray, then logo and copyright (centered) in the outline color */
.site-footer { background: var(--color-bar-bg); }
.site-footer__links { padding: 26px 24px 20px; }
.site-footer__links ul { list-style: none; }
.site-footer__links a { text-decoration: none; font-size: 21px; line-height: 1.4; font-weight: var(--weight-regular); }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__end {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 24px 30px; background: var(--color-line);
}
.site-footer__logo { width: 96px; height: auto; }
.site-footer__legal { margin: 0; text-align: center; font-size: 15px; line-height: 19px; }
/* Yanone draws © small and raised: enlarge and lower it to match the digits, and use the lightest weight so its line matches the light text */
.copy-mark { font-size: 1.75em; font-weight: 200; line-height: 0; position: relative; top: 0.36em; }

/* Phone: two links to a line. The left link ends at the center and the right link starts
   after it, so the bullets line up in one column down the middle.
   A link alone on a line is centered, with no bullet. */
@media (max-width: 767.98px) {
  .site-footer__links ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
  .site-footer__links li:nth-child(odd) { justify-self: end; }
  .site-footer__links li:nth-child(even) { justify-self: start; position: relative; }
  .site-footer__links li:nth-child(odd):last-child { grid-column: 1 / -1; justify-self: center; }
  .site-footer__links li:nth-child(even)::before {
    content: ""; position: absolute; left: -22.5px; top: 50%; margin-top: -6.5px;
    width: 11px; height: 11px; border-radius: 50%; background: var(--color-line);
  }
}

/* ---------- Black side gutters between breakpoints (same as Bent Castle) ---------- */
@media (min-width: 410px) and (max-width: 767.98px) {
  body { max-width: calc(205px + 50vw); margin: 0 auto; }
}
@media (min-width: 818px) and (max-width: 1279.98px) {
  body { max-width: calc(409px + 50vw); margin: 0 auto; }
}

/* ==========================================================================
   MEDIUM — 768px and up
   ========================================================================== */
@media (min-width: 768px) {
  /* Header: logo with the bus beside it */
  .site-header { height: 84px; padding: 0 25px; }
  .site-header__logo { gap: 22px; }
  .site-header__mark { height: 40px; }
  .site-header__bus { display: block; height: calc(40px * 86 / 70.3); }
  .site-header__cart img { width: 41px; }
  .site-header__badge { min-width: 38px; height: 38px; font-size: 22px; }

  /* Page */
  .site-main { padding: 0 40px 40px; }
  h1 { font-size: 48px; }
  .home-head h1 { font-size: 46px; margin-top: 36px; }
  .paths { grid-template-columns: 1fr 1fr; gap: 24px; }
  .buy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
  .buy-layout .buy-photo { margin-top: 30px; }
  .cart-actions { flex-direction: row; justify-content: space-between; align-items: center; }

  /* Footer: two centered lines of links with bullets between them */
  .site-footer__links { padding: 18px 40px; }
  .site-footer__links ul { display: flex; justify-content: center; white-space: nowrap; }
  .site-footer__links ul + ul { margin-top: 6px; }
  .site-footer__links li + li::before {
    content: ""; display: inline-block; position: relative; top: -2px; margin: 0 10px;
    width: 11px; height: 11px; border-radius: 50%; background: var(--color-line); vertical-align: middle;
  }
  .site-footer__end { padding: 30px 40px 32px; }
  .site-footer__logo { width: 120px; }
}

/* ==========================================================================
   LARGE — 1280px and up
   ========================================================================== */
@media (min-width: 1280px) {
  /* The page stops at 1280px and stays centered, black on either side */
  body { max-width: 1280px; margin: 0 auto; }

  /* Header: logo and bus left, three buttons, cart right */
  .site-header { display: flex; height: 110px; padding: 0 40px 0 56px; }
  .site-header__logo, .site-header__cart { flex: none; }
  .site-header__logo { gap: 24px; }
  .site-header__mark { height: 42px; }
  .site-header__bus { height: calc(42px * 86 / 70.3); }
  .site-header__nav { display: flex; gap: 10px; margin-left: auto; margin-right: 24px; padding-left: 20px; }
  .site-header__nav a {
    display: flex; align-items: center; justify-content: center;
    min-height: 41px; padding: 0 14px;
    border: 3px solid var(--color-line); border-radius: var(--radius);
    background: #000; color: #fff;
    font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  }
  .site-header__nav a.is-primary { background: var(--color-button-bg); color: #000; }

  /* Page */
  .site-main { padding-bottom: 94px; }
  .page { max-width: 900px; }
  .page--home { max-width: 1040px; }
  .home-head h1 { font-size: 54px; margin-top: 50px; }
  .paths { gap: 40px; margin-top: 30px; }
  .path { padding: 28px; }

  /* Footer */
  .site-footer__links { padding: 20px 70px; }
  .site-footer__links li + li::before { margin: 0 18px; }
}

