/*
  WY6Y.NET — site stylesheet
  Built on the WY6Y Cyber Fleet design tokens (source: ~/wy6y-design-system/tokens.css,
  extracted from the WX weather app, wx.wy6y.net). Deep black ground, one monospace
  stack, thin cyan hairlines with a soft glow, acid colors reserved for meaning.
*/

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&display=swap');

:root {
  --wx-bg: #050505;
  --wx-card-bg: #0a0a0f;
  --wx-text: #c0c0c0;

  --wx-cyan: #00f0ff;
  --wx-green: #00ff9f;
  --wx-magenta: #ff00aa;
  --wx-yellow: #ffff00;
  --wx-danger: #ff3366;

  --wx-font: "Share Tech Mono", "VT323", ui-monospace, monospace;
  --wx-font-display: "VT323", monospace;

  --wx-radius: 2px;
  --wx-grid-size: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wx-bg);
  color: var(--wx-text);
  font-family: var(--wx-font);
  font-size: 14px;
  line-height: 1.7;
  background-image:
    linear-gradient(rgba(0,240,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.06) 1px, transparent 1px);
  background-size: var(--wx-grid-size) var(--wx-grid-size);
}

a { color: var(--wx-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.scanline-sweep {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(180deg, transparent 0%, rgba(0,240,255,.05) 2%, transparent 4%);
  background-size: 100% 260%;
  animation: scanSweep 9s linear infinite;
}
@keyframes scanSweep {
  from { background-position: 0 -160%; }
  to { background-position: 0 100%; }
}

.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---- nav ---- */
.navbar {
  border-bottom: 1px solid rgba(0,240,255,.3);
  box-shadow: 0 0 12px rgba(0,240,255,.1);
  background: rgba(5,5,5,.9);
  backdrop-filter: blur(2px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: var(--wx-font-display);
  letter-spacing: 4px;
  font-size: 22px;
  color: var(--wx-cyan);
  text-shadow: 0 0 8px var(--wx-cyan);
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  color: var(--wx-text);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
  transition: opacity .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--wx-green);
  opacity: 1;
  text-decoration: none;
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  animation: heroFadeIn .6s ease both;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(0,240,255,.35);
  box-shadow: 0 0 12px rgba(0,240,255,.35);
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { position: relative; z-index: 1; }
.on-air-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 22px; }
.on-air-label { font-size: 10px; letter-spacing: 2px; color: var(--wx-green); font-weight: 700; text-transform: uppercase; }
.cyber-title {
  font-family: var(--wx-font-display);
  letter-spacing: 6px;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  color: var(--wx-cyan);
  text-shadow: 0 0 10px var(--wx-cyan);
  margin: 0 0 8px;
  line-height: 1;
}
.hero .hud-label { font-size: 12px; letter-spacing: 3px; opacity: .65; margin-bottom: 22px; }
.hero .body-copy { max-width: 62ch; font-size: 14.5px; }

/* ---- section chrome ---- */
.section { margin: 52px 0; }
.section-title {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .75;
  border-bottom: 1px solid rgba(0,240,255,.25);
  padding-bottom: 4px;
  display: inline-block;
  margin: 0 0 20px;
  color: var(--wx-cyan);
}
.body-copy { font-size: 14px; line-height: 1.75; max-width: 66ch; }

/* ---- panels ---- */
.hud-border {
  border: 1px solid rgba(0,240,255,.3);
  box-shadow: 0 0 0 1px rgba(0,240,255,.1), 0 0 12px rgba(0,240,255,.15), inset 0 0 12px rgba(0,240,255,.05);
  background: var(--wx-card-bg);
  border-radius: var(--wx-radius);
  padding: 18px 20px;
}
.neon-button {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--wx-cyan);
  color: var(--wx-cyan);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  padding: 8px 18px;
  border-radius: var(--wx-radius);
  cursor: pointer;
  transition: all .1s ease;
  text-decoration: none;
}
.neon-button:hover { background: var(--wx-cyan); color: var(--wx-bg); box-shadow: 0 0 15px var(--wx-cyan); text-decoration: none; }
.neon-button-sm { font-size: 10px; padding: 5px 12px; }

.data-card {
  background: var(--wx-card-bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--wx-radius);
  padding: 18px 20px;
  transition: all .2s cubic-bezier(.23,1,.32,1);
}
.data-card:hover { border-color: rgba(0,240,255,.6); box-shadow: 0 0 0 1px rgba(0,240,255,.3); }
.data-card h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .5px; color: var(--wx-cyan); }
.data-card p { margin: 0; font-size: 13px; opacity: .85; line-height: 1.6; }
.data-card p.card-link { margin-top: 10px; }
.card-link a { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }

