/* Modern developer-journal theme */

:root {
  --paper: #f6f8fc;
  --paper-deep: #eef2f8;
  --paper-soft: #ffffff;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --red: #315cff;
  --red-deep: #2246d8;
  --line: rgba(16, 24, 40, 0.1);
  --line-strong: rgba(16, 24, 40, 0.22);
  --card: #ffffff;
  --card-strong: #f8faff;
  --shadow: 0 24px 70px -42px rgba(16, 24, 40, 0.38);
  --contact-bg: #0b1020;
  --contact-fg: #f8faff;
  --contact-muted: rgba(248, 250, 255, 0.62);
  --contact-line: rgba(248, 250, 255, 0.14);
  --header-bg: rgba(255, 255, 255, 0.86);
  --font-sans: "Inter", "Segoe UI Variable", "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-serif: var(--font-sans);
  --container: 1180px;
}

[data-theme="dark"] {
  --paper: #0b0f19;
  --paper-deep: #111827;
  --paper-soft: #141c2b;
  --ink: #f2f5fb;
  --ink-soft: #cbd5e1;
  --muted: #93a0b4;
  --red: #7c9cff;
  --red-deep: #a9bcff;
  --line: rgba(242, 245, 251, 0.1);
  --line-strong: rgba(242, 245, 251, 0.22);
  --card: #111827;
  --card-strong: #182235;
  --shadow: 0 30px 80px -42px rgba(0, 0, 0, 0.9);
  --contact-bg: #060a12;
  --contact-fg: #f8faff;
  --contact-muted: rgba(248, 250, 255, 0.62);
  --contact-line: rgba(248, 250, 255, 0.14);
  --header-bg: rgba(11, 15, 25, 0.86);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

.grain,
.hero::before,
.hero::after,
.hero-visual::after,
.wave-band,
.contact-orbit {
  display: none !important;
}

body.menu-open {
  background: var(--paper);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.header-inner {
  gap: 24px;
}

.brand-mark {
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 13%, transparent);
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-sub {
  color: var(--muted);
}

.desktop-nav {
  gap: clamp(18px, 2.4vw, 32px);
}

.desktop-nav a {
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.desktop-nav a span {
  color: var(--muted);
  font-size: 7px;
}

.desktop-nav a::after {
  bottom: 4px;
  left: 14px;
  height: 2px;
  background: var(--red);
}

.desktop-nav a.is-active {
  color: var(--ink);
}

.clock {
  font-size: 9px;
}

.theme-toggle,
.layout-toggle,
.menu-toggle {
  width: 38px;
  height: 38px;
  background: var(--paper-soft);
  border-color: var(--line);
}

.theme-toggle:hover,
.layout-toggle:hover,
.menu-toggle:hover {
  color: var(--red);
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 7%, var(--paper-soft));
}

.hero {
  min-height: auto;
  padding-top: calc(var(--header-height) + 88px);
  padding-bottom: 102px;
  background:
    radial-gradient(circle at 82% 34%, color-mix(in srgb, var(--red) 11%, transparent), transparent 36%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.13fr) minmax(330px, 0.62fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 24px;
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.live-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 12%, transparent);
}

.hero-title {
  max-width: 820px;
  font-family: var(--font-sans);
  font-size: clamp(58px, 6.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-title .accent {
  color: var(--red);
}

.hero-title .title-tail::before {
  display: none;
}

.hero-lead {
  max-width: 610px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 36px;
  gap: 22px;
}

.button,
.mini-button {
  min-height: 48px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.button:hover,
.mini-button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.text-link {
  color: var(--ink-soft);
  font-size: 13px;
}

.text-link-line {
  background: var(--line-strong);
}

.hero-meta {
  margin-top: 48px;
  color: var(--muted);
  font-size: 9px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 34px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--red) 12%, var(--paper-soft)), var(--paper-soft) 62%);
  border: 1px solid var(--line);
  border-radius: 30px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--red) 46%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--red) 7%, transparent),
    0 0 0 18px color-mix(in srgb, var(--red) 4%, transparent);
  pointer-events: none;
}

.radar {
  display: none !important;
}

