@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,300;1,9..144,200&display=swap');

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

:root {
  --bg:        #0c0c0c;
  --surface:   #111111;
  --border:    #1e1e1e;
  --text:      #d4d0c8;
  --muted:     #4a4845;
  --accent:    #c8b89a;
  --mono:      'DM Mono', monospace;
  --serif:     'Fraunces', serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* noise overlay */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* header */
header {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

h1 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: 2.6rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.github-link {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.github-link:hover {
  border-color: var(--accent);
}

.intro p {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--mono);
}

/* main */
main {
  flex: 1;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.25s; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.index {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

h2 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.content {
  min-height: 120px;
}

.placeholder {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

/* animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .card { padding: 28px 24px; }
}
