:root {
  --ink: #14121b;
  --paper: #f7f2e6;
  --paper-2: #efe7d4;
  --red: #e8382f;
  --yellow: #ffcc29;
  --blue: #2b4c9b;
  --muted: #6b6558;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

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

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}

.logo b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 20px;
  transform: rotate(-4deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.nav a { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 14px;
  transition: transform .12s, box-shadow .12s;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }

/* ---------- hero ---------- */
.hero {
  padding: 52px 0 44px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

h1, h2, h3 {
  font-family: "Arial Black", "Segoe UI Black", Impact, sans-serif;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.01em;
  margin: 0;
}

h1 { font-size: clamp(38px, 6.4vw, 74px); margin: 18px 0 20px; }
h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 2px var(--ink); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 20px; line-height: 1.1; }

.lede { font-size: clamp(17px, 2vw, 20px); max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero__art { position: relative; }

/* ---------- covers ---------- */
.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

[hidden] { display: none !important; }

/* ---------- sections ---------- */
section { padding: 46px 0; }

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.head p { margin: 6px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; }

.card {
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--link { text-decoration: none; transition: transform .12s, box-shadow .12s; }
.card--link:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }

.card .meta { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.price { margin-top: auto; font-weight: 800; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; }

/* ---------- articles ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }

.post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.post p { margin: 0; color: var(--muted); font-size: 15px; }
.post .date { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 800; }

/* ---------- newsletter ---------- */
.subscribe {
  border: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--red);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.subscribe p { margin: 8px 0 0; color: #cfc7b6; }

/* ---------- article page ---------- */
.article { max-width: 720px; margin-inline: auto; padding: 44px 0 20px; }
.article h1 { font-size: clamp(30px, 4.6vw, 52px); }
.article .lead { font-size: 21px; color: #3c3730; }
.article h2 { font-size: 26px; margin: 34px 0 12px; }
.article p { margin: 0 0 18px; }

.article figure { margin: 28px 0; }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.pull {
  border-left: 8px solid var(--red);
  padding: 6px 0 6px 20px;
  margin: 28px 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 12px 0;
  margin: 22px 0 30px;
  font-size: 14px;
  color: var(--muted);
}

.avatar { width: 42px; height: 42px; border: 3px solid var(--ink); background: var(--blue); display: grid; place-items: center; color: #fff; font-weight: 800; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  border: 3px solid var(--ink);
  background: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  font-family: inherit;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- footer ---------- */
footer { border-top: 4px solid var(--ink); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; border-bottom: 2px solid transparent; }
.foot a:hover { border-bottom-color: var(--red); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
  .hero__art { max-width: 340px; }
  .top__in { flex-wrap: wrap; gap: 12px; padding-block: 12px; min-height: 0; }
  .nav { order: 3; width: 100%; margin-left: 0; }
}

@media (prefers-color-scheme: dark) {
  body { background: #0f0d14; color: var(--paper); }
  .top { background: #0f0d14; }
  .card, .chip { background: #191621; }
  .card .meta, .post p, .foot { color: #a49c8b; }
  .lede .muted { color: #a49c8b; }
}
