@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── LIGHT MODE (B: warm parchment + burnt orange) ── */
:root {
  --bg: #f5f0e8;
  --bg-surface: #ede8de;
  --border: #e0dbd0;
  --text: #1a1814;
  --muted: #6b6660;
  --accent: #c45e1a;
  --accent-bright: #d96b22;
  --accent-glow: rgba(196, 94, 26, 0.0);
  --link: #c45e1a;
  --nav-bg: rgba(245, 240, 232, 0.92);
  --toggle-icon: "☀️";
}

/* ── DARK MODE (H2: parchment dusk + coral-orange) ── */
[data-theme="dark"] {
  --bg: #1c1916;
  --bg-surface: #232019;
  --border: #2a2520;
  --text: #f2ede4;
  --muted: #7a736a;
  --accent: #b8784a;
  --accent-bright: #c98a5c;
  --accent-glow: rgba(184, 120, 74, 0.18);
  --link: #b8784a;
  --nav-bg: rgba(28, 25, 22, 0.92);
  --toggle-icon: "🌙";
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  transition: background 0.3s, border-color 0.3s;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent-bright); }

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

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

.toggle-sun { display: block; }
.toggle-moon { display: none; }
[data-theme="dark"] .toggle-sun { display: none; }
[data-theme="dark"] .toggle-moon { display: block; }

/* ── MAIN ── */
main {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── DIVIDER — single line only ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 1.5rem;
}

/* ── SECTION LABEL (glowing subheader) ── */
.section-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
  margin-bottom: 0.75rem;
  transition: text-shadow 0.3s, color 0.3s;
}

/* page-header section-label sits inside padding, no extra top gap needed */
.page-header .section-label { margin-bottom: 0.4rem; }

/* section-label after entries needs breathing room above */
.award-entry ~ .section-label,
.entry ~ .section-label,
.feature-entry ~ .section-label { margin-top: 1.5rem; }

/* hide divider hr that follows an entry — entry already has border-bottom */
.entry + .divider,
.award-entry + .divider,
.feature-entry + .divider { display: none; }

/* ── HEADINGS ── */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

p { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }

/* ── ENTRIES ── */
.entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.entry:first-of-type { border-top: 1px solid var(--border); }

.entry-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.entry-body { min-width: 0; flex: 1; }
.entry-body h3 { margin-bottom: 0.1rem; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-top: 0.5rem;
  margin-right: 0.3rem;
  transition: background 0.3s, border-color 0.3s;
}

/* ── HERO ── */
.hero { padding: 5rem 0 2rem; }

.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
}

.hero-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-bright); color: var(--bg); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 1.75rem 0 1.25rem;
  margin-bottom: 0;
}
.page-header p { max-width: 520px; margin-top: 0.6rem; }

/* ── AWARD ENTRIES ── */
.award-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.award-entry:first-of-type { border-top: 1px solid var(--border); }

.award-year {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.15rem;
  min-width: 60px;
  text-align: right;
}

/* ── FEATURE ENTRIES ── */
.feature-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-entry:first-of-type { border-top: 1px solid var(--border); }

/* ── FOOTER ── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--accent-bright);
  margin-bottom: 0.4rem;
}

.footer-contact a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent-bright); }

.footer-right { text-align: right; }

.footer-right .social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

.footer-right .social-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-right .social-links a:hover { color: var(--accent-bright); }

.footer-copy { font-size: 0.75rem; color: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 1.2rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.72rem; }
  main { padding: 2.5rem 1.2rem 5rem; }
  .entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .feature-entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .award-entry { flex-direction: column-reverse; gap: 0.2rem; }
  .award-year { text-align: left; }
  footer { padding: 2rem 1.2rem; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .footer-right .social-links { justify-content: flex-start; }
}

/* ── GALLERY ── */
.gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover {
  opacity: 0.85;
  border-color: var(--accent);
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lightbox-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.22); }

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.lightbox-close:hover { color: #fff; }

.lightbox-counter {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.media-card-link,
.media-card-link:hover {
  text-decoration: none;
  color: var(--text);
}

.media-card-link .media-card-type {
  color: var(--muted);
  text-decoration: none;
}

.media-card-link .media-card-title {
  color: var(--text);
  text-decoration: none;
}

.media-card-link .media-card-outlet {
  color: var(--muted);
  text-decoration: none;
}

.media-card-link:hover .media-card-title {
  color: var(--accent-bright);
}
/* ── MEDIA CARDS ── */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 2rem;
}

.media-card-link {
  display: block;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s;
}

.media-card-link:hover {
  background: var(--bg);
  text-decoration: none !important;
}

.media-card-link.type-video { border-left-color: var(--accent); }
.media-card-link.type-press { border-left-color: var(--accent); }
.media-card-link.type-writing { border-left-color: var(--accent); }

.media-card-type {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 0.4rem !important;
  text-decoration: none !important;
}

.media-card-title {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
  margin-bottom: 0.4rem !important;
  text-decoration: none !important;
}

.media-card-link:hover .media-card-title {
  color: var(--accent-bright) !important;
}

.media-card-desc {
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  line-height: 1.55 !important;
  margin-bottom: 0.5rem !important;
  text-decoration: none !important;
}

.media-card-outlet {
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  opacity: 0.75;
}

@media (max-width: 640px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* ── MEDIA CARD TITLE / DESC EMPHASIS FLIP ── */
.media-card-title {
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 0.92rem !important;
}

.media-card-title em {
  font-style: normal !important;
}

.media-card-desc {
  font-style: italic !important;
  font-size: 0.78rem !important;
  opacity: 0.72;
}

/* extra breathing room before 3rd card in a grid row */
.media-grid .media-card-link:nth-child(3) {
  margin-top: 0.75rem;
}