.station-card {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(100%, 340px);
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: none;
}

.hero-visual:hover .station-card {
  transform: translateY(-4px);
}

.station-card::before {
  width: 44px;
  height: 2px;
  background: var(--red);
}

.station-card-head,
.station-role,
.station-list dt,
.station-list dd {
  color: var(--muted);
}

.station-status {
  color: var(--red);
}

.station-status i,
.station-qth-button:hover,
.station-qth-button.is-copied {
  background: var(--red);
}

.station-status i {
  width: 6px;
  height: 6px;
}

.station-avatar {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 10%, transparent);
}

.station-callsign {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.station-qth-button {
  border-radius: 6px;
}

.ticker {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.ticker-item {
  padding: 15px 20px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.ticker-item::after {
  width: 4px;
  height: 4px;
  background: var(--red);
}

.section {
  background: var(--paper);
  background-image: none;
  padding-top: clamp(74px, 8vw, 112px);
  padding-bottom: clamp(74px, 8vw, 112px);
}

.log-section,
.now-section {
  background: var(--paper-deep);
}

.section-head {
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.section-title {
  max-width: 900px;
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-intro {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card,
.work-card.is-featured,
.work-card.is-half {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 42px -32px rgba(16, 24, 40, 0.24);
}

.work-card:hover {
  background: var(--card);
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
  transform: translateY(-5px);
}

.work-visual,
.work-media,
.is-featured .work-media {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.work-media img,
.is-featured .work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-media::after {
  background: linear-gradient(180deg, transparent 68%, rgba(9, 14, 28, 0.18));
}

.work-body,
.is-featured .work-body {
  justify-content: flex-start;
  padding: 30px;
}

.work-index {
  margin-bottom: 26px;
  color: var(--red);
  font-size: 8px;
}

.work-title,
.is-featured .work-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.work-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.work-description {
  max-width: 620px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.work-tags span {
  border-color: var(--line);
  border-radius: 999px;
}

.work-meta {
  margin-top: 28px;
  color: var(--muted);
}

.poster-mini {
  inset: 22px;
  border-radius: 16px;
}

.work-media-hint {
  border-radius: 999px;
  background: rgba(10, 16, 34, 0.74);
}

.log-list {
  display: grid;
  gap: 16px;
  border: 0;
}

.log-entry {
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 30px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.log-entry::before {
  display: none;
}

.log-date {
  color: var(--red);
  padding-top: 0;
}

.log-main h3 {
  font-family: var(--font-sans);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.log-main p {
  color: var(--muted);
}

.log-tags span {
  color: var(--muted);
}

.log-action {
  align-self: center;
  color: var(--red);
  border-color: var(--line);
  border-radius: 999px;
}

.qsl-callout {
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 30px;
  margin-top: 28px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.qsl-callout::after {
  display: none;
}

.qsl-callout-card {
  width: 190px;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.qsl-callout h3 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.qsl-callout-copy > #qslText,
.qsl-qth,
.qsl-link {
  color: var(--muted);
}

.qsl-qth-label {
  color: var(--red);
}

.qsl-qth-value {
  color: var(--ink);
}

.station-qth-button {
  color: var(--muted);
}

.now-grid {
  gap: 20px;
}

.now-card {
  min-height: 280px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.now-card:nth-child(1) {
  background: color-mix(in srgb, var(--red) 5%, var(--card));
}

.now-card:nth-child(2) {
  background: color-mix(in srgb, #00a88f 6%, var(--card));
}

.now-card:nth-child(3) {
  background: color-mix(in srgb, #f59e0b 6%, var(--card));
}

.now-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.now-card::after {
  opacity: 0.22;
  font-family: var(--font-sans);
}

.now-card h3 {
  font-family: var(--font-sans);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.now-card li {
  color: var(--ink-soft);
}

.contact-section {
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
  background:
    radial-gradient(circle at 82% 12%, rgba(49, 92, 255, 0.26), transparent 35%),
    var(--contact-bg);
}

.contact-section .section-kicker {
  color: #8ea6ff;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 800;
  letter-spacing: -0.065em;
}

.contact-73 {
  display: none;
}

.contact-heading-row {
  padding-bottom: clamp(34px, 4vw, 54px);
}

.contact-grid {
  padding-top: 32px;
  gap: clamp(38px, 6vw, 80px);
}

.contact-copy > p:first-child {
  color: var(--contact-muted);
  font-size: 15px;
}

.copy-button {
  min-height: 44px;
  border-radius: 10px;
}

.contact-link {
  padding: 18px 0;
}

.contact-link-label {
  color: var(--contact-muted);
}

.contact-link-value {
  font-family: var(--font-sans);
  font-weight: 650;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-note {
  color: var(--muted);
}

.qth-lightbox,
.floor-plan,
.field-notes,
.about-section {
  display: none;
}

.station-enlarged {
  border-radius: 24px;
}

.station-enlarged-callsign {
  font-family: var(--font-sans);
}

.lightbox {
  background: var(--paper);
}

.lightbox-stage {
  background-color: var(--paper-deep);
  background-image: none;
}

.lightbox-kicker {
  color: var(--red);
}

.lightbox-close,
.lightbox-nav {
  border-radius: 10px;
}

.moments-hero {
  padding-top: calc(var(--header-height) + 82px);
  padding-bottom: 78px;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--red) 10%, transparent), transparent 34%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.moments-hero::before,
.moments-hero::after {
  display: none;
}

.moments-title,
.moments-lead {
  font-family: var(--font-sans);
}

.moments-title {
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.moments-lead {
  color: var(--muted);
}

.moments-now {
  padding: 24px;
  border-radius: 22px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.moments-now-time {
  font-family: var(--font-sans);
  font-size: 58px;
  font-weight: 750;
}

.moments-now-status p {
  font-family: var(--font-sans);
  font-weight: 700;
}

.moments-section {
  background: var(--paper-deep);
  padding-top: 72px;
  padding-bottom: 84px;
}

.moment-filter-bar {
  padding: 16px 0;
  border-color: var(--line);
}

.moment-filter {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--line);
  border-radius: 999px;
  font-size: 9px;
}

.moment-filter:hover {
  border-color: var(--red);
  color: var(--red);
}

.moment-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.moment-list {
  display: grid;
  gap: 14px;
  border: 0;
}

.moment-entry {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.moment-entry::before {
  display: none;
}

.moment-time {
  color: var(--red);
}

.moment-tags span {
  color: var(--muted);
}

.moment-body p {
  color: var(--ink-soft);
}

.moment-photo {
  border-radius: 14px;
}

.moment-link {
  color: var(--red);
}

.moments-contact-row {
  padding-top: 42px;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  }

  .hero-title {
    font-size: clamp(54px, 7.2vw, 78px);
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: calc(var(--header-height) + 56px);
    padding-bottom: 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 340px;
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .qsl-callout {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .qsl-callout-actions {
    grid-column: 1 / -1;
  }

  .moments-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .moments-now {
    justify-self: stretch;
    max-width: none;
  }

  .moment-entry {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    gap: 14px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 44px);
    padding-bottom: 58px;
  }

  .hero-title {
    font-size: clamp(46px, 13vw, 64px);
    line-height: 1.01;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-meta {
    margin-top: 34px;
  }

  .hero-visual {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
  }

  .station-card {
    width: 100%;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-title {
    font-size: clamp(34px, 9vw, 46px);
  }

  .work-body,
  .is-featured .work-body {
    padding: 24px;
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .log-action {
    grid-column: 1;
    justify-self: start;
  }

  .qsl-callout {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .qsl-callout-card {
    width: min(100%, 210px);
  }

  .qsl-callout-actions {
    grid-column: auto;
  }

  .now-card {
    min-height: 240px;
    padding: 24px;
  }

  .contact-title {
    font-size: clamp(50px, 15vw, 72px);
  }

  .moments-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 50px;
  }

  .moments-title {
    font-size: clamp(44px, 12.8vw, 64px);
  }

  .moments-section {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .moment-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .moment-time {
    flex-direction: row;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 44px;
  }

  .header-tools {
    gap: 5px;
  }
}

