/* Sophos | AI Threat Brief — brand tokens from TOKENS.md / DESIGN.md */

:root {
  --dark-blue: #001A47;
  --sophos-blue: #2006F7;
  --cyber-blue: #00EDFF;
  --cyber-green: #00F2B3;
  --light-neutral: #EDF2F9;
  --white: #FFFFFF;
  --light-blue-grey: #BBCFDE;
  --slate: #6A889B;
  --dark-slate: #223E4C;
  --deep-indigo: #10037C;

  --font-body: "Zalando Sans", system-ui, sans-serif;
  --font-display: "Zalando Sans Expanded", "Zalando Sans", system-ui, sans-serif;
  --font-subhead: "Zalando Sans SemiExpanded", "Zalando Sans", system-ui, sans-serif;

  --container-max: 1160px;
  --gutter: 32px;
  --radius-sm: 6px;
  --radius-md: 10px;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --motion-fast: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark-blue);
  background: var(--light-neutral);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sophos-blue);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease);
}

a:hover {
  color: var(--deep-indigo);
}

a:focus-visible {
  outline: 2px solid var(--sophos-blue);
  outline-offset: 3px;
}

/* Hero */
.hero {
  background: var(--dark-blue);
  color: var(--white);
  padding: var(--space-8) 0 var(--space-12);
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1 1 auto;
  min-width: 0;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-subhead);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-top: 0.15rem;
}

.hero__nav a {
  color: var(--light-blue-grey);
  transition: color var(--motion-fast) var(--ease);
}

.hero__nav a:hover {
  color: var(--white);
}

.hero__nav a:focus-visible {
  outline: 2px solid var(--cyber-blue);
  outline-offset: 3px;
}

.hero__nav-sep {
  color: var(--slate);
  user-select: none;
}

.hero__body {
  display: block;
  width: 100%;
}

.hero__logo-link {
  display: inline-block;
  padding: 0.55em 0.55em 0.55em 0;
  line-height: 0;
}

.hero__logo {
  height: 22px;
  width: auto;
}

.hero__product {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.hero__divider {
  color: var(--cyber-blue);
  font-weight: 400;
  opacity: 0.85;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  min-width: 0;
}

.hero__eyebrow {
  color: var(--cyber-blue);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}

.hero__subhead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--light-blue-grey);
  margin: 0;
}

.hero__subhead strong {
  color: var(--white);
  font-weight: 600;
}

.hero__date {
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--cyber-blue);
  margin: 0;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease);
}

.btn-primary {
  background: var(--sophos-blue);
  color: var(--white);
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--deep-indigo);
  color: var(--white);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--cyber-blue);
  outline-offset: 3px;
}

/* Typography utilities */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--slate);
}

/* Main content */
.main {
  padding: var(--space-12) 0 var(--space-16);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Story cards — editorial single column */
.stories {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.story-card {
  background: var(--white);
  border: 1px solid var(--light-blue-grey);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.story-card__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--dark-blue);
  margin: 0;
}

.story-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.story-card__body p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dark-slate);
  margin: 0;
}

.story-card__body strong {
  font-weight: 600;
  color: var(--dark-blue);
}

.story-card__action {
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--light-neutral);
  border-radius: var(--radius-sm);
}

.story-card__action-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sophos-blue);
  margin: 0 0 var(--space-2);
}

.story-card__action p {
  font-family: var(--font-subhead);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dark-blue);
  margin: 0;
}

.story-card__action code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
  background: var(--white);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.story-card__source {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--slate);
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--light-neutral);
}

.story-card__source strong {
  font-weight: 600;
  color: var(--dark-slate);
}

.story-card__source a,
.footer__sources a {
  color: inherit;
  text-decoration: none;
}

.story-card__source a:hover,
.footer__sources a:hover {
  color: inherit;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: var(--space-10) 0 var(--space-8);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-subhead);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer__nav a {
  color: var(--light-blue-grey);
  transition: color var(--motion-fast) var(--ease);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__nav-sep {
  color: var(--slate);
  user-select: none;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__logo {
  height: 18px;
  width: auto;
  opacity: 0.95;
}

.footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-blue-grey);
  margin: 0;
}

.footer__about {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 68ch;
}

.footer__disclaimer-lead {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
}

.footer__bullets {
  margin: 0;
  padding: 0 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__bullets li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--light-blue-grey);
}

.footer__sources {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--light-blue-grey);
  margin: 0;
  max-width: 72ch;
}

.footer__sources strong {
  font-weight: 600;
  color: var(--white);
}

/* Responsive */
@media (min-width: 769px) {
  .hero__nav {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding: var(--space-6) 0 var(--space-10);
  }

  .hero__inner {
    gap: var(--space-8);
  }

  .hero__header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
  }

  .hero__nav {
    padding-top: 0;
  }

  .main {
    padding: var(--space-8) 0 var(--space-12);
  }

  .story-card {
    padding: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
