/* Data Hub Tourism — stylesheet
   Palette drawn from the Data Hub Tourism logo: navy, teal, green, cool paper */

:root {
  --paper: #F1F2ED;
  --paper-deep: #E4E8E6;
  --ink: #0E2952;
  --ink-soft: #4A5E77;
  --sea: #175F70;
  --signal: #256F38;
  --rule: #C3CBD2;
  --shell: 78rem;
  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-block: 1.6rem 1.2rem;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.mark {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
@media (max-width: 34rem) { .mark { width: 36px; height: 36px; } }

.wordmark {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}

.strapline {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
  max-width: 34ch;
}

.nav {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.88rem;
  display: flex;
  gap: 1.4rem;
}
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- lead ---------- */

.lead {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.lead-kicker {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--signal);
  margin: 0 0 0.9rem;
}

.lead h2 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  max-width: 26ch;
}

.lead h2 a { color: inherit; text-decoration: none; }
.lead h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.standfirst {
  margin: 1.3rem 0 0;
  font-size: 1.12em;
  color: var(--ink-soft);
}

.meta {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}

/* ---------- coverage strip ---------- */

.coverage {
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.coverage h3, .stream h3, .signup h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.markets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.92rem;
}

.markets li { color: var(--ink); }

/* ---------- article stream ---------- */

.stream { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.stream ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stream li + li {
  border-top: 1px solid var(--rule);
}

.entry {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 2.5rem;
  padding-block: 1.6rem;
  align-items: start;
}

.entry-date {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-top: 0.42rem;
}

.entry h4 {
  margin: 0;
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.entry h4 a { color: inherit; text-decoration: none; }
.entry h4 a:hover { text-decoration: underline; }

.entry p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98em;
}

@media (max-width: 34rem) {
  .entry { grid-template-columns: 1fr; gap: 0.35rem; }
  .entry-date { padding-top: 0; order: -1; }
}

/* ---------- signup ---------- */

.signup {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.signup p {
  max-width: 52ch;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 32rem;
}

.signup-form label {
  flex: 1 1 16rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.signup-form input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink-soft);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  border-radius: 2px;
}

.signup-form button {
  align-self: flex-end;
  padding: 0.72rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.92rem;
  border-radius: 2px;
  cursor: pointer;
}
.signup-form button:hover { background: var(--sea); border-color: var(--sea); }

.honey { position: absolute; left: -9999px; }

/* ---------- article page ---------- */

.article { padding-block: clamp(2.5rem, 5vw, 4rem); }

.article-head { max-width: none; }

.article h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0.9rem 0 0;
}

.article-body {
  max-width: none;
  margin-top: 2.2rem;
}

/* Longer lines need more leading and a fractionally larger size to stay
   comfortable. Both scale back down on smaller screens further below. */
.article-body p,
.page p,
.page li,
.sources p {
  font-size: 1.06em;
  line-height: 1.72;
}

.article-body h2 {
  font-size: 1.32em;
  line-height: 1.25;
  font-weight: 600;
  margin: 2.4rem 0 0.7rem;
}

.article-body p { margin: 0 0 1.2rem; }

.article-body blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--signal);
  color: var(--ink-soft);
  font-size: 1.08em;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.9rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.article-body th { font-weight: 600; color: var(--ink-soft); }
.article-body td.num, .article-body th.num { text-align: right; font-variant-numeric: tabular-nums; }

.figure { margin: 2.4rem 0; width: 100%; }
.figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.figure figcaption {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.sources {
  max-width: none;
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92em;
  color: var(--ink-soft);
}
.sources h2 {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

/* ---------- wide data tables ---------- */

.scroll {
  width: 100%;
  margin: 1.8rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 42rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.9rem;
}
.scroll th, .scroll td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.scroll th {
  background: var(--sea);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.35;
}
.scroll tr:last-child td { border-bottom: none; }
.scroll td.num, .scroll th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- about ---------- */

.page { padding-block: clamp(2.5rem, 5vw, 4rem); max-width: none; }
.page h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}
.page h2 {
  font-size: 1.28em;
  font-weight: 600;
  margin: 2.2rem 0 0.6rem;
}
.page p { margin: 0 0 1.1rem; }
.page ul { padding-left: 1.1rem; margin: 0 0 1.1rem; }
.page li { margin-bottom: 0.4rem; }

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

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.2rem 3rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 3rem;
  justify-content: space-between;
  align-items: start;
}
.foot p { margin: 0 0 0.6rem; max-width: 48ch; }
.foot a { color: var(--ink-soft); }

@media (max-width: 56rem) {
  .article-body p,
  .page p,
  .page li,
  .sources p { font-size: 1.02em; line-height: 1.66; }
}

@media (max-width: 34rem) {
  .scroll table { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- forms on standard pages ---------- */

.contact-form {
  max-width: 34rem;
  margin: 2rem 0 2.6rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--ink-soft);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  border-radius: 2px;
}

.field textarea { resize: vertical; min-height: 8rem; }

.contact-form button {
  padding: 0.72rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.94rem;
  border-radius: 2px;
  cursor: pointer;
}
.contact-form button:hover { background: var(--sea); border-color: var(--sea); }

/* ---------- team ---------- */

.team { margin: 1.6rem 0 0; }
.team-member { padding-block: 1.3rem; border-top: 1px solid var(--rule); }
.team-member h3 {
  margin: 0 0 0.15rem;
  font-size: 1.15em;
  font-weight: 600;
}
.team-member .role {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.team-member p { margin: 0; }

/* ---------- The Hub, dashboard entry ---------- */

.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--signal);
  color: var(--paper);
  text-decoration: none;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
}
.hub-btn:hover { background: var(--ink); color: var(--paper); }

.hub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9FD8AE;
  position: relative;
  flex: none;
}
.hub-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #9FD8AE;
  opacity: 0.6;
  animation: hub-pulse 2.2s ease-out infinite;
}
@keyframes hub-pulse {
  0%   { transform: scale(0.5); opacity: 0.7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.nav .hub-btn { margin-left: 0.2rem; }
.nav a.hub-btn:hover, .nav a.hub-btn[aria-current="page"] { text-decoration: none; }

.hub-promo {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--signal);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.2rem 0;
}

.hub-eyebrow {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.6rem;
}

.hub-promo h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 0.9rem;
}

.hub-promo p { margin: 0 0 0.9rem; max-width: var(--measure); }

.hub-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.4rem;
}

.hub-cta2 {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.hub-cta2:hover { background: var(--ink); color: var(--paper); }

.hub-note {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

/* ---------- services list ---------- */

.services { margin: 2.4rem 0 0; }

.service {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0 2.5rem;
  align-items: start;
  padding-block: 1.9rem;
  border-top: 1px solid var(--rule);
}

.service-fig {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: 0.8rem;
}
.service-fig svg { display: block; width: 100%; height: auto; }

.service h3 {
  margin: 0 0 0.45rem;
  font-size: 1.22em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service p { margin: 0 0 0.6rem; }

.service .answers {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--signal);
  margin: 0;
}

.services-close {
  border-top: 1px solid var(--rule);
  padding-top: 1.8rem;
  margin-top: 0.2rem;
}

@media (max-width: 34rem) {
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service-fig { max-width: 12rem; }
}
