/* 443SEC Redesign - Core Design System
 * Editorial magazine style with Space Grotesk + DM Sans + DM Mono
 * Colors: lime, green, paper (off-white)
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
  --ink: #101716;
  --muted: #58645f;
  --paper: #f3f4ee;
  --lime: #d6fa5b;
  --green: #234f41;
  --dark: #142d26;
  --border: #cbd1c7;
  --line: #cad0c7;
  --white: #fff;
  --orange: #fa805e;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.wrap {
  max-width: 1460px;
  width: calc(100% - 96px);
  margin: 0 auto;
}

.container {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
}

.mono {
  font-family: var(--font-mono);
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--ink);
  color: #d9e3da;
  padding: 9px 0;
  font: 11px var(--font-mono);
  letter-spacing: .08em;
}

.topbar .container,
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.topbar b {
  color: var(--lime);
  font-weight: 500;
}

.top {
  height: 32px;
  background: var(--ink);
  color: #d8e4d8;
  font: 10px var(--font-mono);
  letter-spacing: .1em;
}

.top .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top b {
  color: var(--lime);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  height: 85px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 244, 238, .97);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}

.nav-inner,
.navinner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand {
  display: flex;
  align-items: baseline;
  letter-spacing: -.09em;
  font: bold 38px var(--font-display);
  white-space: nowrap;
}

.brand em {
  font-style: normal;
  color: var(--green);
}

.brand span,
.brand small {
  letter-spacing: 0;
  font: 10px var(--font-mono);
  color: #5e6a62;
  margin-left: 14px;
  align-self: center;
}

.navlinks {
  display: flex;
  gap: 35px;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
}

.navlinks a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.navright {
  display: flex;
  align-items: center;
  gap: 13px;
}

.lang,
.language {
  border: 1px solid var(--border);
  padding: 10px 13px;
  background: transparent;
  font: 11px var(--font-mono);
}

.subscribe,
.contact {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
}

.hamburger,
.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 23px;
}

/* Reading progress bar */
.progress {
  height: 3px;
  background: transparent;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.progress > div {
  height: 100%;
  width: 0;
  background: #286d4b;
  transition: width .08s linear;
}

/* ============================================
   MASTHEAD / HOMEPAGE HERO
   ============================================ */
.masthead {
  padding: 49px 0 38px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font: 11px var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 40px;
  margin-top: 24px;
}

.masthead h1 {
  font: 700 clamp(66px, 9.1vw, 151px)/.82 var(--font-display);
  letter-spacing: -.095em;
  margin: 0;
}

.masthead h1 i {
  font-style: normal;
  color: var(--green);
}

.masthead h1 .period {
  color: var(--orange);
}

.masthead-side {
  padding-bottom: 7px;
  max-width: 410px;
  justify-self: end;
}

.masthead-side p {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.035em;
  margin: 0 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  padding: 12px 16px;
  font: 11px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pill:hover {
  background: var(--lime);
}

.issue {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 38px;
  padding-top: 14px;
  font: 10px var(--font-mono);
  color: #53605b;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============================================
   SECTION TAGS & LABELS
   ============================================ */
.section-tag {
  font: 11px var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 17px;
}

.section-tag span:last-child {
  color: #66736b;
}

.tag {
  font: 11px var(--font-mono);
  letter-spacing: .14em;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--lime);
  border-radius: 50%;
}

/* ============================================
   LEAD / FEATURED ARTICLE
   ============================================ */
.lead {
  display: grid;
  grid-template-columns: 1.17fr .83fr;
  min-height: 550px;
  background: var(--ink);
  color: white;
}

.lead-art {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  background: #102e27;
  isolation: isolate;
}

.lead-art::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: repeating-radial-gradient(
    circle at 45% 50%,
    transparent 0 24px,
    rgba(193, 250, 94, .13) 25px 26px,
    transparent 27px 46px
  );
  transform: rotate(-20deg);
}

.lead-copy {
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kicker {
  font: 11px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime);
}

.lead h2 {
  font: 600 clamp(39px, 4.2vw, 69px)/1.02 var(--font-display);
  letter-spacing: -.065em;
  margin: 29px 0;
}

.lead-copy p {
  font-size: 17px;
  color: #b7c4bb;
  line-height: 1.65;
  max-width: 460px;
}

.read-arrow {
  font-size: 38px;
  border: 1px solid #67766b;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 100px;
  transition: .2s;
}

.lead:hover .read-arrow {
  color: var(--ink);
  background: var(--lime);
  transform: rotate(-35deg);
}

.lead-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-top: 28px;
}

