@font-face {
  font-family: "STIX Two Text";
  src: url(/fonts/stix-roman.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "STIX Two Text";
  src: url(/fonts/stix-italic.woff2) format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #351a2b;
  --paper: #edccbe;
  --ink: #351a2b;
  --security: #f47a5c;
  --tech: #a9cde8;
  --world: #b4d99c;
  --margin: clamp(16px, 3vw, 32px);
  --pad: clamp(18px, 3.2vw, 44px);
  --small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --title: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --head: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font: 400 var(--body)/1.45 "STIX Two Text", "Times New Roman", Times, serif;
}
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--paper); color: var(--ground); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- the top ---- */
.top, main, #night { max-width: 1120px; margin: 0 auto; padding: 0 var(--margin); }
.top { padding-top: clamp(20px, 4vw, 48px); }
.date { font-size: var(--small); }
h1 {
  font-size: clamp(4.5rem, 2rem + 13vw, 11rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0.04em 0 0 -0.04em;
}
.lede { margin-top: clamp(14px, 2vw, 24px); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); line-height: 1.25; max-width: 30ch; }
#status { font-style: italic; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 2.4vw, 28px); }
.chip {
  padding: 0.5em 0.95em 0.55em;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--small);
  transition: transform 180ms var(--ease);
}
.chip:hover { transform: translateY(-3px); }
.chip:active { transform: translateY(1px); }

/* ---- folders ---- */
.f-security { --tone: var(--security); }
.f-tech { --tone: var(--tech); }
.f-world { --tone: var(--world); }
.chip, .sheet, .tab, .shut { background: var(--tone); }

.folder { margin-top: clamp(40px, 6vw, 72px); color: var(--ink); scroll-margin-top: 12px; }
summary { display: block; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.tab {
  display: inline-block;
  padding: 0.5em 2.2em 0.4em 1.2em;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 1.5em) 0, 100% 100%, 0 100%);
  transition: padding 200ms var(--ease);
}
.f-tech .tab { margin-left: 30%; padding-left: 2.2em; clip-path: polygon(1.5em 0, calc(100% - 1.5em) 0, 100% 100%, 0 100%); }
.f-world .tab { margin-left: 58%; padding-left: 2.2em; clip-path: polygon(1.5em 0, calc(100% - 1.5em) 0, 100% 100%, 0 100%); }
summary:hover .tab { padding-top: 0.75em; margin-top: -0.25em; }
.tab .n { font-weight: 400; margin-left: 0.3em; }
.shut { display: none; padding: 14px var(--pad) 16px; font-style: italic; }
.folder:not([open]) .shut { display: block; }
.sheet { padding: var(--pad); }

/* ---- stories ---- */
.pic { display: block; overflow: hidden; background: var(--ground); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
article:hover .pic img { transform: scale(1.045); }
article h3 { font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
article h3 a:hover, .meta a:hover, .cve a:hover { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.14em; }
article h3 a:visited { opacity: 0.62; }
.sum { margin-top: 0.4em; }
.meta { margin-top: 0.55em; font-size: var(--small); }
.new, .big { display: inline-block; margin-right: 0.6em; padding: 0.05em 0.5em 0.12em; background: var(--ink); color: var(--tone); font-weight: 600; }
.new[hidden] { display: none; }

.lead { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(16px, 2.4vw, 28px) var(--pad); align-items: end; }
.lead h3 { grid-column: 1 / -1; font-size: var(--head); line-height: 1.06; letter-spacing: -0.03em; font-weight: 400; max-width: 24em; }
.lead .pic { aspect-ratio: 16 / 9; }
.lead .sum { margin-top: 0; font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.35; }
.lead.bare .words { grid-column: 1 / -1; max-width: 34em; }

.rows { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px) var(--pad); margin-top: clamp(32px, 5vw, 56px); }
.row { display: grid; grid-template-columns: clamp(104px, 34%, 190px) 1fr; gap: 16px; align-items: start; }
.row .pic { aspect-ratio: 4 / 3; }
.row h3 { font-size: var(--title); line-height: 1.14; }
.row.bare { display: block; }
.none { font-style: italic; }

/* ---- the exploited list: the folder's dark sheet ---- */
.wanted { margin: clamp(32px, 5vw, 56px) calc(var(--pad) * -1) calc(var(--pad) * -1); padding: var(--pad); background: var(--ground); color: var(--tone); }
.wanted-h { font-size: var(--head); font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.kev { list-style: none; padding: 0; margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.4vw, 40px) var(--pad); }
.cve { font-size: var(--title); font-weight: 600; line-height: 1.16; letter-spacing: -0.01em; }
.cve a { font-variant-numeric: tabular-nums; }
.cve span { display: block; font-weight: 400; font-style: italic; }
.wanted .big { background: var(--tone); color: var(--ground); }

/* ---- the back of the card ---- */
.back {
  margin: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  padding: var(--pad);
  padding-top: calc(var(--pad) + 8px);
  background: var(--paper);
  color: var(--ink);
  border-top: 10px dotted var(--ground);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--pad);
}
.back h2 { font-size: var(--head); font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; }
.msg p { margin-top: 0.8em; max-width: 30em; }
.addr p { padding: 0.35em 0; }
.addr .credit { font-size: var(--small); margin-top: 1em; }
.stamp { float: right; width: 96px; height: 128px; object-fit: cover; margin: 0 0 12px 16px; border: 6px solid var(--paper); outline: 4px dotted var(--ground); outline-offset: -2px; transform: rotate(3deg); }
.back.done { background: var(--world); }

/* ---- night ---- */
#night { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 96px; }
#night[hidden], main[hidden] { display: none; }
#night-line { font-size: var(--head); line-height: 1.04; letter-spacing: -0.03em; }
#night p + p { margin-top: 0.5em; }
#night button {
  margin-top: 1.4em;
  padding: 0.6em 1.1em 0.7em;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
#night button:hover { transform: translateY(-2px); }
#night button:active { transform: translateY(1px); }

/* ---- arrival ---- */
.js .top > *, .js .rise { opacity: 0; transform: translateY(22px); }
.js .top.in > *, .js .rise.in { opacity: 1; transform: none; transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.top > :nth-child(2) { --i: 1; } .top > :nth-child(3) { --i: 2; } .top > :nth-child(4) { --i: 3; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .top > *, .js .rise { opacity: 1; transform: none; }
  * { transition: none !important; }
}

@media (max-width: 760px) {
  .lead, .rows, .kev, .back { grid-template-columns: 1fr; }
  .lead { gap: 16px; }
  .sheet { padding: 16px; }
  .wanted { margin: 32px -16px -16px; padding: 24px 16px; }
  .row { grid-template-columns: 1fr 112px; }
  .row .pic { order: 2; aspect-ratio: 1; }
  .f-tech .tab { margin-left: 14%; }
  .f-world .tab { margin-left: 44%; }
  .back { padding-inline: 16px; }
}
