/* =========================================================================
   Desk front pages. Loaded after style.css, which supplies the tokens,
   topbar, nav, section heads and footer. Nothing in here is cyber-specific,
   so the other four desks reuse this file as-is.
   ========================================================================= */


/* Same opt-out as style.css: these are furniture, not copy. */
.lead__source,
.story__source,
.rest__head,
.rest__source,
.deskhead__role,
.deskempty__links a {
  font-family: var(--sans);
}

/* ------------------------------------------------------- desk masthead */

.deskhead {
  padding: clamp(24px, 3.4vw, 40px) 0 clamp(22px, 3vw, 34px);
  background: var(--paper);
  text-align: center;
}

.deskhead__parent {
  display: inline-block;
  text-decoration: none;
}
.deskhead__parent img {
  width: clamp(120px, 15vw, 168px);
  height: auto;
  margin-inline: auto;
}

.deskhead__rule {
  margin: clamp(16px, 2.2vw, 24px) 0 clamp(18px, 2.4vw, 26px);
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 5px;
  position: relative;
}
.deskhead__rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 86px;
  height: 4px;
  background: var(--red);
  transform: translateX(-50%);
}

.deskhead__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.deskhead__blurb {
  margin: clamp(14px, 1.8vw, 20px) auto 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.62;
  color: #3d3d3d;
}

.deskhead__domain {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--red);
}

/* current desk marker in the shared nav */
.nav__list a.is-current { color: #fff; }
.nav__list a.is-current::after { transform: scaleX(1); }

/* ---------------------------------------------------------- desk body */

.desk { padding: clamp(44px, 5.5vw, 76px) 0 clamp(40px, 5vw, 68px); }

/* ---- lead story ---- */

.lead {
  display: block;
  padding: clamp(26px, 3vw, 40px) 0 clamp(28px, 3.2vw, 42px);
  border-bottom: 3px solid var(--ink);
  text-decoration: none;
  color: inherit;
}
.lead:hover .lead__title { color: var(--red); }

.lead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.lead__source {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.lead__time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.lead__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 20ch;
  transition: color 0.18s ease;
}

/* ---- secondary grid ---- */

.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}

.story {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px) clamp(18px, 1.8vw, 26px);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.story:hover { background: var(--paper-warm); }
.story:hover .story__title { color: var(--red); }

.story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.story__source {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.story__time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.story__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.75vw, 23px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  transition: color 0.18s ease;
}

@media (max-width: 900px) {
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stories { grid-template-columns: 1fr; }
}

/* ---- the rest, as a dense wire list ---- */

.rest { margin-top: clamp(34px, 4vw, 52px); }

.rest__head {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 3px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rest__item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.16s ease, padding 0.16s ease;
}
.rest__item:hover { background: var(--paper-warm); padding-inline: 12px 4px; }
.rest__item:hover .rest__title { color: var(--red); }

.rest__time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.rest__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  transition: color 0.18s ease;
}

.rest__source {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rest__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .rest__time { order: 1; }
  .rest__title { order: 2; }
  .rest__source { order: 3; }
}

/* ---- empty state ---- */

.deskempty {
  padding: clamp(38px, 5vw, 68px) clamp(24px, 4vw, 52px);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--red);
  background: var(--paper-warm);
  text-align: center;
}
.deskempty__head {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
}
.deskempty__note {
  margin: 14px auto 0;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: #4a4a4a;
}
.deskempty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.deskempty__links a {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.deskempty__links a:hover { background: var(--ink); color: #fff; }

/* ----------------------------------------------------------- desk about */

.deskabout {
  padding: clamp(46px, 5.5vw, 78px) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}

.deskabout__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.deskabout__grid article {
  padding-top: 20px;
  border-top: 3px solid var(--ink);
}
.deskabout__grid p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.66;
  color: #3d3d3d;
}

.deskabout__head {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: -0.018em;
}

@media (max-width: 880px) {
  .deskabout__grid { grid-template-columns: 1fr; }
}
