/*
 * Airline Retiree's Pass Bureau
 *
 * The look borrows from the paper side of flying: the red-and-blue edge of an
 * airmail envelope, the sturdy slab lettering of a timetable cover, fares set
 * out with dot leaders. Type is large and contrast is high throughout, for
 * readers who would rather not squint.
 */

@font-face {
  font-family: 'Besley';
  src: url('../fonts/Besley.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/AtkinsonHyperlegibleNext-Italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #14294a;        /* tail-fin navy: text, headings, primary buttons */
  --blue: #1d56a0;       /* airmail blue: links */
  --red: #b4342b;        /* airmail red: the stripe, errors */
  --sun: #f3b33d;        /* marigold: the one warm accent */
  --sun-soft: #fff3d4;
  --paper: #f1f5f9;      /* page background, a cool letter-paper white */
  --white: #fff;
  --line: #c5d0dd;
  --field: #56677f;      /* form field borders, 3:1 or better on white */
  --muted: #44556e;

  --display: 'Besley', 'Rockwell', 'Georgia', serif;
  --body: 'Atkinson Hyperlegible Next', 'Verdana', 'Segoe UI', sans-serif;

  --stripe: repeating-linear-gradient(-45deg,
    var(--red) 0 14px, var(--white) 14px 28px, var(--blue) 28px 42px, var(--white) 42px 56px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.500rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
}

[hidden] { display: none !important; }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.600em; text-wrap: balance; }
h1 { font-size: clamp(2.100rem, 1.400rem + 3.400vw, 3.400rem); font-weight: 700; letter-spacing: -0.010em; }
h2 { font-size: clamp(1.600rem, 1.300rem + 1.300vw, 2.100rem); font-weight: 650; }
h3 { font-size: 1.250rem; font-weight: 650; }

p, ul, ol, dl, table, pre { margin: 0 0 1.100em; }

a { color: var(--blue); text-decoration-thickness: 0.080em; text-underline-offset: 0.180em; }
a:hover { color: var(--ink); text-decoration-thickness: 0.160em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: 0.800rem 1.200rem; border-radius: 6px;
}
.skip:focus { top: 1rem; color: var(--white); }

.wrap { width: min(100% - 2.500rem, 72rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.500rem, 48rem); }

.lede { font-size: 1.350rem; line-height: 1.5; max-width: 40ch; }
.narrow .lede { max-width: none; }
.small-h { font-size: 1.250rem; }
.optional { font-weight: 400; color: var(--muted); }

/* ---------- header ---------- */

.airmail { height: 10px; background: var(--stripe); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.750rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.mark { width: 3.250rem; height: 3.250rem; flex: none; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 1.300rem; line-height: 1.1; }
.logo-line { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.250rem; }
.site-nav a {
  display: block; padding: 0.650rem 0.850rem; min-height: 3rem;
  font-weight: 600; font-size: 1.100rem; text-decoration: none; color: var(--ink); border-radius: 6px;
}
.nav-link { box-shadow: inset 0 -4px 0 transparent; }
.nav-link:hover { box-shadow: inset 0 -4px 0 var(--line); }
.nav-link[aria-current] { box-shadow: inset 0 -4px 0 var(--sun); border-radius: 6px 6px 0 0; }
.site-nav .nav-cta { background: var(--sun); margin-left: 0.500rem; padding-inline: 1.200rem; }
.site-nav .nav-cta:hover { background: var(--ink); color: var(--white); }
.site-nav .nav-cta[aria-current] { background: var(--ink); color: var(--white); }

/* ---------- bands ---------- */

.band { padding-block: clamp(2.500rem, 6vw, 4.500rem); }
.band-tight { padding-block: clamp(1.500rem, 3vw, 2.250rem); }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-navy { background: var(--ink); color: var(--white); }
.band-navy a { color: var(--white); }
.band-navy a:hover { color: var(--sun); }
.band-navy :focus-visible { outline-color: var(--sun); }

.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid, .page-head {
  display: grid; grid-template-columns: minmax(0, 1.050fr) minmax(0, 0.950fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* The roll of airlines: the names are the welcome. */
.roll {
  list-style: none; padding: 0; margin: 1.500rem 0 0;
  columns: 3; column-gap: 1.500rem;
  font-family: var(--display); font-weight: 600; font-size: 1.400rem; line-height: 1.25;
}
.roll li { break-inside: avoid; padding: 0.300rem 0 0.300rem 1.100rem; position: relative; }
.roll li::before {
  content: ''; position: absolute; left: 0; top: 0.780em;
  width: 0.550rem; height: 0.550rem; border-radius: 50%; background: var(--sun);
}

/* Photographs sit on the page like prints, with a handwritten-size caption. */
.print { margin: 0; background: var(--white); padding: 0.750rem 0.750rem 0.250rem; border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(20, 41, 74, 0.550); }
.print figcaption { font-size: 1rem; color: var(--muted); padding: 0.600rem 0.250rem; font-style: italic; }
.print.tilt { transform: rotate(1.400deg); }
.print.tilt-left { transform: rotate(-1.200deg); max-width: 26rem; margin-top: 2.500rem; }

/* Three ways in. */
.ways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways li { padding: 0.500rem 2rem; border-left: 4px solid var(--sun); }
.ways a { font-family: var(--display); font-weight: 650; font-size: 1.350rem; line-height: 1.25; }
.ways p { margin: 0.400rem 0 0; color: var(--muted); }

/* Office hours. */
.hours-grid { display: grid; grid-template-columns: minmax(0, 0.850fr) minmax(0, 1.150fr); gap: clamp(2rem, 5vw, 4rem); }
.hours-big { font-family: var(--display); font-size: clamp(1.500rem, 1.200rem + 1.400vw, 2.100rem); font-weight: 600; line-height: 1.25; }
.holidays { width: 100%; border-collapse: collapse; font-size: 1.100rem; }
.holidays th, .holidays td { text-align: left; padding: 0.550rem 1rem 0.550rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.280); vertical-align: top; }
.holidays th { font-weight: 700; white-space: nowrap; color: var(--sun); }

/* A sheet of paper: the registration instructions. */
.sheet { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--ink); padding: clamp(1.500rem, 3vw, 2.250rem); }
.fee { font-weight: 700; }

.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.400rem; }
.prose li { margin-bottom: 0.350em; }
.prose li::marker { color: var(--blue); font-weight: 700; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.250rem; padding: 0.700rem 1.500rem;
  font: 700 1.150rem/1.2 var(--body); text-decoration: none; text-align: center;
  color: var(--white); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px; cursor: pointer;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.link-btn { font: inherit; color: var(--blue); background: none; border: 0; padding: 0.500rem 0; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------- notices ---------- */

.note-box, .notice {
  background: var(--sun-soft); border-left: 6px solid var(--sun);
  padding: 1.100rem 1.400rem; border-radius: 0 6px 6px 0;
}
.notice h2 { font-size: 1.400rem; }
.notice { margin-block: 1.500rem; }

/* ---------- participating airlines ---------- */

.jump { list-style: none; padding: 0; margin: 0; columns: 4; column-gap: 2rem; }
.jump li { break-inside: avoid; }
.jump a { display: inline-block; padding: 0.350rem 0; }

.airline {
  display: grid; grid-template-columns: minmax(0, 0.800fr) minmax(0, 1.200fr); gap: 1rem 3rem;
  padding-block: 2.250rem; border-bottom: 1px solid var(--line);
}
.airline:first-child { padding-top: 0; }
.airline:last-child { border-bottom: 0; padding-bottom: 0; }
.airline-head h2 { margin-bottom: 0.300em; }
.airline-note { color: var(--muted); font-style: italic; margin: 0; }
.airline-body h3 {
  font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--muted);
  margin: 0 0 0.200rem;
}
.airline-body h3:not(:first-child) { margin-top: 1.200rem; }
.airline-body p { margin-bottom: 0.600em; }
.airline-links { display: flex; flex-wrap: wrap; gap: 0.400rem 2rem; margin: 1.200rem 0 0; font-weight: 700; }

/* Fares, set out like a timetable: place, a run of dots, the price. */
.fares { margin: 0 0 0.800rem; }
.fares > div { display: flex; align-items: baseline; gap: 0.600rem; padding: 0.200rem 0; }
.fares dt { display: flex; flex: 1; align-items: baseline; gap: 0.600rem; }
.fares dt::after { content: ''; flex: 1; min-width: 1.500rem; border-bottom: 2px dotted var(--field); transform: translateY(-0.250em); }
.fares dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.300rem; }

.notes { margin: 0; }
.notes > div { padding: 1.100rem 0; border-top: 1px solid var(--line); }
.notes dt { font-family: var(--display); font-weight: 650; font-size: 1.250rem; margin-bottom: 0.300rem; }
.notes dd { margin: 0; }

/* ---------- what's new ---------- */

.news { list-style: none; padding: 0; margin: 2.500rem 0 0; }
.news > li { display: grid; grid-template-columns: 9.500rem minmax(0, 1fr); gap: 0.250rem 2rem; padding: 1.750rem 0; border-top: 1px solid var(--line); }
.news-date { font-weight: 700; color: var(--muted); margin: 0.250rem 0 0; }
.news h2 { font-size: 1.500rem; }

/* ---------- general info ---------- */

.contact { margin: 1.500rem 0; }
.contact > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.250rem 1.500rem; padding: 0.800rem 0; border-top: 1px solid var(--line); }
.contact dt { font-weight: 700; color: var(--muted); }
.contact dd { margin: 0; font-size: 1.250rem; font-weight: 600; overflow-wrap: anywhere; }

