/* ============================================================
   Christina Jeong — portfolio stylesheet
   Design concept: two voices, one person — the precision of a
   terminal (AI engineer) and the cadence of a page (poet).
   Mono type carries the engineering voice; italic serif carries
   the literary one. Everything else stays quiet around that.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

:root {
  --ink: #1b1b18;
  --paper: #efe9de;
  --paper-dim: #e2dbc9;
  --paper-line: #d3c9b2;
  --code: #3e5c76;
  --verse: #8b3a3a;
  --muted: #7a7364;
  --white: #faf8f4;

  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Newsreader', Georgia, serif;

  --max-width: 780px;
  --edge: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--code);
  outline-offset: 3px;
}

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

/* ---------- nav ---------- */

.site-nav {
  border-bottom: 1px solid var(--paper-line);
  position: sticky;
  top: 0;
  background: rgba(239, 233, 222, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.site-nav .wrap {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav .brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav .brand .dot {
  color: var(--verse);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--verse);
}

/* ---------- hero ---------- */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem var(--edge) 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero .hero-text {
  flex: 1;
  min-width: 0;
}

.hero .headshot {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--verse);
}

.hero .headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.75rem;
  }

  .hero .dual-role,
  .hero .cta-row {
    justify-content: center;
  }

  .hero .bio {
    max-width: 100%;
  }
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.dual-role {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin: 0 0 2rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dual-role .voice-code {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--code);
}

.dual-role .voice-code::after {
  content: '_';
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.dual-role .amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}

.dual-role .voice-verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--verse);
}

.hero p.bio {
  max-width: 58ch;
  font-size: 1.1rem;
  color: #35322c;
  margin: 0 0 0.6rem;
}

.hero .location {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: var(--ink);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--code);
  border-color: var(--code);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- signature divider: code dashes fading into an ink stroke ---------- */

.divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

.divider hr {
  border: none;
  height: 2px;
  margin: 0 0 3rem;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--code) 8%,
    var(--code) 46%,
    transparent 46%,
    transparent 50%,
    var(--verse) 54%,
    var(--verse) 92%,
    transparent 100%
  );
  opacity: 0.55;
}

/* ---------- now section: two cards, two textures ---------- */

.now {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--edge) 3.5rem;
}

.now > .section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .now-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.6rem;
  border-radius: 3px;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
}

.card.code {
  background: var(--ink);
  color: var(--paper);
}

.card.code .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb4c8;
  display: block;
  margin-bottom: 0.5rem;
}

.card.code h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--white);
}

.card.code p {
  color: #cfc9bb;
}

.card.verse {
  background: var(--white);
  border: 1px solid var(--paper-line);
}

.card.verse .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verse);
  display: block;
  margin-bottom: 0.5rem;
}

.card.verse h3 {
  font-style: italic;
  font-weight: 500;
}

.card.verse p {
  color: #4a4638;
}

/* ---------- skills ---------- */

.skills {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--edge) 4rem;
}

.skills > .section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 640px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
}

.skill-group h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--code);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.skill-group p {
  margin: 0;
  color: #3f3c34;
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--paper-line);
  padding: 2rem var(--edge);
  text-align: center;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.03em;
}

/* ---------- experience page ---------- */

.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem var(--edge) 2rem;
}

.page-header .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
}

.page-header p {
  max-width: 60ch;
  color: #3f3c34;
  margin: 0;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--edge) 3rem;
}

.role {
  padding: 2rem 0;
  border-top: 1px solid var(--paper-line);
}

.role:first-child {
  border-top: none;
}

.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.3rem;
}

.role-head h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

.role-head .dates {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.role .place {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--code);
  margin: 0 0 0.9rem;
}

.role ul {
  margin: 0;
  padding-left: 1.1rem;
}

.role li {
  margin-bottom: 0.5rem;
  color: #3f3c34;
}

.role li::marker {
  color: var(--verse);
}

.role-sub {
  margin-top: 1rem;
}

.role-sub h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.education {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--edge) 4rem;
}

.education .section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.education .item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  border-top: 1px solid var(--paper-line);
  padding-top: 1.2rem;
}

.education .item .school {
  font-weight: 500;
}

.education .item .dates {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- contact page ---------- */

.contact-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem var(--edge) 4rem;
}

.contact-main .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

.contact-main h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 1.2rem;
  color: var(--verse);
}

.contact-main > p {
  max-width: 55ch;
  color: #3f3c34;
  margin: 0 0 2.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.contact-list li {
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  background: var(--white);
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  text-decoration: none;
  gap: 1rem;
}

.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-list .value {
  font-size: 1rem;
  word-break: break-word;
}

.contact-list .arrow {
  font-family: var(--font-mono);
  color: var(--code);
  flex-shrink: 0;
}

.contact-list a:hover .arrow {
  color: var(--verse);
}
