/* Metro Straits Daily — bridge site styles */

:root {
  --color-bg: #f7f5f1;
  --color-surface: #ffffff;
  --color-ink: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-border: #ddd8cf;
  --color-accent: #b91c1c;
  --color-accent-hover: #991b1b;
  --color-brand: #0f2744;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --container: 1120px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-brand);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-brand);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Main layout */
.site-main {
  padding-bottom: 3rem;
}

/* Home top story */
.home-top {
  padding-top: 1.5rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.story-label {
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.25rem;
  max-width: 48rem;
}

.story-hero {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-top .story-hero {
  max-width: 32rem;
}

.story-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-hero-secondary {
  max-width: 34rem;
  margin-top: 0;
  margin-bottom: 2rem;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.story-hero-secondary img {
  aspect-ratio: 16 / 10;
}

.story-teaser {
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.story-teaser p {
  margin: 0 0 1rem;
}

.story-actions {
  margin: 1.5rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: var(--color-brand);
  color: #fff;
}

.btn-small:hover {
  background: #1a3a5c;
}

/* Fake video preview */
.video-teaser {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.video-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: var(--shadow);
}

.video-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.88;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.25rem;
  border-color: transparent transparent transparent var(--color-accent);
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
}

/* Latest headlines */
.home-headlines {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.headline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.headline-item {
  border-bottom: 1px solid var(--color-border);
}

.headline-link {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
}

.headline-link:hover {
  text-decoration: none;
}

.headline-link:hover h3 {
  color: var(--color-brand);
}

.headline-thumb {
  flex-shrink: 0;
  width: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-border);
}

.headline-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.headline-body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.25rem 0 0.35rem;
}

.headline-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.headline-body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Category pages */
.category-page {
  padding-top: 1.5rem;
}

.category-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.category-intro {
  color: var(--color-muted);
  margin: 0 0 2rem;
}

.category-list {
  display: flex;
  flex-direction: column;
}

.category-item {
  border-bottom: 1px solid var(--color-border);
}

.category-link {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  color: inherit;
  text-decoration: none;
}

.category-link:hover h2 {
  color: var(--color-brand);
}

.category-thumb {
  flex-shrink: 0;
  width: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-border);
}

.category-thumb img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.category-body time {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.category-body h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.25rem 0 0.5rem;
}

.category-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* Article pages */
.article-page {
  padding-top: 1.5rem;
  max-width: 720px;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumb span {
  margin: 0 0.35rem;
}

.article-header .article-category {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  line-height: 1.2;
  margin: 0.5rem 0;
}

.article-header time {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.article-image {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-content p {
  margin: 0 0 1.25rem;
}

/* Legal pages */
.legal-page {
  padding-top: 1.5rem;
  max-width: 760px;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-brand);
}

.legal-content h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin: 0 0 1rem;
  color: var(--color-ink);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-brand);
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--color-surface);
  font-weight: 600;
}

.footer-contact {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.footer-contact a {
  color: var(--color-brand);
}

.footer-publisher {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  max-width: 36rem;
  line-height: 1.5;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-card p {
  margin: 0 0 0.5rem;
}

.contact-form {
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: var(--color-bg);
  color: var(--color-ink);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .headline-link {
    flex-direction: column;
  }

  .headline-thumb {
    width: 100%;
  }

  .headline-thumb img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .category-link {
    flex-direction: column;
  }

  .category-thumb {
    width: 100%;
  }

  .category-thumb img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
