/* Airfare Service — editorial travel site. Warm paper, ink navy, one amber accent. */
:root {
  --paper: #f7f3ec;
  --paper-2: #efe9df;
  --ink: #0f1b2d;
  --ink-2: #33415a;
  --muted: #6b7486;
  --line: #ddd6ca;
  --accent: #e0962a;
  --accent-ink: #8a5410;
  --sky: #2a6fb0;
  --ok: #2c7a4b;
  --warn: #b5541c;
  --card: #fffdf9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px -12px rgba(15,27,45,.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 100; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,243,236,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand em, .brand-foot em { font-style: italic; color: var(--accent-ink); font-weight: 500; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 11px; border-radius: 999px; }
.nav a:hover, .nav a.active { background: var(--paper-2); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 38px; padding: 8px 9px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 14px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
}

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 32px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-bottom: 1.4em; }
.hero-panel { background: var(--ink); color: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.hero-panel h2 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.hero-panel p { color: #c6cedd; font-size: .95rem; }
.hero-panel label { color: #e9edf3; }
.hero-panel input { background: #16243a; border-color: #2a3a55; color: #fff; }
.hero-panel .btn { width: 100%; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 24px; } }

/* sections, grids, cards */
.section { padding: 32px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px; }
.section-title a { font-family: var(--sans); font-size: .9rem; font-weight: 500; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-link { display: block; padding: 20px; color: inherit; text-decoration: none; height: 100%; }
.card-link h3 { margin: 6px 0 8px; }
.card-link p { color: var(--ink-2); font-size: .97rem; margin-bottom: 10px; }
.card-link .meta { font-size: .82rem; color: var(--muted); }
.card-link:hover h3 { color: var(--accent-ink); }
.tool-card .glyph { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; color: var(--accent-ink); margin-bottom: 10px; }
.tool-card .glyph svg { width: 22px; height: 22px; }

/* forms */
.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--ink-2); }
input, select { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: #1b2b45; color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: #f0a53a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.ac-list button { display: flex; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font: inherit; cursor: pointer; }
.ac-list button:hover, .ac-list button[aria-selected="true"] { background: var(--paper-2); }
.ac-list .code { font-weight: 700; color: var(--accent-ink); min-width: 42px; }
.ac-list .name { color: var(--ink-2); font-size: .92rem; }

/* results & notices */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.notice { border-left: 4px solid var(--accent); background: #fbf3e4; padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: .95rem; }
.notice.error { border-color: var(--warn); background: #fbeae1; }
.notice.ok { border-color: var(--ok); background: #e8f3ec; }
.notice code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 5px; }
.status-pill { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.status-pill.ok { background: #dcefe3; color: var(--ok); }
.status-pill.warn { background: #f8e2d4; color: var(--warn); }
.status-pill.bad { background: #f6d9d9; color: #9b2222; }
.flight-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.flight-row:first-of-type { border-top: 0; }
.flight-row .code { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.flight-row .city { color: var(--muted); font-size: .9rem; }
.flight-row .time { font-weight: 600; margin-top: 6px; }
.flight-row .arrow { color: var(--accent-ink); }
.flight-row .right { text-align: right; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 14px; }
.kv div { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.kv dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.stat { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.stat small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
#map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); }
@media (max-width: 600px) { #map { height: 340px; } }

/* news */
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; }
.news-item h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.35; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--accent-ink); }
.news-item .src { font-size: .8rem; color: var(--muted); }
.news-item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip, .tab { font: inherit; font-size: .88rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.chip.on, .tab.on, .chip:hover, .tab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* page heads & posts */
.page-head { padding: clamp(36px, 6vw, 72px) 0 12px; }
.page-head .lede { margin-bottom: .6em; }
.post { padding-top: clamp(36px, 6vw, 64px); }
.post-header { max-width: 72ch; margin-bottom: 32px; }
.post-header .meta { color: var(--muted); font-size: .9rem; }
.post-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 84px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 12px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover { border-color: var(--accent); color: var(--ink); }
.prose { max-width: 72ch; font-size: 1.07rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.prose pre { background: var(--ink); color: #e9edf3; padding: 16px; border-radius: 10px; overflow: auto; font-size: .9rem; }
.prose code { font-size: .92em; }
.prose p code { background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* services */
.guide-list { display: grid; gap: 10px; }
.guide-list details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.guide-list summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.guide-list summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; color: var(--accent-ink); }
.guide-list details[open] summary::after { content: "–"; }
.guide-list .body { padding: 0 0 16px; color: var(--ink-2); font-size: .97rem; }
.guide-list .body p:last-child { margin-bottom: 0; }

/* footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0 24px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid strong { display: block; margin-bottom: 8px; }
.footer-grid a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent-ink); }
.brand-foot { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.footer-foot { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: .82rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* featured images, cruise CTA, nav CTA */
.post-card .thumb { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin: -4px 0 12px; background: var(--paper-2); }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); display: block; background: var(--paper-2); }
.post-hero figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.cta-cruise { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 2.5em 0 0; }
.cta-cruise h3 { color: #fff; font-size: 1.35rem; margin: 2px 0 6px; }
.cta-cruise p { color: #c6cedd; margin: 0; max-width: 56ch; font-size: .97rem; }
.cta-cruise .eyebrow { color: var(--accent); }
.cta-cruise .btn { white-space: nowrap; }
.nav a.nav-cta { background: var(--accent); color: var(--ink); font-weight: 600; }
.nav a.nav-cta:hover { background: #f0a53a; }
