/* ================================================================
   Jio Miguel Ong — Dark Meridian design system
   Fonts: Bitter (headings) + Plus Jakarta Sans (body)
   ================================================================ */

:root {
  --bg:           #0D0B0A;
  --ink:          #F0EBE3;
  --surface:      rgba(240,235,227,0.04);
  --surface-hov:  rgba(233,169,110,0.07);
  --amber:        #E9A96E;
  --plum:         #8B5E9B;
  --teal:         #4AADA3;
  --muted:        rgba(240,235,227,0.42);
  --dim:          rgba(240,235,227,0.18);
  --border:       rgba(240,235,227,0.07);
  --border-mid:   rgba(240,235,227,0.12);
  --shadow:       0 24px 56px rgba(0,0,0,.5);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 10px 18px; background: var(--amber); color: var(--bg);
  border-radius: 0 0 6px 6px; font-size: 13px; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 56px; height: 62px;
  background: rgba(13,11,10,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 14px; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
  white-space: nowrap;
}
.nav ul {
  display: flex; gap: 28px; align-items: center;
}
.nav-link {
  font-size: 13px; font-weight: 400; color: var(--muted);
  position: relative; padding: 8px 0;
  transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 1.5px; background: var(--amber);
  transition: width .25s;
}
.nav-link:hover,
.nav-link[aria-current] { color: var(--ink); }
.nav-link[aria-current] { font-weight: 500; }
.nav-link:hover::after,
.nav-link[aria-current]::after { width: 100%; }
.nav-cv {
  font-size: 13px; font-weight: 600;
  color: var(--amber); letter-spacing: .01em;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-cv:hover { opacity: .7; }

/* === FOOTER === */
footer {
  margin-top: auto;
  padding: 28px 56px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim);
}
.ft-amber { color: var(--amber); }

/* === SECTION RULE === */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* === SECTION LABEL === */
.section-label {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.section-label-text {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--dim); white-space: nowrap;
}
.section-label-line {
  flex: 1; height: 1px; background: var(--border);
}

/* === PAGE WRAP === */
.page-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 56px; width: 100%;
}

/* === EYEBROW === */
.eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--amber); margin-bottom: 26px;
}

/* === PILLS === */
.pill {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 11px; border-radius: 3px;
}
.pill-amber { background: var(--amber); color: var(--bg); }
.pill-plum  { background: var(--plum);  color: var(--ink); }
.pill-teal  { background: var(--teal);  color: var(--bg); }
.pill-ghost { background: var(--surface); color: var(--muted); border: 1px solid var(--border-mid); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav { padding: 0 22px; height: 58px; }
  .nav ul { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 12px; }
  .page-wrap { padding: 0 22px; }
  footer { padding: 24px 22px; flex-direction: column; gap: 6px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
