/*
Theme Name: IULTCS Prototype
Theme URI: https://iultcs.lasranews.website/
Author: Codex
Author URI: https://openai.com/
Description: A polished prototype theme for IULTCS, designed for a modern WordPress demonstration site with congress, commission, news, and resource sections.
Version: 0.1.1
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iultcs-prototype
*/

:root {
  --ink: #07111d;
  --ink-2: #0b1828;
  --ink-3: #10243b;
  --paper: #f7f3eb;
  --muted: #b8c5d5;
  --line: rgba(255, 255, 255, 0.16);
  --gold: #e8b452;
  --gold-2: #f3ca76;
  --red: #d95a42;
  --green: #8bc7a3;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(232, 180, 82, 0.12), transparent 24rem),
    linear-gradient(180deg, #06101c 0%, #081728 46%, #06101c 100%);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-grid;
  grid-template-columns: 54px minmax(0, 220px);
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(217, 90, 66, 0.76);
  border-radius: 50%;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  display: block;
  color: var(--white);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  justify-content: end;
}

.primary-menu a,
.footer-menu a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.footer-menu a:hover {
  color: var(--gold-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font: inherit;
  padding: 9px 11px;
}

.btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--gold);
  color: #111721;
  font-weight: 800;
  line-height: 1;
  padding: 12px 18px;
  text-decoration: none;
}

.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--gold-2);
}

.btn-outline {
  border-color: rgba(232, 180, 82, 0.72);
  background: transparent;
  color: var(--gold-2);
}

.btn-outline:hover {
  background: rgba(232, 180, 82, 0.12);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 13, 23, 0.96) 0%, rgba(5, 13, 23, 0.74) 45%, rgba(5, 13, 23, 0.24) 100%),
    linear-gradient(180deg, rgba(5, 13, 23, 0.2) 0%, rgba(5, 13, 23, 0.9) 100%),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--ink));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.8fr);
  align-items: end;
  gap: 40px;
  min-height: 660px;
  padding: 86px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.congress-feature {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(7, 17, 29, 0.74);
  box-shadow: var(--shadow);
}

.congress-feature img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.feature-body {
  padding: 26px;
}

.feature-body h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
}

.meta-list li::before {
  margin-right: 8px;
  color: var(--gold-2);
  content: "•";
}

.section {
  padding: 76px 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-intro {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.timeline-card,
.output-card,
.post-card,
.commission-card,
.resource-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.timeline-card {
  min-width: 170px;
}

.timeline-card.is-next {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 82, 0.5);
}

.timeline-card img,
.output-card img,
.post-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.timeline-body,
.output-body,
.post-body,
.commission-card,
.resource-card {
  padding: 18px;
}

.year,
.card-kicker {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.timeline-card h3,
.output-card h3,
.post-card h2,
.commission-card h3,
.resource-card h2 {
  margin: 4px 0 8px;
  font-size: 19px;
  line-height: 1.2;
}

.timeline-card p,
.output-card p,
.post-card p,
.commission-card p,
.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.commission-card {
  border: 0;
  border-radius: 0;
  background: #091a2b;
}

.icon-disc {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 180, 82, 0.62);
  border-radius: 50%;
  color: var(--gold-2);
  font-weight: 850;
}

.news-band {
  background: var(--paper);
  color: #111721;
}

.news-band .section-title,
.news-band .post-card h2 {
  color: #111721;
}

.news-band .section-intro,
.news-band .post-card p {
  color: #49505a;
}

.news-band .post-card {
  border-color: rgba(17, 23, 33, 0.16);
  background: #fff;
  color: #111721;
}

.cta {
  overflow: hidden;
  border: 1px solid rgba(232, 180, 82, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(14, 37, 61, 0.95), rgba(10, 24, 40, 0.82)),
    url("https://upload.wikimedia.org/wikipedia/commons/7/71/LeonCathedralMex.JPG") right center / auto 120% no-repeat;
  padding: 34px;
}

.cta h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.cta p {
  max-width: 690px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 86px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 180, 82, 0.12), transparent 22rem),
    linear-gradient(180deg, #081829, #07111d);
}

.content-wrap {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.entry-content {
  color: rgba(255, 255, 255, 0.86);
}

.entry-content h2,
.entry-content h3 {
  color: var(--white);
  line-height: 1.18;
}

.entry-content a {
  color: var(--gold-2);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 58px 0 76px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050d17;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 1fr;
  gap: 40px;
  padding: 36px 0;
}

.footer-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-menu {
  flex-wrap: wrap;
  justify-content: end;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .primary-menu {
    position: absolute;
    inset: 76px 20px auto;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #07111d;
    padding: 14px;
    box-shadow: var(--shadow);
  }

  .primary-menu.is-open {
    display: grid;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: center;
    padding-top: 62px;
  }

  .card-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-menu {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section-inner,
  .footer-inner,
  .content-wrap {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .brand-mark {
    width: 46px;
  }

  .brand-sub {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 46px 0 38px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .section {
    padding: 54px 0;
  }

  .section-header {
    display: block;
  }

  .card-grid,
  .archive-grid,
  .commission-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 24px;
    background:
      linear-gradient(100deg, rgba(14, 37, 61, 0.97), rgba(10, 24, 40, 0.9)),
      url("https://upload.wikimedia.org/wikipedia/commons/7/71/LeonCathedralMex.JPG") right bottom / auto 86% no-repeat;
  }
}
