/* Tropix — tropix.click | youth-media, warm coral + dark navy */
:root {
  --coral: #e85d4a;
  --coral-light: #ff7a68;
  --coral-soft: #fff0ed;
  --navy: #0f1b2e;
  --navy-mid: #1a2d4a;
  --navy-soft: #2a4068;
  --text: #1c2430;
  --text-muted: #5a6472;
  --bg: #f8f6f4;
  --surface: #ffffff;
  --border: #e2ddd8;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(15, 27, 46, 0.1);
  --shadow-hover: 0 8px 28px rgba(15, 27, 46, 0.14);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1280px;
  --cols: 12;
  --gap: 1rem;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --text: #e8eaed;
  --text-muted: #9aa3b0;
  --bg: #0a1018;
  --surface: #121c2c;
  --border: #243044;
  --coral-soft: #2a1a18;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

[data-theme="dark"] a:hover {
  color: var(--coral-light);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Centered-logo header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--gap);
}

.header-brand {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.site-logo {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--navy);
  display: inline-block;
}

[data-theme="dark"] .site-logo {
  color: var(--text);
}

.site-logo span {
  color: var(--coral);
}

.site-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.04em;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.75rem;
  position: relative;
}

.menu-toggle {
  display: none;
  position: absolute;
  left: 0;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  position: absolute;
  right: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.header-nav a {
  text-decoration: none;
  color: var(--navy-mid);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

[data-theme="dark"] .header-nav a {
  color: var(--text-muted);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* Hero grid homepage */
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gap) 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.hero-main {
  grid-column: span 8;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.hero-main-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.hero-main-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.hero-main h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-main h1 a {
  color: var(--navy);
  text-decoration: none;
}

[data-theme="dark"] .hero-main h1 a {
  color: var(--text);
}

.hero-main h1 a:hover {
  color: var(--coral);
}

.hero-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-side {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  flex: 1;
  transition: box-shadow var(--transition), transform var(--transition);
}

.hero-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.hero-card .story-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.4rem 0;
}

.hero-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

[data-theme="dark"] .hero-card h3 a {
  color: var(--text);
}

.hero-card h3 a:hover {
  color: var(--coral);
}

.hero-card .story-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main content areas */
.main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap) 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.content-primary {
  grid-column: span 8;
}

.sidebar {
  grid-column: span 4;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-soft);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--coral);
  display: inline-block;
}

[data-theme="dark"] .section-title {
  color: var(--text-muted);
}

/* Shadowed story cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  list-style: none;
}

.story-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.story-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-card-body {
  padding: 1.1rem;
}

.story-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.story-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.35rem 0 0.5rem;
}

.story-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

[data-theme="dark"] .story-card h3 a {
  color: var(--text);
}

.story-card h3 a:hover {
  color: var(--coral);
}

.story-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.story-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar blocks */
.sidebar-block {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: var(--gap);
}

.sidebar-block h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .sidebar-block h2 {
  color: var(--text);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 500;
}

[data-theme="dark"] .sidebar-list a {
  color: var(--text);
}

.sidebar-list a:hover {
  color: var(--coral);
}

/* Editorial prose */
.prose {
  font-size: 1rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .prose h2 {
  color: var(--text);
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

/* Wide-magazine article */
.article-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem var(--gap) 3rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
}

[data-theme="dark"] .article-header h1 {
  color: var(--text);
}

.article-deck {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--coral-soft);
}

.byline-text {
  flex: 1;
  min-width: 200px;
}

.byline-name {
  font-weight: 700;
  color: var(--navy);
}

[data-theme="dark"] .byline-name {
  color: var(--text);
}

.byline-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-dates .updated {
  display: block;
  margin-top: 0.2rem;
  font-style: italic;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body > * + * {
  margin-top: 1.25rem;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2.25rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .article-body h2 {
  color: var(--text);
}

.article-body blockquote {
  border-left: 4px solid var(--coral);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy-mid);
  background: var(--coral-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

[data-theme="dark"] .article-body blockquote {
  color: var(--text-muted);
}

/* Related articles */
.related-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-block h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  list-style: none;
}

.related-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.related-item a {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

[data-theme="dark"] .related-item a {
  color: var(--text);
}

.related-item a:hover {
  color: var(--coral);
}

.related-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Page layouts */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem var(--gap);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  margin-top: 0.5rem;
  opacity: 0.85;
  font-size: 0.95rem;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--gap) 3rem;
}

.page-content.wide {
  max-width: 900px;
}

/* Articles listing */
.articles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.articles-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.articles-list-item:hover {
  box-shadow: var(--shadow-hover);
}

.articles-list-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.articles-list-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

/* Contact form */
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-form button {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.contact-form button:hover {
  background: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  padding: 2.5rem var(--gap) 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.footer-brand {
  grid-column: span 4;
}

.footer-brand .site-logo {
  color: #fff;
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 0.75rem;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-nav {
  grid-column: span 4;
}

.footer-nav h3,
.footer-legal h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--coral-light);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
}

.footer-nav li,
.footer-legal li {
  margin-bottom: 0.4rem;
}

.footer-nav a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-legal {
  grid-column: span 4;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  opacity: 0.65;
  text-align: center;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: #fff;
  padding: 1rem var(--gap);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  font-size: 0.88rem;
}

.cookie-notice.is-visible {
  transform: translateY(0);
}

.cookie-notice a {
  color: var(--coral-light);
}

.cookie-notice button {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-main {
    grid-column: span 12;
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-column: span 12;
    flex-direction: row;
  }

  .hero-card {
    flex: 1;
  }

  .content-primary,
  .sidebar {
    grid-column: span 12;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-nav,
  .footer-legal {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
  }

  .header-nav.is-open {
    display: flex;
  }

  .hero-side {
    flex-direction: column;
  }

  .articles-list-item {
    grid-template-columns: 1fr;
  }

  .articles-list-body {
    padding: 0 1.25rem 1.25rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
