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

:root {
  --dark:   #2F2827;
  --dark2:  #251e1d;
  --med:    #634F4A;
  --gray:   #7A7A7A;
  --cyan:   #11C2D7;
  --orange: #FEA532;
  --coral:  #F65E2F;
  --light:  #F4F0EE;
  --white:  #FFFFFF;
  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(47,40,39,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-left a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-left a:hover { color: var(--white); }

.nav-logo img { height: 26px; display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right a.login {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-right a.login:hover { color: var(--white); }

.btn-access {
  background: var(--orange);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-access:hover { background: #f0952a; transform: translateY(-1px); }

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 1px solid var(--border);
  padding: 56px 40px 48px;
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(17,194,215,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.masthead-left {}

.masthead-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* Motion Brief logo / wordmark area */
.brief-logo {
  margin-bottom: 16px;
}

.brief-logo img {
  height: 52px;
  display: block;
}

/* Fallback wordmark if no logo image */
.brief-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brief-wordmark-the {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.brief-wordmark-title {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--white);
}

.brief-wordmark-title em {
  font-style: italic;
  color: var(--orange);
}

.masthead-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  max-width: 400px;
  margin-top: 12px;
}

.masthead-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.issue-meta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--gray);
  text-align: right;
}

.issue-meta span {
  display: block;
}

/* ── SUBSCRIBE BAR ── */
.subscribe-bar {
  background: rgba(17,194,215,0.06);
  border-top: 1px solid rgba(17,194,215,0.15);
  border-bottom: 1px solid rgba(17,194,215,0.15);
  padding: 16px 40px;
}

.subscribe-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.subscribe-bar p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.subscribe-bar strong { color: var(--white); }

.subscribe-form {
  display: flex;
  gap: 8px;
}

.subscribe-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 14px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.25); }
.subscribe-input:focus { border-color: var(--cyan); }

.btn-subscribe {
  background: var(--cyan);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: #0fb3c7; }

/* ── MAIN ── */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 100px;
}

/* ── LATEST ISSUE ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.latest-issue {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 72px;
  background: #3A2C29;
  transition: border-color 0.25s;
}
.latest-issue:hover { border-color: rgba(254,165,50,0.3); }

.latest-content {
  padding: 48px 48px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.latest-top {}

.issue-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254,165,50,0.12);
  border: 1px solid rgba(254,165,50,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--orange);
  margin-bottom: 20px;
}

.latest-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 16px;
}

.latest-date {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 20px;
}

.latest-desc {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.7;
  max-width: 480px;
}

.latest-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.section-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-cyan   { background: var(--cyan); }
.dot-orange { background: var(--orange); }
.dot-coral  { background: var(--coral); }
.dot-gray   { background: var(--gray); }

.latest-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-read {
  background: var(--orange);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-read:hover { background: #f0952a; transform: translateY(-1px); }

.latest-visual {
  background: linear-gradient(160deg, #1e3540 0%, #0d1f2b 40%, #1a1014 100%);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* decorative grid lines */
.latest-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,194,215,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,194,215,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.latest-visual::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(17,194,215,0.15);
}

.visual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}

.brief-logo-large {
  margin: 0 auto 20px;
}

.brief-logo-large img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(17,194,215,0.3));
}

.visual-issue-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.visual-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: rgba(255,255,255,0.15);
  font-style: italic;
}

.visual-accent-line {
  width: 48px;
  height: 2px;
  background: var(--cyan);
  margin: 16px auto 0;
  opacity: 0.6;
}

/* ── PAST ISSUES ── */
.past-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.issue-card {
  background: #3A2C29;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.issue-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.card-visual {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cv1 { background: linear-gradient(135deg, #1a3a4a 0%, #0d2233 100%); }
.cv2 { background: linear-gradient(135deg, #2a1a3a 0%, #160d23 100%); }
.cv3 { background: linear-gradient(135deg, #1a3a2a 0%, #0d2215 100%); }
.cv4 { background: linear-gradient(135deg, #3a2a1a 0%, #231608 100%); }
.cv5 { background: linear-gradient(135deg, #3a1a2a 0%, #20101a 100%); }

.card-issue-num {
  position: relative;
  z-index: 1;
  font-family: 'DM Mono', monospace;
  font-size: 42px;
  font-weight: 400;
  color: rgba(255,255,255,0.08);
  letter-spacing: -2px;
  user-select: none;
}

.card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.acc-cyan   { background: var(--cyan); }
.acc-orange { background: var(--orange); }
.acc-coral  { background: var(--coral); }

.card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-num-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
}

.card-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--gray);
}

.card-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  line-height: 1.3;
  color: var(--white);
  flex: 1;
}

.card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.topic-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 7px;
}

.card-read-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  margin-top: 4px;
  text-decoration: none;
  transition: gap 0.2s;
}
.issue-card:hover .card-read-link { gap: 8px; }

/* ── EMPTY STATE (for future issues) ── */
.issue-card.placeholder {
  border-style: dashed;
  opacity: 0.4;
  pointer-events: none;
}

.placeholder .card-visual {
  background: rgba(255,255,255,0.02);
}

.placeholder .card-headline {
  color: var(--gray);
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-size: 14px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {}

.footer-logo img {
  height: 22px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.7;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .latest-issue { grid-template-columns: 1fr; }
  .latest-visual { min-height: 220px; }
  .past-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .masthead { padding: 40px 20px 36px; }
  .subscribe-bar { padding: 16px 20px; }
  .main-wrap { padding: 40px 20px 72px; }
  .latest-content { padding: 32px 24px; }
  .latest-headline { font-size: 24px; }
  .brief-wordmark-title { font-size: 38px; }
  .past-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; }
}