.partners { list-style: none; padding: 0; margin: 0; }
.partners li { padding: 0.800rem 0; border-top: 1px solid var(--line); }
.partners a { font-weight: 700; display: block; }
.partners span { color: var(--muted); }

/* The letter: an email shown as the airmail it replaces. */
.letter { background: var(--white); border: 12px solid; border-image: var(--stripe) 12; padding: clamp(1rem, 3vw, 1.750rem); }
.letter-line { margin: 0 0 0.400rem; overflow-wrap: anywhere; }
.letter-line span { display: inline-block; min-width: 4.800rem; color: var(--muted); }
.letter pre {
  margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line);
  font: 1.050rem/1.550 var(--body); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- the request form ---------- */

.step { border: 0; padding: 0; margin: 0 0 2.750rem; min-width: 0; }
.step > legend, .send > h2 {
  font-family: var(--display); font-weight: 650; font-size: 1.650rem; line-height: 1.2;
  padding: 0; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.800rem;
}
.step-n {
  flex: none; display: inline-grid; place-items: center; width: 2.400rem; height: 2.400rem;
  background: var(--ink); color: var(--white); border-radius: 50%;
  font-family: var(--body); font-weight: 700; font-size: 1.150rem;
}

.field { margin-bottom: 1.250rem; }
.field > label, .dob > legend { display: block; font-weight: 700; margin-bottom: 0.300rem; padding: 0; }
.hint { color: var(--muted); font-size: 1.050rem; margin: 0 0 0.450rem; }
.direct-note { color: var(--red); font-weight: 600; margin-top: 0.450rem; }