.meta {
  font: 11px var(--font-mono);
  letter-spacing: .07em;
  color: #92a59a;
}

/* ============================================
   STORY GRID
   ============================================ */
.browse {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 28px;
}

.filter {
  white-space: nowrap;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 40px;
  padding: 12px 19px;
  font: 12px var(--font-mono);
  transition: .2s;
}

.filter.active,
.filter:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.stories-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 66px 0 14px;
}

.stories-head h2 {
  font: 700 clamp(40px, 6vw, 70px)/1 var(--font-display);
  letter-spacing: -.075em;
  margin: 0;
}

.stories-head p {
  font: 11px var(--font-mono);
  color: #68776c;
}

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

.story {
  border-top: 1px solid var(--ink);
  padding-top: 13px;
  display: flex;
  flex-direction: column;
}

.story-visual {
  height: 285px;
  overflow: hidden;
  position: relative;
  margin: 12px 0 22px;
  transition: filter .2s;
}

.story:hover .story-visual {
  filter: contrast(1.14);
}

.story-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #506057;
}

.story h3 {
  font: 600 clamp(26px, 2.8vw, 38px)/1.13 var(--font-display);
  letter-spacing: -.055em;
  margin: 20px 0 12px;
}

.story p {
  font-size: 14px;
  line-height: 1.65;
  color: #546159;
  margin: 0 0 25px;
}

.story .bottom {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
  font: 11px var(--font-mono);
  display: flex;
  justify-content: space-between;
}

.story .bottom b {
  font-size: 20px;
}

/* Story visual variants */
.visual-lock {
  background: #dce4da;
}

.visual-lock .orb {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 35px solid #31594a;
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  box-shadow: 0 65px 0 -15px #173b31, 0 80px 0 -12px #31594a;
}

.visual-lock .bar {
  position: absolute;
  width: 230px;
  height: 140px;
  border-radius: 22px;
  background: #a9cbb5;
  left: 50%;
  top: 49%;
  transform: translateX(-50%);
  box-shadow: 14px 17px 0 #244c40;
}

.visual-lock .bar::after {
  content: '×';
  font: 110px var(--font-display);
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  color: #244c40;
}

.visual-feed {
  background: #d7fa64;
  display: grid;
  place-items: center;
}

.visual-feed .post {
  width: 74%;
  height: 76%;
  background: #f1f3e9;
  border: 2px solid var(--ink);
  transform: rotate(-8deg);
  padding: 25px;
  box-shadow: 18px 18px 0 #285140;
}

.visual-feed .post b {
  font: 700 22px var(--font-display);
  letter-spacing: -.05em;
}

.visual-feed .post span {
  display: block;
  background: #c3d0c2;
  height: 9px;
  margin-top: 17px;
  width: 90%;
}

.visual-feed .post span:nth-of-type(2) { width: 76%; }
.visual-feed .post span:nth-of-type(3) { width: 56%; }

.visual-feed .post strong {
  display: block;
  color: #e85f39;
  font: 700 49px var(--font-display);
  margin-top: 12px;
}

.visual-training {
  background: #163d35;
  display: grid;
  place-items: center;
}

.visual-training::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 95%, #6a9e782a 96%),
    linear-gradient(transparent 95%, #6a9e782a 96%);
  background-size: 26px 26px;
}

.visual-training .shield {
  font: 700 142px var(--font-display);
  color: var(--lime);
  transform: rotate(-12deg);
  z-index: 1;
  letter-spacing: -.1em;
}

.visual-training .shield::after {
  content: 'SECURE YOURSELF';
  display: block;
  font: 12px var(--font-mono);
  letter-spacing: .08em;
  transform: rotate(12deg);
  margin-top: -5px;
  text-align: center;
}

/* ============================================
   MANIFESTO SECTION
   ============================================ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--lime);
  margin-top: 105px;
  padding: clamp(32px, 6vw, 85px);
}

.manifesto .big {
  font: 700 clamp(60px, 8vw, 120px)/.91 var(--font-display);
  letter-spacing: -.09em;
}

.manifesto .big em {
  font-style: normal;
  color: #285344;
}

.manifesto h3 {
  font: 700 26px var(--font-display);
  letter-spacing: -.04em;
}

.manifesto p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 450px;
}

.manifesto a {
  display: inline-block;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  font: 12px var(--font-mono);
  margin-top: 15px;
}

.manifesto a:hover {
  background: #111;
  color: #fff;
}

/* ============================================
   UPCOMING SECTION
   ============================================ */
