/* Transport Merch landing page. Colours and type come from tokens.css (brand pack). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--tm-page);
  color: var(--tm-ink);
  font-family: var(--tm-font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--tm-font-heading); line-height: 1.12; margin: 0; color: var(--tm-navy); }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 3px solid var(--tm-yellow); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--tm-yellow); color: var(--tm-navy); font-weight: 800;
  padding: 10px 16px; border-radius: var(--tm-radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap, .masthead__inner, .hero__inner, .section, .cta-band__inner, .footer__inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tm-yellow); color: var(--tm-navy);
  font-family: var(--tm-font-heading); font-weight: 700; font-size: 17px; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--tm-yellow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(11, 42, 69, .25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--small { padding: 9px 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--tm-white); border-color: rgba(248, 250, 252, .55); }
.btn--ghost:hover { border-color: var(--tm-white); box-shadow: none; }
.btn--navy { background: var(--tm-navy); color: var(--tm-white); border-color: var(--tm-navy); }
.btn--navy:focus-visible { outline-color: var(--tm-navy); }

/* Brand lock-up: the designer's vector logos for dark backgrounds.
   Header without the tagline, footer with it. */
.brand { display: inline-flex; text-decoration: none; }
.brand__logo { width: 230px; height: auto; }
.brand--footer { width: min(360px, 100%); }
.brand--footer .brand__logo { width: 100%; }