input[type='text'], input[type='email'], input[type='tel'], input[type='date'], select, textarea {
  width: 100%; min-height: 3.250rem; padding: 0.650rem 0.850rem;
  font: 1.150rem/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 2px solid var(--field); border-radius: 6px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--ink); }
input::placeholder { color: #6b7a90; }
[aria-invalid='true'] { border-color: var(--red); background: #fdf1f0; }

.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.250rem; align-items: end; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dob { border: 0; padding: 0; margin: 0; min-width: 0; }
.dob .field > label { font-weight: 400; color: var(--muted); font-size: 1.050rem; }

.choice { display: grid; gap: 0.750rem; }
.choice label { display: flex; gap: 0.900rem; align-items: flex-start; padding: 1rem 1.200rem; border: 2px solid var(--field); border-radius: 8px; cursor: pointer; background: var(--white); }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 6px 0 0 var(--sun); }
.choice input { width: 1.500rem; height: 1.500rem; margin: 0.150rem 0 0; flex: none; accent-color: var(--ink); }
.choice strong { display: block; }

.group { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.250rem 1.400rem 0.400rem; margin-bottom: 1.250rem; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.group-head h3 { margin-bottom: 0.800rem; }
.group > .hint { margin-bottom: 1.250rem; }
.prose + p { margin-top: 1.500rem; }

.send { margin-bottom: 0; }
.send h3 { margin-top: 2rem; margin-bottom: 0.300rem; }
.send-buttons { display: flex; flex-wrap: wrap; gap: 0.750rem; margin-bottom: 1.250rem; }

.errors { border: 3px solid var(--red); background: #fdf1f0; padding: 1.100rem 1.400rem; border-radius: 6px; margin-block: 1.500rem; }
.errors p { font-weight: 700; margin-bottom: 0.400rem; }
.errors ul { margin: 0; padding-left: 1.300rem; }
.errors a { color: var(--red); font-weight: 600; }

.sent { background: #e9f3ea; border-left: 6px solid #2e7140; padding: 1rem 1.300rem; border-radius: 0 6px 6px 0; }
.sent strong { display: block; }

.manual { border-top: 1px solid var(--line); padding-top: 1.250rem; margin-top: 1.500rem; }
.manual summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 0.500rem 0; }
.manual ol { margin-top: 1rem; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--white); border-top: 10px solid; border-image: var(--stripe) 10; padding-block: 3rem 2rem; --mark-fin: #fff; --mark-gap: var(--ink); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer :focus-visible { outline-color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.300fr 1fr 1fr; gap: 2rem 3rem; }
.site-footer h2 { font-family: var(--body); font-size: 1.050rem; font-weight: 700; color: var(--sun); margin-bottom: 0.400rem; }
.footer-name { display: flex; align-items: center; gap: 0.700rem; font-family: var(--display); font-weight: 700; font-size: 1.300rem; line-height: 1.2; }
.footer-name .mark { width: 2.600rem; height: 2.600rem; }
.footer-small { display: flex; flex-wrap: wrap; gap: 0.500rem 2rem; margin-top: 2rem; padding-top: 1.250rem; border-top: 1px solid rgba(255, 255, 255, 0.250); font-size: 1.050rem; }

/* ---------- brand guide ---------- */

.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.250rem; }
.swatches li { background: var(--white); border: 1px solid var(--line); }
.swatch { height: 6.500rem; }
.swatches p { margin: 0; padding: 0.700rem 0.900rem; font-size: 1.050rem; }
.swatches b { display: block; }
.logo-show { display: flex; flex-wrap: wrap; gap: 1.500rem; }
.logo-show > div { padding: 2rem 2.500rem; border: 1px solid var(--line); background: var(--white); }
.logo-show .on-navy { background: var(--ink); color: var(--white); --mark-fin: #fff; --mark-gap: var(--ink); }
.logo-show .logo { color: inherit; }
.specimen-display { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.600rem); line-height: 1.1; margin-bottom: 0.300em; }

/* ---------- smaller screens ---------- */

@media (max-width: 62rem) {
  .hero-grid, .page-head, .two-col, .hours-grid { grid-template-columns: minmax(0, 1fr); }
  .print.tilt, .print.tilt-left { transform: none; max-width: 34rem; }
  .ways { grid-template-columns: minmax(0, 1fr); gap: 1.250rem; }
  .jump { columns: 2; }
  .airline { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  /* Every destination stays visible: no menu hidden behind an icon. */
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.500rem; }
  .site-nav a { border: 2px solid var(--line); text-align: center; display: grid; place-items: center; height: 100%; }
  .nav-link, .nav-link:hover { box-shadow: none; }
  .nav-link[aria-current] { box-shadow: none; border-color: var(--ink); border-radius: 6px; background: var(--paper); }
  .site-nav .nav-cta { margin-left: 0; border-color: var(--sun); }
  .site-nav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  body { font-size: 1.125rem; }
  .roll { columns: 2; font-size: 1.250rem; }
  .row, .row-3 { grid-template-columns: minmax(0, 1fr); }
  .dob .row-3 { grid-template-columns: 1.600fr 1fr 1.200fr; }
  .news > li, .contact > div { grid-template-columns: minmax(0, 1fr); }
  .holidays th { white-space: normal; }
  .send-buttons .btn { width: 100%; }
  .letter { border-width: 8px; }
  .group { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-nav, .airmail, .skip, .btn, .footer-small { display: none; }
  body { background: #fff; font-size: 12pt; }
  .band-navy { background: #fff; color: #000; }
}

/* The one button the whole form leads to. */
.send-main { margin: 2rem 0 0.600rem; }
.btn-big { font-size: 1.350rem; min-height: 4rem; padding-inline: 2.250rem; background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-big:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 40rem) { .btn-big { width: 100%; } }
