/* =========================================================
   nebriae.com — Canonical Theme
   Nebriae System: quiet depth, grounded precision.
   STATUS: Final Alignment + Cyan Magic (Solid Name)
   ========================================================= */


/* ================================
   Font Loading
================================ */

@font-face {
  font-family: "Aeonik";
  src: url("/fonts/Aeonik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("/fonts/Aeonik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime";
  src: url("/fonts/CourierPrime-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ================================
   Design Tokens
================================ */

:root {
  color-scheme: dark;

  --font-body: "Aeonik", system-ui, -apple-system, sans-serif;
  --font-display: "Courier Prime", ui-monospace, monospace;

  /* Atmosphere: Deep Voids */
  --bg-deep: #030508;
  --bg-surface: #090c13;
  --bg-surface-soft: #0e121b;

  /* The Cyan Magic */
  --cyan-core: #00f0ff; 
  --cyan-dim: rgba(0, 240, 255, 0.6);
  --cyan-wash: rgba(0, 240, 255, 0.08);
  
  --text-primary: rgba(240, 250, 255, 0.95);
  --text-muted: rgba(140, 160, 180, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);

  --radius-lg: 14px;
  --radius-sm: 10px;

  --page-max: 960px;
}


/* ================================
   Base Reset
================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  
  /* Atmospheric Light Source (Top Center) */
  background: radial-gradient(
    circle at 50% -20%, 
    rgba(10, 40, 60, 0.4) 0%, 
    var(--bg-deep) 60%
  ), var(--bg-deep);
  
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}


/* ================================
   Typography
================================ */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

p {
  margin: 0;
}

.muted {
  color: var(--text-muted);
}


/* ================================
   Links
================================ */

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--cyan-core);
  text-shadow: 0 0 8px var(--cyan-dim);
}


/* ================================
   Layout
================================ */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 96px 24px 120px;
}

.wordmark {
  font-size: 48px;
  letter-spacing: 0.12em;
  font-weight: 700;
  
  /* FIXED: Solid white with a subtle "signal" bloom */
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.lead {
  margin-top: 12px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 60ch;
}

.grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}


/* ================================
   Panels (Homepage)
================================ */

.panel-link {
  text-decoration: none;
  display: block;
}

.card {
  height: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  
  /* Glassy Dark Background */
  background: linear-gradient(180deg, rgba(20, 25, 35, 0.4) 0%, rgba(10, 12, 16, 0.6) 100%);
  backdrop-filter: blur(4px);

  display: flex;
  flex-direction: column;
  
  /* Animation Setup */
  transition: border 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  /* The Cyan Glow-Up */
  border-color: var(--border-glow);
  background: rgba(14, 25, 35, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -10px rgba(0, 240, 255, 0.15);
}

.section-title {
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  
  /* Pinned to Top */
  margin-bottom: 4px; 
}

/* Brighten title on hover */
.card:hover .section-title {
  color: var(--cyan-core);
  text-shadow: 0 0 5px var(--cyan-dim);
}

.panel-content {
  text-align: center;
  
  /* ALIGNMENT MAGIC: Centers content vertically */
  margin-top: auto; 
  margin-bottom: auto;
}

.panel-content p {
  font-size: 15px;
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.card:hover .panel-content p {
  color: var(--text-primary);
}

.panel-kicker {
  font-size: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  text-align: center;
  opacity: 0.6;
  
  /* Pinned to Bottom */
  margin-top: 4px;
}


/* ================================
   Contact Block Fix
================================ */

.card.contact-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  
  /* Distinct look for contact */
  background: radial-gradient(circle at center, var(--bg-surface-soft) 0%, var(--bg-deep) 100%);
  border: 1px dashed var(--border-subtle);
}

.card.contact-card:hover {
  border-style: solid;
  border-color: var(--cyan-dim);
}

.card.contact-card p {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-primary);
}


/* ================================
   Footer (Grouped Links)
================================ */

.footer {
  margin-top: 80px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  padding-bottom: 40px;

  /* Flexbox Layout: Copyright Left, Links Right */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* Target links inside footer to group them */
.footer a {
  margin-left: 24px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--cyan-core);
}


/* ================================
   Markdown (Manifest / Tech Pages)
================================ */

.markdown {
  max-width: 72ch;
  margin-top: 40px;
}

.markdown h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  display: inline-block;
}

.markdown p {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.markdown ul {
  margin: 0 0 20px 20px;
  color: var(--text-muted);
}

.markdown li {
  margin: 8px 0;
  padding-left: 4px;
}

.markdown li::marker {
  color: var(--cyan-dim);
}

.markdown hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
  margin: 40px 0;
  opacity: 0.3;
}