/* Masthead */
.masthead { background: var(--tm-navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.masthead__inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.masthead__nav { display: flex; gap: 26px; margin-left: auto; }
.masthead__nav a { color: var(--tm-white); font-weight: 800; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.masthead__nav a:hover { border-bottom-color: var(--tm-yellow); }

/* Platform sign: section eyebrow, after the brand's station signage */
.platform-sign {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-family: var(--tm-font-heading); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tm-white); margin-bottom: 18px;
}
.platform-sign span {
  border: 2px solid currentColor; border-radius: 6px; padding: 3px 10px; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--tm-navy), inset 0 0 0 3px currentColor;
}
.platform-sign--light { color: var(--tm-navy); }
.platform-sign--light span { background: var(--tm-navy); color: var(--tm-white); border-color: var(--tm-navy); box-shadow: inset 0 0 0 2px var(--tm-navy), inset 0 0 0 3px var(--tm-white); }

/* Hero */
.hero { background: var(--tm-navy); color: var(--tm-white); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 40%, rgba(255, 196, 0, .16), transparent 45%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 96px;
}
.hero h1 { color: var(--tm-white); font-size: clamp(44px, 6vw, 80px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero h1 span { color: var(--tm-yellow); display: block; }
.hero__lede { font-size: clamp(18px, 1.8vw, 21px); max-width: 560px; color: rgba(248, 250, 252, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__art { display: grid; justify-items: center; gap: 22px; }
.hero__plate {
  width: min(100%, 360px); aspect-ratio: 1; background: var(--tm-yellow); border-radius: 36px;
  transform: rotate(4deg); display: grid; place-items: center;
  box-shadow: 14px 14px 0 rgba(255, 255, 255, .08);
}
.hero__train { width: 80%; height: auto; transform: rotate(-4deg); }
.hero__tag { font-family: var(--tm-font-heading); font-weight: 700; font-style: italic; font-size: 19px; color: var(--tm-yellow); text-align: center; max-width: 320px; transform: rotate(-3deg); }

/* Railway sleepers along the bottom of the hero */
.sleepers {
  position: absolute; left: 0; right: 0; bottom: 18px; height: 26px;
  background:
    linear-gradient(var(--tm-white), var(--tm-white)) 0 4px / 100% 3px no-repeat,
    linear-gradient(var(--tm-white), var(--tm-white)) 0 19px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(248, 250, 252, .45) 0 8px, transparent 8px 30px);
  opacity: .5;
}

/* Sections */
.section { padding-top: 88px; padding-bottom: 40px; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__intro { margin-top: 14px; color: var(--tm-grey); font-size: 18px; }
.section__intro a { color: var(--tm-navy); font-weight: 800; }
.section__more { margin-top: 36px; }

/* Products */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { background: var(--tm-white); border: 1px solid var(--tm-border); border-radius: var(--tm-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 42, 69, .12); }
.product__art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--art-bg, var(--tm-navy)); }
.product__art svg { width: 62%; height: 78%; }
.product__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__type { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tm-green); }
.product h3 a { text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; }
.product h3 a:focus-visible { outline: none; }
.product:has(a:focus-visible) { outline: 3px solid var(--tm-yellow); outline-offset: 3px; }
.product__blurb { color: var(--tm-grey); font-size: 16px; }
.product__price { margin-top: auto; padding-top: 10px; font-family: var(--tm-font-heading); font-weight: 700; color: var(--tm-navy); }
.product__price--soon { color: var(--tm-grey); font-weight: 600; }

/* Station line divider: the brand's line-with-stops element */
.station-line { max-width: 1152px; margin: 56px auto 0; height: 18px; position: relative; display: flex; justify-content: space-between; padding: 0 24px; }
.station-line::before { content: ""; position: absolute; left: 24px; right: 24px; top: 7px; height: 4px; background: var(--tm-yellow); border-radius: 2px; }
.station-line span { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--tm-page); border: 4px solid var(--tm-yellow); }

/* Perks */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.perk { background: var(--tm-white); border: 1px solid var(--tm-border); border-radius: var(--tm-radius-md); padding: 26px 22px; }
.perk__icon { width: 46px; height: 46px; color: var(--tm-navy); margin-bottom: 16px; padding: 8px; background: var(--tm-yellow); border-radius: 12px; box-sizing: content-box; }
.perk h3 { margin-bottom: 8px; }
.perk p { color: var(--tm-grey); font-size: 16px; }

/* Story */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding-bottom: 96px; }
.story__copy p:not(.platform-sign) { margin-top: 16px; font-size: 18px; }
.story__copy h2 { margin-bottom: 8px; }
.story__art { background: var(--tm-navy); border-radius: var(--tm-radius-lg); padding: 40px 32px; display: grid; justify-items: center; gap: 24px; }
.story__train { width: 220px; height: auto; }
.story__ticket {
  background: var(--tm-yellow); color: var(--tm-navy); border-radius: 10px; padding: 14px 22px; transform: rotate(-3deg);
  display: grid; gap: 2px; text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border: 2px dashed rgba(11, 42, 69, .4); outline: 6px solid var(--tm-yellow);
}
.story__ticket strong { font-family: var(--tm-font-heading); font-size: 19px; letter-spacing: 0; text-transform: none; }

/* Closing call to action */
.cta-band { background: var(--tm-yellow); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }

/* Footer */
.footer { background: var(--tm-navy); color: var(--tm-white); }
.stripes { height: 14px; background: repeating-linear-gradient(-45deg, var(--tm-yellow) 0 22px, var(--tm-red) 22px 44px, var(--tm-navy) 44px 66px); }
.footer__inner { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 44px; padding-bottom: 40px; }
.footer a { font-weight: 800; }
.footer__small { font-size: 14px; color: rgba(248, 250, 252, .7); max-width: 520px; }

/* Responsive */
@media (max-width: 980px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .masthead__nav { display: none; }
  .masthead__inner .btn { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 84px; gap: 40px; }
  .hero__plate { width: min(70vw, 280px); }
  .story { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .wrap, .masthead__inner, .hero__inner, .section, .cta-band__inner, .footer__inner { padding-left: 16px; padding-right: 16px; }
  .brand__logo { width: 170px; }
  .products, .perks { grid-template-columns: 1fr; }
  .product__art { aspect-ratio: 16 / 9; }
  .section { padding-top: 64px; }
  .station-line { padding: 0 16px; }
  .station-line::before { left: 16px; right: 16px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}
