/* ============================================================
   DFT ARCHIVE / BLOG FEED  (LYNX)
   Loaded on is_archive() || is_home(), after master.css.
   Fully scoped under .dft-arch so it cannot leak into the theme.
   Fonts (Akshar, DotGothic16, SF Pro Text) are self-hosted and
   loaded by master.css, so we only reference the families here.
   Token block mirrors blog.css; the two files never load together
   (archive vs single), so there is no duplication at runtime.
   ============================================================ */
.dft-arch {
  --dft-black: #0c0c0c;
  --dft-red: #ee312f;
  --dft-red-bright: #f31d1d;
  --dft-red-dark: #990909;
  --dft-ink: #0e0e0e;
  --dft-hair: rgba(238, 49, 47, .28);
  --dft-body-font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dft-display: "Akshar", sans-serif;
  --dft-mono: "DotGothic16", monospace;
  background: var(--dft-black);
  padding: 40px 0 80px;
}

.dft-arch-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media(min-width:1000px) {
  .dft-arch-inner {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

/* ===================== SIDEBAR ===================== */
.dft-arch-side {
  align-self: start
}

@media(min-width:1000px) {
  .dft-arch-side {
    position: sticky;
    top: 110px
  }
}

.dft-arch-brand {
  display: block;
  text-decoration: none;
  margin-bottom: 26px
}

.dft-arch-brand .mark {
  display: block;
  font-family: var(--dft-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .9;
  font-size: 30px;
  color: var(--dft-ink);
  text-shadow: -1px -1px 0 var(--dft-red), 1px -1px 0 var(--dft-red), -1px 1px 0 var(--dft-red), 1px 1px 0 var(--dft-red);
}

.dft-arch-brand .sub {
  display: block;
  font-family: var(--dft-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dft-red);
  margin-top: 8px
}

.dft-arch-channels h4 {
  font-family: var(--dft-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dft-red);
  margin: 0 0 14px;
}

.dft-arch-channels ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.dft-arch-channels li {
  margin: 0 0 4px
}

.dft-arch-channels a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, .62);
  font-family: var(--dft-body-font);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: .2s;
}

.dft-arch-channels a:hover {
  color: #fff;
  background: rgba(238, 49, 47, .08)
}

.dft-arch-channels a.is-active {
  color: var(--dft-red);
  border-left-color: var(--dft-red);
  background: rgba(238, 49, 47, .1)
}

.dft-arch-channels .ct {
  font-family: var(--dft-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  border: 1px solid var(--dft-hair);
  border-radius: 40px;
  padding: 1px 9px;
  flex: 0 0 auto;
}

.dft-arch-channels a.is-active .ct {
  color: var(--dft-red);
  border-color: var(--dft-red)
}

/* channels become a horizontal chip row on mobile */
@media(max-width:999px) {
  .dft-arch-channels ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
  }

  .dft-arch-channels li {
    margin: 0
  }

  .dft-arch-channels a {
    border-left: 0;
    border: 1px solid var(--dft-hair);
    border-radius: 50px;
    padding: 7px 14px
  }

  .dft-arch-channels a.is-active {
    border-color: var(--dft-red)
  }
}

/* ===================== MAIN HEAD ===================== */
.dft-arch-head {
  margin-bottom: 30px
}

.dft-arch-head .kicker {
  font-family: var(--dft-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dft-red);
  display: inline-block;
  margin-bottom: 12px;
}

.dft-arch-head h1 {
  font-family: var(--dft-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .98;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  color: var(--dft-ink);
  text-shadow: -1px -1px 0 var(--dft-red), 1px -1px 0 var(--dft-red), -1px 1px 0 var(--dft-red), 1px 1px 0 var(--dft-red), -2px -2px 0 var(--dft-red), 2px -2px 0 var(--dft-red), -2px 2px 0 var(--dft-red), 2px 2px 0 var(--dft-red);
}

.dft-arch-head .sub {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-family: var(--dft-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dft-red);
}

.dft-arch-head .sub .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dft-red);
  box-shadow: 0 0 8px var(--dft-red)
}

.dft-arch-head .desc {
  color: rgba(255, 255, 255, .6);
  font-family: var(--dft-body-font);
  font-size: 16px;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 62ch
}

/* shared media panel (hero + card) */
.dft-arch-hero .media,
.dft-arch-card .media {
  position: relative;
  overflow: hidden;
  background: var(--dft-black);
}

.dft-arch-hero .media img,
.dft-arch-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.14) contrast(1.05);
  transition: transform .4s ease;
}

.dft-arch-hero .media.is-empty,
.dft-arch-card .media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 30% 10%, rgba(238, 49, 47, .35), transparent 60%), linear-gradient(160deg, #161616, #0c0c0c);
}