.terminal {
  font-family: var(--wx-font);
  background: #000;
  border: 1px solid rgba(0,255,159,.2);
  color: var(--wx-green);
  font-size: 12.5px;
  line-height: 1.8;
  padding: 16px 18px;
  border-radius: var(--wx-radius);
}
.terminal .dim { opacity: .5; }
.terminal .cyan { color: var(--wx-cyan); }
.terminal .comment { opacity: .45; }
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--wx-green);
  margin-left: 3px;
  vertical-align: -2px;
  animation: cursorBlink 1s steps(1) infinite;
}
@keyframes cursorBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---- health strip ---- */
.health-strip {
  border: 1px solid rgba(0,240,255,.3);
  box-shadow: 0 0 0 1px rgba(0,240,255,.1), 0 0 12px rgba(0,240,255,.15);
  background: var(--wx-card-bg);
  border-radius: var(--wx-radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.health-strip b { color: var(--wx-green); }

/* ---- grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

/* ---- badges ---- */
.badge { font-size: 10.5px; padding: 2px 10px; letter-spacing: 1.5px; border-radius: var(--wx-radius); display: inline-block; text-transform: uppercase; }
.badge-green { border: 1px solid rgba(0,255,159,.4); color: var(--wx-green); }
.badge-magenta { border: 1px solid rgba(255,0,170,.6); color: var(--wx-magenta); }
.badge-cyan { border: 1px solid rgba(0,240,255,.5); color: var(--wx-cyan); }
.badge-yellow { border: 1px solid rgba(255,255,0,.45); color: var(--wx-yellow); }

/* ---- log structure ---- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.filter-chip {
  background: transparent;
  border: 1px solid rgba(0,240,255,.35);
  color: var(--wx-text);
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--wx-radius);
  cursor: pointer;
  opacity: .75;
  transition: all .12s ease;
}
.filter-chip:hover {
  opacity: 1;
  border-color: var(--wx-cyan);
  color: var(--wx-cyan);
}
.filter-chip.is-active {
  opacity: 1;
  background: rgba(0,240,255,.12);
  border-color: var(--wx-cyan);
  color: var(--wx-cyan);
  box-shadow: 0 0 10px rgba(0,240,255,.2);
}
.filter-status {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: .5;
  text-transform: uppercase;
}

.log-index {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding: 14px 16px;
}
.log-jump-year-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wx-cyan);
  opacity: .8;
  margin-bottom: 6px;
}
.log-jump-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.log-jump-list li {
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.log-jump-list li:last-child { border-bottom: none; }
.log-jump-list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 4px;
  color: var(--wx-text);
  text-decoration: none;
  font-size: 13px;
  transition: color .12s ease, background .12s ease;
  border-radius: var(--wx-radius);
}
.log-jump-list a:hover {
  color: var(--wx-cyan);
  background: rgba(0,240,255,.05);
  text-decoration: none;
}
.log-jump-date {
  flex: 0 0 auto;
  font-size: 10.5px;
  letter-spacing: 1px;
  opacity: .45;
  text-transform: uppercase;
  min-width: 9.5em;
}
.log-jump-title { opacity: .9; }

.log-year-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 36px 0 18px;
  scroll-margin-top: 72px;
}
.log-year-header .section-title { margin-bottom: 0; }
.log-year-header:first-child { margin-top: 0; }
.log-year-count {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .4;
}

.log-entry {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.log-entry.is-target {
  border-left-color: var(--wx-green);
  background: rgba(0,255,159,.04);
  border-radius: 0 var(--wx-radius) var(--wx-radius) 0;
}
.log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.log-date {
  font-size: 10.5px;
  letter-spacing: 2px;
  opacity: .5;
  text-transform: uppercase;
  margin-bottom: 0;
}
.log-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.log-entry h2 {
  font-family: var(--wx-font-display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--wx-green);
  margin: 0 0 12px;
}
.log-permalink {
  margin: 14px 0 0;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .45;
}
.log-permalink a { color: var(--wx-cyan); }
.log-empty { margin-top: 24px; opacity: .7; }
.log-back-top {
  margin: 20px 0 0;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .55;
}
.log-back-top a { color: var(--wx-cyan); }

/* project/station "read log" link row */
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}
.card-links a {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .8;
}
.card-links a.log-ref { color: var(--wx-green); }
a.log-ref {
  color: var(--wx-green);
  font-size: 11px;
  letter-spacing: .5px;
  white-space: nowrap;
}
a.log-ref:hover { text-decoration: underline; }
.latest-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-log-list li {
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.latest-log-list li:last-child { border-bottom: none; }
.latest-log-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding: 12px 4px;
  color: var(--wx-text);
  text-decoration: none;
}
.latest-log-list a:hover { color: var(--wx-cyan); text-decoration: none; }
.latest-log-list .log-jump-date { min-width: 7em; }
.latest-log-list .log-jump-title {
  font-family: var(--wx-font-display);
  font-size: 18px;
  letter-spacing: .5px;
  color: var(--wx-green);
  opacity: 1;
}
.latest-log-list a:hover .log-jump-title { color: var(--wx-cyan); }

@media (max-width: 560px) {
  .log-jump-list a { flex-direction: column; gap: 2px; }
  .log-jump-date { min-width: 0; }
  .log-index { max-height: min(320px, 45vh); }
}

/* ---- tables (station gear) ---- */
.gear-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gear-table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .55;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid rgba(0,240,255,.25);
}
.gear-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  vertical-align: top;
}
.gear-table tr:last-child td { border-bottom: none; }
.gear-table .gear-name { color: var(--wx-cyan); white-space: nowrap; }

