:root {
  --yellow: #FFC61A;
  --navy: #1A1A1A;
  --blue: #155299;
  --fuchsia: #D6218F;
  --bone: #F4F4F4;
  --grad: linear-gradient(90deg, var(--fuchsia), var(--blue));
  --fd: 'Space Grotesk', sans-serif;
  --fb: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--navy); font: 400 16px/1.7 var(--fb); }
::selection { background: var(--fuchsia); color: #fff; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 3px; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem max(5vw, 1rem);
  background: var(--blue);
  border-bottom: 5px solid var(--yellow);
}
header a { color: #fff; text-decoration: none; font-weight: 700; }
header a:hover, footer a:hover { color: var(--yellow); }
header .brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--yellow); font: 900 1.18rem/1 var(--fd); letter-spacing: .02em; }
header .brand img { width: 40px; height: 40px; object-fit: contain; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; font-size: .92rem; }
nav a:first-child { border-bottom: 3px solid var(--fuchsia); }

main { max-width: 1100px; margin: auto; padding: 3rem 5vw 5rem; }
h1, h2, h3 { font-family: var(--fd); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 900; letter-spacing: -.025em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); }
.intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 2.8rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--yellow);
  background-image: repeating-linear-gradient(-45deg, rgba(26,26,26,.045) 0 2px, transparent 2px 26px);
  border: 3px solid var(--navy);
  border-radius: 24px;
  box-shadow: 9px 9px 0 var(--blue);
}
.intro::after { content: ''; position: absolute; right: -55px; bottom: -105px; width: 220px; height: 220px; border: 24px solid var(--fuchsia); border-radius: 50%; opacity: .85; pointer-events: none; }
.intro h1 { max-width: 780px; margin: .75rem 0 1rem; }
.intro p { position: relative; max-width: 670px; margin: 0; font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 600; }
.eyebrow { display: inline-block; background: var(--blue); color: var(--yellow); border-radius: 999px; padding: .32rem .85rem; font-size: .8rem; font-weight: 800; }
.tag { display: inline-block; margin-top: .8rem; color: var(--fuchsia); font-size: .78rem; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 1.6rem; }
.card { background: #fff; border: 3px solid var(--navy); border-radius: 20px; padding: 1rem; box-shadow: 7px 7px 0 var(--yellow); }
.card a { color: inherit; text-decoration: none; }
.card a:hover h2 { color: var(--blue); }
.card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.card h2 { margin: .3rem 0; }
.card p { margin: .5rem 0; }
.card small, .byline { color: #555; }

.article, .comments { max-width: 760px; margin-inline: auto; }
.article { padding: clamp(1.2rem, 4vw, 3rem); background: #fff; border: 3px solid var(--navy); border-top: 13px solid var(--yellow); border-radius: 22px; box-shadow: 8px 8px 0 var(--blue); }
.article .back { display: block; margin-bottom: 1.4rem; font-weight: 700; }
.article h1 { margin: .5rem 0; }
.article .summary { font-size: 1.16rem; font-weight: 600; }
.article figure { margin: 2rem 0; }
.article figure img { width: 100%; height: auto; border-radius: 16px; }
.article figcaption { font-size: .85rem; color: #555; }
.article .body { font-size: 1.06rem; line-height: 1.8; }
.article .body p { margin: 1.2rem 0; }
.article .body h2, .article .body h3 { margin-top: 2rem; }
.sources { overflow-wrap: anywhere; }
.note { margin-top: 2rem; padding: 1rem; background: #fff2d1; border-left: 5px solid var(--yellow); }
.share { margin-top: 2rem; padding-top: 1.4rem; border-top: 2px solid var(--bone); }
.share a { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.25rem; background: var(--blue); color: #fff; border-radius: 999px; font: 700 .95rem var(--fd); text-decoration: none; }
.share a:hover { background: var(--fuchsia); }

.comments { margin-top: 3.3rem; padding: clamp(1.2rem, 4vw, 2rem); background: #fff; border: 3px solid var(--navy); border-radius: 22px; }
.comments h2 { margin: 0; padding-bottom: .6rem; border-bottom: 5px solid var(--blue); }
.comments ol { padding-left: 1.3rem; }
.comments li { padding: .7rem 0; border-bottom: 1px solid #ddd; }
.comments li p { margin: .2rem 0; overflow-wrap: anywhere; }
.empty-comments { padding: .85rem 1rem; background: var(--bone); border-radius: 10px; }
.comments form { display: grid; gap: .55rem; margin-top: 1.5rem; }
.comments label { font-weight: 700; }
.comments input, .comments textarea { width: 100%; padding: .8rem; border: 2px solid #777; border-radius: 10px; font: inherit; }
.comments .consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; font-weight: 400; }
.comments .consent input { width: auto; margin-top: .4rem; }
.comments .consent span { display: block; min-width: 0; }
.comments button { justify-self: start; padding: .8rem 1.4rem; border: 0; border-radius: 999px; background: var(--grad); color: #fff; cursor: pointer; font: 700 1rem var(--fd); }
.comments button:hover { filter: brightness(.9); }
.honey { position: absolute; left: -9999px; }
footer { padding: 2rem; background: var(--blue); color: #fff; text-align: center; }
footer a { color: var(--yellow); }

@media (max-width: 560px) {
  header { align-items: flex-start; flex-direction: column; }
  main { padding: 2rem 1.25rem 4rem; }
  .intro { margin-right: 7px; }
  .intro::after { width: 145px; height: 145px; right: -80px; bottom: -95px; border-width: 17px; }
  .article { margin-right: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
