:root {
  --ground: #EEF1F4;
  --ink: #0F1B2D;
  --body: #3E4A5A;
  --muted: #5F6B7A;
  --rule: #D5DBE2;
  --field: #C3CAD3;
  --accent: #2B4C7E;
  --accent-deep: #1D3F6E;
  --card: #FFFFFF;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --pad: clamp(20px, 6.6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 24px var(--pad);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 16px; font-weight: 500; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Page body */
main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(56px, 9vw, 128px) var(--pad) clamp(56px, 7vw, 96px); }
.nav, .footer { width: 100%; max-width: 1400px; margin: 0 auto; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 1000px;
}
.lede {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--body);
}

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; margin-top: 48px; }
.cta-note { margin: 0; max-width: 520px; font-size: 16px; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  background: var(--accent);
  color: #FFFFFF;
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.button:hover { background: var(--accent-deep); }

/* Deals: two columns */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: start; }
.split h1 { font-size: clamp(38px, 4.5vw, 64px); }
.note {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.08);
  padding: 40px;
}
.note h2 { margin: 0 0 18px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; }
.note p { margin: 0 0 14px; color: var(--body); line-height: 1.6; }
.note small { display: block; margin-top: 22px; font-size: 12px; color: var(--muted); }

/* Home */
.home h1 { font-size: clamp(38px, 4.8vw, 68px); }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.route {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.route:hover { border-color: var(--accent); }
.route .eyebrow { margin: 0; font-size: 13px; }
.route-title { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 32px); font-weight: 500; line-height: 1.15; }
.route-text { color: var(--muted); }
.route-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(48px, 6vw, 96px); align-items: start; }
.about p { margin: 24px 0 0; font-size: 19px; line-height: 1.6; color: var(--body); }
.about h1 { font-size: clamp(44px, 4.5vw, 64px); }
.about-links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 40px; font-weight: 600; }
.about-links a { color: var(--accent); text-decoration: none; }
.about-links a:hover { text-decoration: underline; }
.portrait { width: 400px; height: 480px; object-fit: cover; object-position: 50% 20%; border-radius: 8px; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 32px var(--pad) 48px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .crosslink a { font-weight: 600; color: var(--accent); margin-left: 8px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }

/* Form dialog */
dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 44px 44px 40px;
  border: none;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
dialog::backdrop { background: rgba(15, 27, 45, 0.45); }
dialog h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 32px; font-weight: 500; }
dialog p { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  border: none; background: transparent; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 4px;
  font: 16px var(--sans);
  color: var(--ink);
  background: #FFFFFF;
}
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.18); }
dialog .button { width: 100%; margin-top: 4px; }
.hidden-field { position: absolute; left: -9999px; }
.form-error { margin: 12px 0 0; font-size: 14px; color: #9B2C2C; }
[hidden] { display: none !important; }

/* Tablet and phone */
@media (max-width: 1100px) {
  .split, .about { grid-template-columns: 1fr; gap: 48px; }
  .note { max-width: 560px; }
  .portrait { width: min(320px, 100%); height: auto; aspect-ratio: 5 / 6; order: -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .routes { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .route, .note { padding: 28px; }
  .cta-row { margin-top: 36px; }
  .button { width: 100%; }
  .about p { font-size: 17px; }
  .contact { margin-left: 0; }
  dialog { padding: 40px 24px 28px; }
}

/* Home intro block */
.home .eyebrow { margin-bottom: 20px; }
.intro {
  display: block;
  max-width: 720px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}
.intro p { margin: 0 0 12px; color: var(--body); }
.intro-more a { font-weight: 600; color: var(--accent); text-decoration: none; }
.intro-more a:hover { text-decoration: underline; }

