/* ===========================================================
   PEDRO J. VAZ — design system
   Concept: three disciplines, one signal.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* base */
  --ink:        #15191e;
  --ink-soft:   #1d2329;
  --ink-line:   #2a3138;
  --paper:      #f2ead8;
  --paper-dim:  #ddd2b3;
  --text:       #ece6d6;
  --text-dim:   #9a978c;

  /* signal accents — one per discipline */
  --amber: #ff9d4a;   /* electronics — tube filament glow   */
  --teal:  #45d6c4;   /* audio       — console / tape LED   */
  --green: #8fe3a6;   /* research    — oscilloscope phosphor */

  --accent: var(--amber); /* overridden per page */

  /* type */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Source Serif 4', serif;
  --f-mono:    'IBM Plex Mono', monospace;

  --maxw: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

::selection{ background: var(--accent); color: var(--ink); }

img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- top nav ---------- */
.topnav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21,25,30,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
}
.topnav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand{
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand span{ color: var(--accent); }

.navlinks{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.navlinks a{
  text-decoration: none;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
}
.navlinks a:hover, .navlinks a.is-active{ color: var(--text); }
.navlinks a.is-active::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* ---------- headings ---------- */
h1,h2,h3{
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.section-title{
  font-size: clamp(28px, 4vw, 40px);
  margin: 14px 0 22px;
}

/* ---------- buttons / panels shared ---------- */
.btn{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--ink-line);
  border-radius: 2px;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.btn:hover{
  border-color: var(--accent);
  transform: translateX(2px);
}
.btn-solid{
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 500;
}
.btn-solid:hover{ filter: brightness(1.08); }

/* ---------- page hero (subpages) ---------- */
.page-hero{
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--ink-line);
}
.page-hero h1{
  font-size: clamp(36px, 6vw, 60px);
  margin-top: 12px;
}
.page-hero p.lede{
  font-family: var(--f-body);
  font-style: italic;
  color: var(--text-dim);
  font-size: 19px;
  max-width: 56ch;
  margin-top: 16px;
}

/* ---------- generic section spacing ---------- */
.section{ padding: 64px 0; }
.section + .section{ border-top: 1px solid var(--ink-line); }

/* ---------- placeholder content marker ---------- */
.fill-me{
  border: 1px dashed var(--ink-line);
  background: rgba(255,255,255,0.02);
  padding: 18px 20px;
  border-radius: 3px;
  color: var(--text-dim);
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
}
.fill-me strong{ color: var(--accent); }

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--ink-line);
  padding: 40px 0 56px;
  margin-top: 40px;
}
footer .wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-dim);
}
footer a{ text-decoration: none; }
footer a:hover{ color: var(--text); }
.foot-links{ display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px){
  .navlinks{ gap: 16px; }
  .section{ padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
