/* ═══════════════════════════════════════════════════
   THE UCONN MAG — stylesheet
   White + blue editorial theme.
   ═══════════════════════════════════════════════════ */

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

:root {
  --bg:          #ffffff;
  --bg-card:     #f6f7f9;
  --bg-header:   #0a0a0a;
  --border:      #e5e7eb;
  --border-mid:  #d1d5db;
  --text:        #111827;
  --text-muted:  #6b7280;
  --accent:      #2674d6;
  --accent-dark: #1a5bb0;
  --font-logo:   'Bebas Neue', Impact, sans-serif;
  --font-head:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:       1240px;
  --radius:      2px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
code {
  background: #eef3fb;
  border: 1px solid #c8d9f0;
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--accent-dark);
}

/* ── SHARED TAG CHIP ─────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
}

/* ── SHARED BUTTON ───────────────────────────────── */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.65rem; }

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo-img { height: 36px; width: auto; display: block; }
.logo-text {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

nav { display: flex; gap: 0; }
nav a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s;
}
nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.85);
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1.03); }

.hero-no-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 50%, #0f2a52 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.45) 40%,
    transparent      100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 3.5rem 3rem;
  max-width: 860px;
}

.hero-content .tag { margin-bottom: 1rem; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}
.hero-title a { text-decoration: none; color: #fff; transition: color 0.2s; }
.hero-title a:hover { color: #a8c8f8; }

.hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   SECTION DIVIDER
   ═══════════════════════════════════════════════════ */
.section-divider {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-divider span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 1rem 0 2rem;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-mid);
}

/* ═══════════════════════════════════════════════════
   ARTICLE GRID
   ═══════════════════════════════════════════════════ */
.articles-grid {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.article-card {
  background: var(--bg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s;
}
.article-card:hover { background: var(--bg-card); }

/* image wrapper */
.card-img-link { display: block; text-decoration: none; margin-bottom: 0.25rem; }
.card-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
  filter: saturate(0.9);
}
.article-card:hover .card-img { transform: scale(1.05); filter: saturate(1); }

.card-no-img {
  width: 100%;
  height: 100%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-no-img-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b0b8c4;
  font-weight: 500;
}

.card-tag { font-size: 0.6rem; }

.card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  flex: 1;
  letter-spacing: -0.005em;
}
.card-title a { text-decoration: none; transition: color 0.2s; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════════════ */
.article-header-band {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.article-header-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem 2.5rem;
}

.article-header-content .tag { margin-bottom: 1.25rem; }

.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.article-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-container { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

.article-body {
  padding: 2.5rem 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}
.article-body p  { margin-bottom: 1.6rem; }
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.article-body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul,
.article-body ol { padding-left: 1.5rem; margin-bottom: 1.6rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body code { font-size: 0.85em; }
.article-body hr {
  border: none;
  border-top: 1px solid var(--border-mid);
  margin: 2.5rem 0;
}

/* ── RELATED ARTICLES ────────────────────────────── */
.related-section {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.related-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.related-heading::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: flex;
  gap: 0.875rem;
  text-decoration: none;
  align-items: flex-start;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.related-card:hover { border-color: var(--accent); background: var(--bg-card); }

.related-card-img {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-card);
}
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.related-card-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
  margin-top: 0.25rem;
}
.related-card .card-tag { margin-bottom: 0.25rem; }

.article-back { padding: 2rem 0 5rem; }

/* ═══════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════ */
.about-container {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.about-container .tag { margin-bottom: 1.25rem; }

.about-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.about-body { color: #374151; font-size: 1.05rem; line-height: 1.85; }
.about-body p { margin-bottom: 1.5rem; }
.about-body h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.about-body a { color: var(--accent); text-underline-offset: 3px; }

.about-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
}
.about-list li { margin-bottom: 0.4rem; }

.about-divider {
  height: 1px;
  background: var(--border-mid);
  margin: 2.5rem 0;
}

/* ═══════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════ */
.not-found {
  max-width: 540px;
  margin: 10rem auto 5rem;
  padding: 0 2rem;
  text-align: center;
}
.not-found .tag { margin-bottom: 1.5rem; }
.not-found-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
}
.not-found-body {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  background: #f6f7f9;
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
}
.footer-links a:first-child { border-left: 1px solid var(--border); }
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════
   JHON PAGE
   ═══════════════════════════════════════════════════ */
.jhon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 2rem;
  padding: 4rem 2rem;
}

.jhon-img {
  max-width: min(480px, 90vw);
  border-radius: 4px;
}

.jhon-text {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 2rem;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 2.5rem 2rem 2.5rem; }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .hero { height: 85vw; min-height: 380px; }
  .hero-content { padding: 1.5rem; }
  .hero-excerpt { display: none; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-header); border-bottom: 1px solid var(--border); z-index: 300; }
  nav.open a { border-left: none; border-top: 1px solid var(--border); height: 48px; padding: 0 1.5rem; }
  .nav-toggle { display: block; }
  .related-grid { grid-template-columns: 1fr; }
  .section-divider { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img, .card-img { transition: none; }
}
