@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #faf6f0;
  --deep-paper: #f1ebe1;
  --ink: #171310;
  --soft: #4c443d;
  --faint: #8a7f74;
  --ember: #d03a0d;
  --ember-deep: #a92e08;
  --line: #ddd3c6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 3%, rgba(208, 58, 13, .08), transparent 23rem),
    var(--paper);
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
}

.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: clamp(36px, 7vw, 112px);
  min-height: 540px;
  padding: clamp(46px, 7vw, 94px) clamp(22px, 6vw, 92px) clamp(42px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 66%, rgba(208, 58, 13, .04) 66%),
    var(--paper);
}

.masthead { max-width: 920px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--ember);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.spark {
  width: 7px;
  height: 7px;
  background: var(--ember);
  transform: rotate(45deg);
}

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(64px, 10.2vw, 154px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .78;
}

.intro {
  max-width: 690px;
  margin: 36px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.55;
}

.delivery { display: grid; gap: 18px; }

.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.summary strong {
  color: var(--ember);
  font-family: "Fraunces", Georgia, serif;
  font-size: 88px;
  letter-spacing: -.06em;
  line-height: .75;
}

.summary span {
  padding-bottom: 2px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--ember);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.download:hover { background: var(--ember-deep); transform: translateY(-2px); }

main { padding: 34px clamp(22px, 6vw, 92px) 100px; }

.filters {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -8px 34px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(10px);
}

button,
input,
textarea { font: inherit; }

button { cursor: pointer; }

.filter {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(20px, 2.5vw, 34px);
}

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  background: rgba(255, 255, 255, .32);
}

.video-shell {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  overflow: hidden;
  background: var(--ink);
}

video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: var(--ink);
}

.body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 22px 0 6px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.meta {
  margin: 0 0 7px;
  color: var(--ember);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 2.5vw, 39px);
  letter-spacing: -.035em;
  line-height: 1;
}

.ratio {
  flex: 0 0 auto;
  height: fit-content;
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
}

.description {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 2px;
}

.vote,
.comment-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.vote {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
}

.vote:hover { border-color: var(--ink); }
.vote.up:hover { border-color: var(--ember); color: var(--ember); }

.comment-form {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
  font-size: 14px;
}

input:focus,
textarea:focus { border-color: var(--ember); outline: 1px solid var(--ember); }
textarea { resize: vertical; }

.comment-form button {
  background: var(--ink);
  color: white;
}

.comment-form button:hover { background: var(--ember); border-color: var(--ember); }

.comments { display: grid; gap: 8px; }

.comment {
  padding: 12px 14px;
  border-left: 3px solid var(--ember);
  background: var(--deep-paper);
}

.comment strong { display: block; margin-bottom: 4px; font-size: 13px; }
.comment p { margin: 0; color: var(--soft); font-size: 13px; line-height: 1.45; }

@media (max-width: 820px) {
  .top {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .delivery { max-width: 520px; }
}

@media (max-width: 520px) {
  h1 { font-size: 62px; }
  .top { padding-top: 44px; }
  .summary strong { font-size: 70px; }
  .video-shell { min-height: 220px; }
}

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