/* ================================
   WIVC — ivette colón
   ================================ */

:root {
  --bg: #f8f6f1;
  --ink: #111111;
  --signal: #c4472a;
  --dim: #888;
  --rule: #ccc8c0;
  --surface: #fff;
  --mono: 'Space Mono', monospace;
  --serif: 'DM Serif Display', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --width: 700px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
}

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

/* ---- BROADCAST NAV ---- */

.broadcast-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.call-sign {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.dial-display {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.dial-freq {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 2.5ch;
  transition: color 0.3s;
}

.dial-freq.changing {
  color: var(--signal);
}

.stations {
  visibility: hidden; /* re-enable when nav links to real pages */
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.stations a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  transition: color 0.2s;
  position: relative;
}

.stations a::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 4px);
  font-size: 0.6rem;
  color: var(--dim);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.stations a:hover,
.stations a.active {
  color: var(--ink);
  text-decoration: none;
}

.stations a.active {
  color: var(--signal);
}

.stations a:hover::after,
.stations a.active::after {
  opacity: 1;
}

/* ---- LAYOUT ---- */

.page-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 0 5rem;
  align-items: start;
}

.left-col {
  position: sticky;
  top: 60px;
}

.right-col {
  border-left: 1px solid var(--rule);
  padding-left: 4rem;
}

/* footer still uses the old single-column width */
.container {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 2rem 0;
}

.right-col section + section {
  border-top: none;
}

.right-col section + section::before {
  content: ")))))))))))))))))))))))))))  ◌  (((((((((((((((((((((((((((";
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--rule);
  text-align: center;
  padding: 1.5rem 0 0;
  margin-bottom: rem;
}

/* ---- SECTION HEADERS ---- */

.section-marker {
  display: flex;
  align-items: baseline;
  gap: rem;
  margin-bottom: rem;
}

.section-freq {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--signal);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
  color: var(--ink);
}

/* ---- HERO ---- */

.hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-photo img {
  width: 100%;
  display: block;
  filter: grayscale(20%);
}

/* hero in left sidebar: stack photo above text */
.left-col .hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.left-col .hero-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.left-col .hero-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

.left-col .hero-name {
  font-size: 1.5rem;
}

.hero-name {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.hero-meta .sep {
  margin: 0 0.4rem;
  color: var(--rule);
}

.hero-bio {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.affil-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
  font-size: 0.75rem;
  color: var(--ink);
}

.affil-list li::before {
  content: "· ";
  color: var(--dim);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  border: 1px solid var(--rule);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  transition: all 0.15s;
  background: var(--surface);
}

.hero-links a:hover {
  color: var(--signal);
  border-color: var(--signal);
  text-decoration: none;
}

.hero-links a.cv-link {
  color: var(--signal);
  border-color: var(--signal);
  font-weight: 700;
}

.hero-links a.cv-link:hover {
  background: var(--signal);
  color: var(--surface);
}

.hero-ascii {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--dim);
  white-space: pre;
  overflow-x: auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--dim);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

/* ---- NAME SQUARE ---- */

.name-square {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--rule);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  white-space: pre;
  user-select: none;
  transition: color 0.4s;
}

.name-square:hover {
  color: var(--dim);
}

/* ---- RESEARCH ---- */

.research-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.research-item {
  padding: .3rem 0;
  border-bottom: 1px solid var(--rule);
}

.research-item:first-child {
  border-top: 1px solid var(--rule);
}

.research-item h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: rem;
}

.research-item p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #444;
  line-height: 1.7;
}

/* ---- PUBLICATIONS ---- */

.pub-group-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dim);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.pub-group-label:first-child {
  margin-top: 0;
}

.pub-list {
  list-style: none;
  padding: 0;
}

.pub-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 0.15rem;
}

.pub-venue {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  font-style: italic;
}

.award-mark {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #9a6f1a;
  background: #fef3d0;
  border: 1px solid #e8d084;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  font-style: normal;
}

/* ---- BEYOND ---- */

.beyond-list {
  display: flex;
  flex-direction: column;
}

.beyond-item {
  padding: .3rem 0;
  border-bottom: 1px solid var(--rule);
}

.beyond-item:first-child {
  border-top: 1px solid var(--rule);
}

.beyond-item h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.beyond-item p {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.75;
}

.beyond-item a {
  font-family: var(--mono);
  font-size: 0.7rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ---- FOOTER ---- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 1.5rem;
  max-width: var(--width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

footer .signal-off {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
}

footer .signal-off::before {
  content: '◈ ';
  color: var(--signal);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 760px) {
  .page-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .left-col {
    position: static;
  }

  .left-col .hero {
    padding-top: 4rem;
    padding-bottom: 0;
  }

  .left-col .hero-grid {
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .left-col .hero-photo img {
    width: 100%;
    border-radius: 50%;
  }

  .left-col .hero-name {
    font-size: 2rem;
  }

  .right-col {
    border-left: none;
    padding-left: 0;
  }


  .nav-inner {
    padding: 0.6rem 1rem;
    gap: 1rem;
  }

  .stations {
    gap: 0.9rem;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