.dft-arch-hero .media .glyph,
.dft-arch-card .media .glyph {
  font-family: var(--dft-display);
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(238, 49, 47, .55);
}

.dft-arch-hero .media .glyph {
  font-size: 64px
}

.dft-arch-card .media .glyph {
  font-size: 38px
}

/* ===================== HERO ===================== */
.dft-arch-hero {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  border: 2px solid var(--dft-red);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  background: rgba(238, 49, 47, .04);
  transition: .25s;
}

@media(min-width:720px) {
  .dft-arch-hero {
    grid-template-columns: 1.15fr 1fr
  }
}

.dft-arch-hero:hover {
  background: rgba(238, 49, 47, .1);
  box-shadow: 0 0 30px rgba(238, 49, 47, .18)
}

.dft-arch-hero:hover .media img {
  transform: scale(1.04)
}

.dft-arch-hero .media {
  aspect-ratio: 16/10;
  min-height: 220px
}

.dft-arch-hero .media .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--dft-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: #0c0c0c;
  background: var(--dft-red);
  padding: 5px 12px;
  border-radius: 40px;
}

.dft-arch-hero .body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.dft-arch-hero .kicker {
  font-family: var(--dft-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dft-red);
  margin-bottom: 12px
}

.dft-arch-hero .t {
  font-family: var(--dft-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  color: #fff;
}

.dft-arch-hero:hover .t {
  color: var(--dft-red)
}

.dft-arch-hero .ex {
  font-family: var(--dft-body-font);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  margin: 14px 0 0
}

.dft-arch-hero .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-family: var(--dft-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.dft-arch-hero .meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dft-red)
}

.dft-arch-hero .meta .go {
  margin-left: auto;
  color: var(--dft-red);
  font-family: var(--dft-display);
  font-weight: 700;
  letter-spacing: 1px
}

/* ===================== GRID + CARDS ===================== */
.dft-arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px
}

@media(min-width:560px) {
  .dft-arch-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(min-width:1180px) {
  .dft-arch-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.dft-arch-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 2px solid var(--dft-red);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(238, 49, 47, .04);
  transition: .25s;
}

.dft-arch-card:hover {
  background: rgba(238, 49, 47, .1);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(238, 49, 47, .16)
}

.dft-arch-card .media {
  aspect-ratio: 16/10;
  border-bottom: 2px solid var(--dft-red)
}

.dft-arch-card:hover .media img {
  transform: scale(1.05)
}

.dft-arch-card .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.dft-arch-card .kicker {
  font-family: var(--dft-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dft-red);
  margin-bottom: 9px
}

.dft-arch-card .t {
  font-family: var(--dft-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.06;
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #fff;
}

.dft-arch-card:hover .t {
  color: var(--dft-red)
}

.dft-arch-card .ex {
  font-family: var(--dft-body-font);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
  margin: 10px 0 0
}

.dft-arch-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--dft-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.dft-arch-card .meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dft-red)
}

/* ===================== PAGINATION ===================== */
.dft-arch-pagination {
  margin-top: 48px
}

.dft-arch-pagination .pagination,
.dft-arch-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.dft-arch-pagination .page-numbers {
  font-family: var(--dft-mono);
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  border: 1px solid var(--dft-hair);
  border-radius: 8px;
  padding: 9px 15px;
  min-width: 44px;
  text-align: center;
  transition: .2s;
}

.dft-arch-pagination a.page-numbers:hover {
  color: #fff;
  border-color: var(--dft-red);
  background: rgba(238, 49, 47, .1)
}

.dft-arch-pagination .page-numbers.current {
  color: #0c0c0c;
  background: var(--dft-red);
  border-color: var(--dft-red);
  font-weight: 700
}

.dft-arch-pagination .page-numbers.dots {
  border: 0;
  background: none
}

/* ===================== EMPTY STATE ===================== */
.dft-arch-empty {
  border: 1px dashed var(--dft-hair);
  border-radius: 16px;
  padding: 56px 28px;
  text-align: center;
}

.dft-arch-empty .kicker {
  font-family: var(--dft-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dft-red);
  display: inline-block;
  margin-bottom: 14px
}

.dft-arch-empty h2 {
  font-family: var(--dft-display);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 10px
}

.dft-arch-empty p {
  color: rgba(255, 255, 255, .6);
  font-family: var(--dft-body-font);
  margin: 0 0 22px
}

.dft-arch-empty a {
  display: inline-block;
  background: var(--dft-red);
  color: #0c0c0c;
  text-decoration: none;
  font-family: var(--dft-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 32px;
  border-radius: 50px;
  transition: .2s;
}

.dft-arch-empty a:hover {
  background: #fff
}

/* focus states */
.dft-arch a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}