@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --navy: #0b2545;
  --navy-2: #1c3a63;
  --blue: #1f5bd6;
  --blue-dark: #1747a8;
  --ink: #0b2545;
  --muted: #3d4a60;
  --soft: #b9c8e3;
  --line: #d5dde8;
  --wash: #eaf0f8;
  --white: #fff;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --r: 8px;
  --pad: clamp(16px, 5vw, 32px);
  --col: max(var(--pad), calc((100% - 1080px) / 2 + var(--pad)));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font: 600 13px var(--cond); letter-spacing: .06em; text-transform: uppercase; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { font: 700 16px var(--cond); letter-spacing: .04em; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.nav { display: none; gap: 20px; }
.nav a { color: #fff; text-decoration: none; font: 500 15px var(--sans); }
.nav a:hover { color: var(--soft); }
.call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; background: #fff; color: var(--navy); font: 600 15px var(--sans); text-decoration: none; }
.call:hover { background: var(--wash); color: var(--navy); }

/* Hero: full-bleed, board docked */
.hero { position: relative; min-height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.plate { position: relative; align-self: flex-start; margin: 28px var(--pad) 24px 0; background: var(--navy); color: #fff; padding: 14px 18px 16px var(--col); border-radius: 0 6px 6px 0; display: grid; gap: 6px; }
.plate h1 { font-size: clamp(46px, 15vw, 84px); line-height: .95; }
.plate .route { font: 600 19px var(--cond); }
.plate .tag { font-size: 15px; color: #dbe4f3; }

.board { position: relative; background: var(--navy); color: #fff; }
.board-inner { padding: 0 var(--col); }
.board-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px var(--col) 8px; color: var(--soft); }
.dep { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--navy-2); }
.dep:last-child { padding-bottom: 16px; }
.dep-from { display: grid; }
.dep-from b { font: 500 16px var(--sans); }
.dep-in { font-size: 14px; color: var(--soft); }
.dep-time { font: 700 clamp(36px, 12vw, 48px)/1 var(--cond); white-space: nowrap; }
.dep-time small { font-size: .45em; margin-left: 4px; }

/* Sections */
.board-msg { margin: 0; padding: 14px var(--col) 18px; border-top: 1px solid var(--navy-2); font: 600 clamp(22px, 7vw, 30px)/1.2 var(--cond); text-wrap: balance; }
.board-msg.notice { font: 500 16px/1.45 var(--sans); background: var(--blue); padding: 12px var(--col); }
.season { color: var(--blue); }
.season-note { padding: 10px 14px; background: var(--wash); border-radius: 6px; font-weight: 500; }
section.block { padding: 44px 0; border-top: 1px solid var(--line); }
.head { margin-bottom: 20px; display: grid; gap: 6px; }
.head h2 { font-size: clamp(32px, 10vw, 48px); color: var(--navy); }
.lede { font-size: 18px; line-height: 1.6; max-width: 62ch; }

/* Live */
.live { border-top: 1px solid var(--line); padding: 24px 0 0; }
.live-box { max-width: 560px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.live-map svg { display: block; width: 100%; height: auto; }
.live-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; font-size: 15px; }
.live-bar strong { font-weight: 600; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-right: 8px; }
.dot.off { background: #9aa6ba; }

/* Timetable */
.tt { width: 100%; border-collapse: collapse; }
.tt th { text-align: left; padding: 0 12px 10px; color: var(--muted); border-bottom: 2px solid var(--navy); }
.tt td { padding: 0 12px; height: 52px; border-bottom: 1px solid var(--line); font: 600 24px var(--cond); }
.tt td:first-child { border-right: 1px solid var(--line); }
.tt td.past { color: #8b96aa; font-weight: 500; }
.tt td.is-next { background: var(--navy); color: #fff; }

/* Prices */
.fares { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.fare { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fare-name { font: 500 18px var(--sans); }
.fare-detail { display: block; font-size: 15px; color: var(--muted); }
.fare-price { font: 700 clamp(34px, 11vw, 44px)/1 var(--cond); color: var(--blue); }
.notes { margin-top: 18px; display: grid; gap: 6px; font: 600 18px var(--sans); }
.notes span { display: block; }
.notes .fn { font-weight: 400; color: var(--muted); }

/* Wharves */
.wharves { display: grid; gap: 12px; }
.wharf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.wharf h3 { font-size: 26px; color: var(--navy); }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 6px; border: 2px solid var(--navy); color: var(--navy); background: #fff; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--wash); color: var(--navy); }
.btn.solid { background: var(--navy); color: #fff; }
.btn.solid:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* Russell */
.cards { display: grid; gap: 20px; margin-top: 28px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.card h3 { margin-top: 10px; font-size: 24px; color: var(--navy); }

/* Contact over sunset photo */
.sunset { position: relative; min-height: 560px; display: flex; align-items: flex-end; background: var(--navy); overflow: hidden; }
.sunset > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sunset-inner { position: relative; width: 100%; padding-top: 32px; padding-bottom: 24px; display: grid; gap: 10px; }
.sunset-title { justify-self: start; background: var(--navy); color: #fff; font-size: clamp(30px, 9vw, 40px); padding: 10px 14px; border-radius: 6px; }
.contact { display: grid; gap: 10px; }
.contact a { display: grid; gap: 2px; padding: 14px 16px; background: var(--navy); border-radius: var(--r); text-decoration: none; }
.contact a:hover { background: var(--navy-2); }
.contact .k { font-size: 14px; color: var(--soft); }
.contact .v { font: 700 clamp(22px, 7vw, 28px)/1.15 var(--cond); color: #fff; overflow-wrap: anywhere; }

footer { background: var(--navy); color: var(--soft); padding: 28px 0 36px; font-size: 15px; }
footer .wrap { display: grid; gap: 4px; }
.op-login { justify-self: start; margin-top: 14px; padding: 10px 0; font-size: 14px; color: #8fa3c4 !important; text-decoration: none; }
.op-login:hover { color: #fff !important; text-decoration: underline; }
footer strong { font: 700 18px var(--cond); letter-spacing: .04em; color: #fff; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .board-inner { display: grid; grid-template-columns: 1fr 1fr; }
  .board .dep:first-child { padding-right: var(--pad); }
  .board .dep:last-child { border-left: 1px solid var(--navy-2); padding-left: var(--pad); }
  .wharves, .contact { grid-template-columns: 1fr 1fr; }
  .sunset { min-height: 640px; }
  .sunset-inner { padding-bottom: 40px; }
}
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
