/* ==========================================================================
   Jennifer Garland In the News — refresh stylesheet
   Brand tokens preserved from the GoDaddy export (fonts, palette, social
   brand colors); layout and visual treatment are a deliberate redesign.
   ========================================================================== */

/* ---- Font faces (localized, latin subsets; weights mirror the source) --- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/playfair-display-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/open-sans-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/open-sans-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/open-sans-400-italic.woff2) format('woff2');
}

/* ---- Design tokens (source palette) ---- */
:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --ink: #ffffff;
  --muted: #9a9a9a;
  --faint: #808080; /* #5e5e5e failed WCAG AA 4.5:1 (3.24:1); 5.32:1 now */
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --navy: #1a1a2e;

  --linkedin: #0a66c2;
  --facebook: #1877f2;
  --instagram: #e1306c;
  --tiktok: #010101;
  --youtube: #ff0000;
  --crunchbase: #0288d1;

  --ok: #16a34a;
  --err: #dc2626;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Open Sans', Arial, sans-serif;

  --header-h: 72px;
  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.4em; }
h1, h2, h3 { margin: 0 0 0.4em; font-family: var(--serif); font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1.25em; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.site-logo {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { color: var(--muted); }

/* Nav (desktop) */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { display: block; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 96px 32px 40px;
}
.drawer.open { display: flex; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer a:hover { color: var(--muted); }
.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.25rem); /* max 36px */
  letter-spacing: 0.005em;
  margin-bottom: 0.5em;
  max-width: 18ch;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 0;
}
.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  line-height: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 2644 / 1000;
  object-fit: cover;
}

/* ---- Editorial prose (home intro, about) ---- */
.prose {
  padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 110px);
}
.prose-lead {
  padding-top: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-media {
  margin: 0;
  border: 1px solid var(--line);
  line-height: 0;
  overflow: hidden;
  align-self: start;
}
.about-media img {
  width: 100%;
  aspect-ratio: 400 / 533;
  object-fit: cover;
}
.about-grid .prose-inner {
  max-width: none;
  margin: 0;
}
.prose-inner {
  max-width: min(100%, 52rem);
  margin-inline: auto;
}
.prose p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #e8e8e8;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose-lead p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding: 0.06em 0.14em 0 0;
}
.rule {
  width: 100%;
  max-width: var(--container);
  height: 1px;
  background: var(--line);
  margin-inline: auto;
}

/* ---- Page heading (shared for subpages) ---- */
.page-head {
  padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 3vw, 40px);
  text-align: center;
}
.page-head h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.25rem); /* max 36px */
  max-width: 22ch;
  margin-inline: auto;
}

/* ==========================================================================
   Article list (In The News)
   ========================================================================== */
.media-section { padding-bottom: clamp(56px, 8vw, 110px); }
.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.media-item {
  padding: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.media-item:nth-child(odd) { border-left: 0; }
.media-pub {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.media-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  margin: 0 0 14px;
}
.media-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.28s ease;
}
.media-title a:hover { background-size: 100% 1px; }
.media-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Progressive reveal: JS collapses the list; each batch animates in */
.media-list.collapsed .media-item { display: none; }
.media-list.collapsed .media-item.revealed { display: block; animation: media-reveal 0.45s ease both; }
@keyframes media-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.media-more { display: none; text-align: center; padding-top: 48px; }
.js .media-more { display: block; }
.media-status {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-section { padding-bottom: clamp(56px, 8vw, 110px); }
.contact-card {
  max-width: 620px;
  margin-inline: auto;
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
}
.field { margin-bottom: 26px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 2px;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: 0.55; cursor: default; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(22, 163, 74, 0.15); color: var(--ok); }
.form-status.err { background: rgba(220, 38, 38, 0.15); color: var(--err); }
.form-note {
  margin: 22px 0 0;
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
}
.form-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-note a:hover { color: var(--ink); }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 40px;
}
.footer-inner { text-align: center; }
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.social-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.social-btn svg { width: 18px; height: 18px; fill: #fff; }
.social-linkedin { background: var(--linkedin); }
.social-facebook { background: var(--facebook); }
.social-instagram { background: var(--instagram); }
.social-tiktok {
  background: var(--tiktok);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.social-youtube { background: var(--youtube); }
.social-crunchbase { background: var(--crunchbase); }
.social-btn::after,
.social-btn::before {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.social-btn::after {
  content: attr(data-tooltip);
  bottom: 100%;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  font: 500 13px var(--sans);
  white-space: nowrap;
  border-radius: 6px;
}
.social-btn::before {
  content: '';
  bottom: 100%;
  margin-bottom: 2px;
  border: 6px solid transparent;
  border-top-color: var(--navy);
}
.social-btn:hover::after,
.social-btn:hover::before { opacity: 1; visibility: visible; }
.copyright {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #111;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 420px; margin: 0; font-size: 0.88rem; color: var(--muted); }
.cookie-accept {
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cookie-accept:hover { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   404
   ========================================================================== */
.error-page { padding: clamp(72px, 12vw, 160px) 0; text-align: center; }
.error-code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  margin-bottom: 0.2em;
}
.error-page p { color: var(--muted); margin-bottom: 32px; }
.error-page .btn { text-decoration: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .media-list { grid-template-columns: 1fr; }
  .media-item:nth-child(odd) { border-left: 0; }
}
@media (max-width: 767px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 400px; margin-inline: auto; }
  .about-grid .prose-inner { max-width: min(100%, 52rem); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .prose p { font-size: 1rem; }
  .media-item { padding: 28px 4px; }
  .cookie-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