.upcoming {
  margin: 90px 0;
}

.upcoming-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

.upcoming h2 {
  font: 700 54px var(--font-display);
  letter-spacing: -.07em;
  margin: 0;
}

.upcoming-head span {
  font: 11px var(--font-mono);
  color: #68756b;
}

.upcoming-row {
  display: grid;
  grid-template-columns: 80px 1fr 130px 30px;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.upcoming-row:last-child {
  border-bottom: 1px solid var(--border);
}

.upcoming-row .number {
  font: 12px var(--font-mono);
  color: #6e7b70;
}

.upcoming-row h3 {
  font: 500 clamp(19px, 2.5vw, 31px) var(--font-display);
  letter-spacing: -.04em;
  margin: 0;
}

.upcoming-row .status {
  font: 11px var(--font-mono);
  text-transform: uppercase;
  color: #65746c;
}

.upcoming-row .arr {
  text-align: right;
  font-size: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #111c18;
  color: #fff;
  padding: 70px 0 26px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
}

.footer-logo,
.footerlogo {
  font: 700 clamp(75px, 12vw, 175px)/.9 var(--font-display);
  letter-spacing: -.1em;
}

.footer-logo span,
.footerlogo em {
  color: var(--lime);
  font-style: normal;
}

.footer p {
  color: #a1b2a7;
  max-width: 360px;
  line-height: 1.65;
  font-size: 15px;
}

.foot-links,
.footerlinks {
  display: flex;
  gap: 25px;
  font: 12px var(--font-mono);
  margin-top: 20px;
}

.footer-bottom,
.footend {
  border-top: 1px solid #415449;
  margin-top: 65px;
  padding-top: 23px;
  color: #899e90;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font: 10px var(--font-mono);
  letter-spacing: .06em;
}

.footergrid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1050px) {
  .container,
  .wrap {
    width: min(100% - 48px, 1440px);
  }

  .navlinks { gap: 16px; }
  .brand span { display: none; }
  .lead { grid-template-columns: 1fr 1fr; }
  .lead-art { min-height: 490px; }
  .lead-copy { padding: 35px; }
  .story-visual { height: 220px; }
  .manifesto { gap: 20px; }
}

@media (max-width: 750px) {
  .container,
  .wrap {
    width: calc(100% - 36px);
  }

  .topbar span:last-child,
  .top span:last-child {
    display: none;
  }

  .nav { height: 73px; }
  .nav-inner,
  .navinner { height: 72px; }
  .brand { font-size: 32px; }

  .navlinks {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 25px;
    flex-direction: column;
    align-items: start;
    border-bottom: 1px solid var(--border);
  }

  .navlinks.open { display: flex; }
  .hamburger,
  .menu { display: block; }
  .subscribe,
  .contact { display: none; }

  .masthead { padding-top: 36px; }
  .masthead-grid { grid-template-columns: 1fr; gap: 26px; }
  .masthead h1 { font-size: clamp(65px, 15vw, 110px); }
  .masthead-side { justify-self: start; max-width: 580px; }
  .masthead-side p { font-size: 17px; }

  .issue { gap: 10px; font-size: 9px; }
  .issue span:nth-child(2) { display: none; }

  .lead { display: flex; flex-direction: column; }
  .lead-art { min-height: 380px; }
  .lead-copy { min-height: 390px; }
  .lead h2 { font-size: 43px; }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-visual { height: 300px; }
  .stories-head { margin-top: 44px; }

  .manifesto {
    grid-template-columns: 1fr;
    margin-top: 65px;
  }
  .manifesto .big { font-size: 75px; }

  .upcoming { margin: 65px 0; }
  .upcoming h2 { font-size: 42px; }
  .upcoming-row { grid-template-columns: 34px 1fr 25px; }
  .upcoming-row .status { display: none; }

  .footer-top,
  .footergrid { flex-direction: column; }
  .footer-logo,
  .footerlogo { font-size: 90px; }
  .footer-bottom,
  .footend { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
