/* ============================================================
   Peeck Media Network — shared theme
   "Signal" system: every site is a channel tuned off the same dial.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@600;700;800&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --ink:        #1A1025;   /* near-black plum, primary text */
  --violet-900: #3B1D5C;   /* deep violet, headers/nameplate */
  --violet-700: #5B2E9E;
  --violet-500: #7C3AED;   /* primary accent / interactive */
  --violet-300: #B79CF0;
  --lavender:   #EDE7FB;   /* tinted panels */
  --paper:      #FAF9FC;   /* page background */
  --white:      #FFFFFF;
  --gold:       #F0B429;   /* single warm accent — the tally light */
  --line:       #DCD2F2;

  --font-display: 'Archivo Expanded', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Background texture: faint broadcast scanlines, very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(91, 46, 158, 0.025) 0px,
    rgba(91, 46, 158, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
}

a {
  color: var(--violet-700);
  text-decoration: none;
}
a:hover { color: var(--violet-500); text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--violet-900);
  background-image: linear-gradient(180deg, var(--violet-900) 0%, #33195280 260%);
  border-bottom: 4px solid var(--gold);
}

.masthead-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.dial {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--violet-300);
  position: relative;
  display: grid;
  place-items: center;
}
.dial::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 1px var(--gold);
}
.dial::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--violet-300);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(35deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .network {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-300);
  font-weight: 600;
}

.brand-text .title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--white);
}

.masthead nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.masthead nav a {
  color: var(--violet-300);
  font-weight: 600;
}
.masthead nav a:hover { color: var(--white); }

/* Frequency bars strip under masthead nameplate — signature motif */
.freq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-left: 4px;
}
.freq-bars span {
  width: 3px;
  background: var(--violet-300);
  border-radius: 1px;
  animation: pulse 1.8s ease-in-out infinite;
}
.freq-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.freq-bars span:nth-child(2) { height: 90%; animation-delay: .2s; }
.freq-bars span:nth-child(3) { height: 60%; animation-delay: .4s; }
.freq-bars span:nth-child(4) { height: 100%; animation-delay: .6s; }
.freq-bars span:nth-child(5) { height: 50%; animation-delay: .8s; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.55); opacity: .75; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .freq-bars span { animation: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-700);
  background: var(--lavender);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .tally {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.25);
}

h1.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--violet-900);
}

.hero p.lede {
  font-size: 18px;
  max-width: 56ch;
  color: #4A3A63;
  margin: 0;
}

/* ---------- Section labels ---------- */

.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-700);
  margin: 44px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Project / link cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding-bottom: 8px;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet-500);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(59, 29, 92, 0.35);
  border-left-color: var(--gold);
  text-decoration: none;
}

.card .card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-500);
  margin-bottom: 6px;
  display: block;
}

.card .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 6px;
}

.card .card-desc {
  font-size: 14.5px;
  color: #5B4A73;
  margin: 0;
}

.card .card-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-700);
}
.card:hover .card-arrow { color: var(--gold); }

/* ---------- List rows (newsletters, archive entries) ---------- */

.row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.row-item:hover {
  background: var(--lavender);
  text-decoration: none;
}
.row-item .row-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--violet-900);
}
.row-item .row-meta {
  font-size: 13px;
  color: #6B5A85;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet-500);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--violet-700); color: var(--white); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--violet-700);
  border: 1px solid var(--violet-300);
}
.btn-ghost:hover { background: var(--lavender); color: var(--violet-900); }

/* ---------- Contact / detail panel ---------- */

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 8px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-900);
}

.contact-line .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lavender);
  display: grid;
  place-items: center;
  color: var(--violet-500);
  flex: none;
}

/* ---------- Footer ---------- */

footer.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 13.5px;
  color: #6B5A85;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a {
  color: var(--violet-700);
  font-weight: 600;
}

.footer-network {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-network .dial {
  width: 20px;
  height: 20px;
}
.footer-network .dial::after { height: 5px; top: 2px; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 600px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 40px 0 28px; }
  .panel { padding: 24px; }
}
