/* Top Ten Travel (working title). Hand-maintained; pages link it with a
   content hash (?v=) added by scripts/build.mjs, so rebuild after editing.
   System fonts only: nothing loads from a third party. */

:root {
  --sand: #F6F1E9;
  --paper: #FFFDF9;
  --ink: #1D2433;
  --muted: #5B6475;
  --sea: #1F5F73;
  --sea-dark: #164656;
  --coral: #C4532F;
  --sun: #F2C46D;
  --line: #E3DACB;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

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

a { color: var(--sea); text-underline-offset: 0.15em; }
a:hover { color: var(--sea-dark); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.lede { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--coral); margin: 0; }

.btn {
  display: inline-block; background: var(--sea); color: #fff; border: 0; border-radius: 999px;
  padding: 0.7em 1.4em; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--sea-dark); color: #fff; }

/* Header and footer */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-header ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-header nav a[aria-current="page"] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--coral); }

.site-footer { background: var(--sea-dark); color: #E6EEF0; margin-top: 64px; padding: 40px 0 48px; }
.site-footer a { color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Home */
.hero { padding: 56px 0 24px; }
.hero h1 { margin-top: 0; }
.hero h1, .hero .lede { max-width: 760px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.card a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(29 36 51 / 0.1); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-art { aspect-ratio: 3 / 2; display: grid; place-items: center; background: linear-gradient(135deg, var(--sea), var(--sea-dark)); color: var(--sun); font: 700 4rem var(--serif); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.card-country { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--coral); font-weight: 700; }
.card-title { font: 600 1.25rem/1.25 var(--serif); }
.card-summary { color: var(--muted); font-size: 0.95rem; }
.badge { background: var(--sun); color: var(--ink); border-radius: 4px; padding: 1px 6px; letter-spacing: 0.05em; }

.how-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.how-grid li { background: var(--paper); border-top: 3px solid var(--coral); border-radius: var(--radius); padding: 4px 20px 16px; }
.how-grid h3 { margin-top: 0.8em; }

/* Destination page */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.draft-banner { background: var(--sun); border-radius: var(--radius); padding: 10px 14px; margin: 16px 0 0; }
.dest-header { padding: 24px 0 8px; }
.byline { color: var(--muted); font-size: 0.95rem; }
.photo { margin: 24px 0; }
.photo img { border-radius: var(--radius); }
.photo figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.quick-facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 12px; margin: 28px 0; }
.quick-facts h2 { margin-top: 0.8em; font-size: 1.3rem; }
.quick-facts dl > div { padding: 8px 0; border-top: 1px solid var(--line); }
.quick-facts dt { font-weight: 700; }
.quick-facts dd { margin: 0; }

.disclosure-note { border-left: 4px solid var(--sun); background: var(--paper); padding: 10px 14px; font-size: 0.95rem; }

.toc { margin: 28px 0; }
.toc h2 { font-size: 1.3rem; }
.toc ol { columns: 2 240px; column-gap: 32px; padding-left: 1.4em; margin: 0; }
.toc li { break-inside: avoid; padding: 2px 0; }

.top10 { list-style: none; padding: 0; margin: 0; }
.top10 > li { scroll-margin-top: 16px; }
.item { border-top: 1px solid var(--line); padding: 8px 0 16px; }
.item h2 { margin-top: 1.2em; }
.item .num { color: var(--coral); margin-right: 0.15em; }
.tip { background: var(--paper); border-left: 4px solid var(--sea); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.item-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0; font-size: 0.95rem; }
.item-meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.item-meta dd { margin: 0; }
.item-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.item-links a { font-weight: 600; }
.aff-label { font-size: 0.8rem; color: var(--muted); }

.faq h3 { margin-top: 1em; }
.back { margin-top: 40px; }

/* Plain pages */
.prose { padding-top: 32px; }

/* Newsletter (switched on in content/site.json) */
.newsletter { background: var(--sea); color: #fff; padding: 40px 0; margin-top: 56px; }
.newsletter h2 { color: #fff; margin-top: 0; }
.newsletter a { color: #fff; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newsletter-form label { width: 100%; font-weight: 600; }
.newsletter-form input { flex: 1 1 240px; padding: 0.7em 1em; border-radius: 999px; border: 0; font: 1rem var(--sans); }
.newsletter .btn { background: var(--coral); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding-top: 32px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
}