ul.plain { margin: 0; padding: 0; list-style: none; }
ul.plain li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 13.5px;
  line-height: 1.65;
}
ul.plain li:last-child { border-bottom: none; }
ul.plain li b { color: var(--wx-cyan); font-weight: 400; }

/* ---- sunset accent (from the WY6Y QSL card design) ---- */
.sunset-accent {
  height: 3px;
  width: 130px;
  margin: 6px 0 22px;
  background: linear-gradient(90deg, #ffff00, #ff9d00, #ff00aa);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255,157,0,.5);
}

/* ---- QSL card (ported from the WY6Y QSL Card - Front design) ---- */
.qsl-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 6.25 / 4.25;
  margin: 20px auto 0;
  background: #050505;
  overflow: hidden;
  border-radius: var(--wx-radius);
}
.qsl-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.qsl-card-frame {
  position: absolute; inset: 6%;
  border: 1px solid rgba(0,240,255,.3);
  box-shadow: 0 0 0 1px rgba(0,240,255,.1), 0 0 12px rgba(0,240,255,.15), inset 0 0 12px rgba(0,240,255,.05);
  border-radius: 2px;
}
.qsl-corner { position: absolute; width: 14px; height: 14px; }
.qsl-corner.tl { top: 6%; left: 6%; border-left: 2px solid #ff00aa; border-top: 2px solid #ff00aa; }
.qsl-corner.tr { top: 6%; right: 6%; border-right: 2px solid #ff00aa; border-top: 2px solid #ff00aa; }
.qsl-corner.bl { bottom: 6%; left: 6%; border-left: 2px solid #ff00aa; border-bottom: 2px solid #ff00aa; }
.qsl-corner.br { bottom: 6%; right: 6%; border-right: 2px solid #ff00aa; border-bottom: 2px solid #ff00aa; }
.qsl-card-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; gap: 8px;
  padding: 0 8%;
}
.qsl-mono { font-family: "Share Tech Mono", ui-monospace, monospace; }
.qsl-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.qsl-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #00ff9f; display: inline-block; animation: qslpulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes qslpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.qsl-ontheair { font-size: 10px; letter-spacing: 2px; color: #00ff9f; font-weight: 700; }
.qsl-73 { font-size: 10px; letter-spacing: 1.5px; color: #ff00aa; border: 1px solid rgba(255,0,170,.6); border-radius: 2px; padding: 1px 8px; }
.qsl-title { font-family: "VT323", monospace; font-size: clamp(2.6rem, 11vw, 4.75rem); line-height: 1; letter-spacing: 4px; color: #00f0ff; text-shadow: 0 0 6px #00f0ff, 0 0 22px rgba(0,240,255,.6); }
.qsl-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; justify-content: center; }
.qsl-bars > span { width: 5px; display: block; border-radius: 1px; background: #00f0ff; box-shadow: 0 0 6px rgba(0,240,255,.6); animation: qslbar 1.4s ease-in-out infinite; }
@keyframes qslbar { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.qsl-sub { font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
.qsl-tag { margin-top: 2px; font-size: 9px; letter-spacing: 1.5px; color: #ffff00; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid rgba(0,240,255,.2);
  margin-top: 70px;
  padding: 30px 0 40px;
  text-align: center;
}
.footer-signoff {
  font-family: var(--wx-font-display);
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--wx-cyan);
  text-shadow: 0 0 8px var(--wx-cyan);
  margin-bottom: 16px;
}
.footer-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
