/* landing.css -- Tall Ship Channel HOME page (tallshipchannel.com)
   LANDING_CSS_VERSION: 2026-09-21-r1
   Design tokens matched to the existing Core app (confirmed in core.js /
   shipRegistryCardHtml/buildShipTooltipHtml): navy #16323f, gold accent
   #a9772e, Oswald for headings, Open Sans for body text.
*/

:root {
  --navy: #16323f;
  --navy-light: #1f4356;
  --gold: #a9772e;
  --bg: #f7fafb;
  --text: #16323f;
  --text-muted: #5b7480;
  --border: #dde6ea;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, .brand, .status-label {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 24px 70px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0 0 10px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 18px;
  font-weight: 700;
}
.hero-tagline {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e4edf1;
  margin: 0;
}

/* ---------- Nav ---------- */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: #cfe0e8;
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-list a:hover,
.nav-list a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}
.nav-list a.nav-login {
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 6px 12px;
}
.nav-list a.nav-login:hover { background: var(--gold); color: var(--navy); }

/* ---------- Content grid: 1 : 2 : 1 ---------- */
.content-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* mid column stays proportionally fixed at 2x regardless of content */
  gap: 28px;
  align-items: start;
}
.col-heading {
  font-size: 1rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.col-subheading {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--navy);
  margin: 26px 0 12px;
  letter-spacing: 0.04em;
}
.stack { display: flex; flex-direction: column; gap: 16px; }

.loading-placeholder,
.empty-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* News / promo cards (column 1 & 3) */
.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.mini-card h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: var(--navy);
}
.mini-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.mini-card .meta {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.view-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
}
.view-more:hover { text-decoration: underline; }

/* Article cards (column 2) */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 16px;
}
.article-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.article-card-body h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--navy);
}
.article-card-body p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.lang-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: 3px;
  padding: 2px 6px;
  margin-bottom: 6px;
}

/* Status block (column 3, top) */
.status-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 6px;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.status-row + .status-row { border-top: 1px solid var(--border); }
.status-label { font-size: 0.75rem; color: var(--navy); }
.status-pill {
  font-size: 0.7rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}
.status-pill-loading { background: var(--bg); color: var(--text-muted); }
.status-pill-live { background: #1f7a4d; color: #fff; }
.status-pill-off { background: var(--border); color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfe0e8;
  margin-top: 50px;
  padding: 44px 20px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.8rem;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #cfe0e8;
  text-decoration: none;
  font-size: 0.82rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-copyright {
  max-width: 1200px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.72rem;
  color: #8fa8b3;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 20px;
    gap: 14px;
  }
  .nav-list.nav-open { display: flex; }
  .article-card { flex-direction: column; }
  .article-card img { width: 100%; height: 160px; }
}
