/* ─────────────────────────────────────────────
   style.css
   Dark, minimal, monospace personal site
───────────────────────────────────────────── */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  --bg:         #0d0d0d;
  --surface:    #161616;
  --border:     #242424;
  --fg:         #c9c9c9;
  --fg-dim:     #555555;
  --fg-muted:   #888888;
  --link:       #c9c9c9;
  --link-hover: #ffffff;

  --font-mono: 'Courier New', Courier, monospace;
  --font-body: Georgia, 'Times New Roman', Times, serif;

  --max-w:   680px;
  --pad-x:   1.5rem;
  --pad-top: 2.5rem;
  --pad-bot: 5rem;

  --radius: 10px;
}

/* Base */
html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout wrapper */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) var(--pad-bot);
}

/* ── Links ── */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.1s;
}

a:hover {
  color: var(--link-hover);
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2.8rem;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

nav a {
  color: var(--fg-dim);
  text-decoration: none;
}

nav a:hover {
  color: var(--fg);
}

nav a.active {
  color: var(--fg);
  font-weight: bold;
}

nav .sep {
  display: none;
}

/* ── Identity row ── */
.identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ── Profile pic ── */
.pfp {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--border);
}

/* ── Heading ── */
h1 {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* ── Status / Now Playing ── */
.status {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

/* ── Bio ── */
.bio {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.bio p + p {
  margin-top: 0.4rem;
}

/* ── Section label ── */
.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* ── Work list ── */
.work-list {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.work-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}

.work-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-item a:hover .work-name {
  color: var(--link-hover);
}

.work-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--fg);
  margin-bottom: 0.3rem;
  transition: color 0.1s;
}

.work-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ── Blog list ── */
.blog-list {
  list-style: none;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-dim);
}

.blog-info a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--fg);
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
  transition: color 0.1s;
}

.blog-info a:hover {
  color: var(--link-hover);
}

.blog-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* View all link */
.view-all {
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  display: inline-block;
}

.view-all:hover {
  color: var(--fg);
}

/* ── Footer ── */
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.footer-links {
  display: flex;
  width: 100%;
  font-size: 0.82rem;
  align-items: baseline;
}

.clock {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-left: auto;
  letter-spacing: 0.03em;
  user-select: none;
}

.footer-links a {
  color: var(--fg-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-links .sep {
  color: var(--fg-dim);
  user-select: none;
  padding: 0 0.3rem;
}

.footer-rule {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--border);
  user-select: none;
}

/* ── About page ── */
.about-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  margin-bottom: 2rem;
}

.about-body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.8;
}

.about-body p + p {
  margin-top: 1.1rem;
}

/* ── Contact list ── */
.contact-list {
  list-style: none;
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  min-width: 8rem;
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 0.87rem;
  color: var(--fg);
  text-decoration: none;
  word-break: break-all;
}

a.contact-value:hover {
  color: var(--link-hover);
}

.contact-mono {
  font-size: 0.74rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  :root {
    --pad-top: 1.5rem;
    --pad-bot: 3rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .contact-label {
    min-width: unset;
  }
}
