/* HENDRYK DAMASTRA — Personnel File
   Noir / Manhattan Project member-photo theme:
   black paper, off-white type, typewriter fonts, film grain, archive files. */

:root {
  --ink: #e8e4da;
  --ink-dim: #a9a49a;
  --ink-faint: #6f6b62;
  --paper: #0a0a09;
  --panel: #111110;
  --line: #3a382f;
  --line-soft: #26251f;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* film grain + vignette */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 49; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

a { color: var(--ink); }
a:hover { color: #fff; }

/* ---------- top bar ---------- */
.topbar {
  max-width: 960px; margin: 0 auto; padding: 18px 24px 14px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 11px; letter-spacing: .18em; color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
.topbar-mid { color: var(--ink-faint); }
@media (max-width: 640px) { .topbar-mid { display: none; } }

main { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .photo-frame { max-width: 340px; margin: 0 auto; }
}

.photo-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px 10px 0;
  background: var(--panel);
  box-shadow: 0 0 0 1px #000, 8px 8px 0 rgba(255,255,255,.03);
}
.photo-frame img {
  display: block; width: 100%; height: auto;
  filter: grayscale(1) contrast(1.08);
}
.photo-caption {
  padding: 12px 4px 14px;
  font-size: 11px; letter-spacing: .14em; line-height: 1.7;
  color: var(--ink-dim); text-align: center;
}
.kicker {
  font-size: 11px; letter-spacing: .3em; color: var(--ink-faint);
  margin-bottom: 14px;
}
.hero-text h1 {
  font-family: "Special Elite", "Courier New", monospace;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.headline {
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 19px; line-height: 1.5; color: var(--ink);
  margin-bottom: 18px;
}
.meta { color: var(--ink-dim); margin-bottom: 22px; }

.id-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 4px 14px;
  font-size: 12px; letter-spacing: .12em;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0; margin-bottom: 22px;
}
.id-row span:nth-child(odd) { color: var(--ink-faint); }
.redacted { letter-spacing: .1em; }

.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a {
  display: inline-block;
  font-size: 12px; letter-spacing: .18em; text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 16px;
  transition: background .15s, color .15s;
}
.contact-links a:hover { background: var(--ink); color: #0a0a09; }

/* ---------- sections ---------- */
.section { padding: 44px 0 40px; border-bottom: 1px solid var(--line-soft); }
.section:last-child { border-bottom: none; }

.section h2 {
  font-family: "Special Elite", "Courier New", monospace;
  font-weight: 400;
  font-size: 24px; letter-spacing: .14em;
  margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 14px;
}
.section h2 .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: .2em; color: var(--ink-faint);
}
.section p { margin-bottom: 12px; max-width: 720px; }
.section p:last-child { margin-bottom: 0; }

.entry { margin-bottom: 24px; max-width: 720px; }
.entry:last-child { margin-bottom: 0; }
.entry-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 2px;
}
.entry-head strong { font-weight: 600; font-size: 15.5px; }
.year { font-size: 11px; letter-spacing: .16em; color: var(--ink-faint); white-space: nowrap; }
.entry p { color: var(--ink-dim); margin-bottom: 0; }
@media (max-width: 640px) {
  .entry-head { flex-direction: column; gap: 0; }
}

/* skills tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.tags span {
  font-size: 12.5px; letter-spacing: .08em;
  border: 1px solid var(--line);
  padding: 7px 13px;
  background: var(--panel);
}

/* contact card */
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  max-width: 720px;
  margin-bottom: 20px;
}
.contact-line {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.contact-line:last-child { border-bottom: none; }
.contact-line > span:first-child {
  font-size: 11px; letter-spacing: .2em; color: var(--ink-faint);
  padding-top: 3px;
}
.contact-line a { text-decoration: none; border-bottom: 1px dotted var(--ink-faint); }
.contact-line a:hover { border-bottom-color: var(--ink); }
@media (max-width: 640px) {
  .contact-line { grid-template-columns: 1fr; gap: 2px; }
  .contact-line a, .contact-line span:last-child { word-break: break-all; }
}


/* ---------- footer ---------- */
footer {
  max-width: 960px; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 11px; letter-spacing: .18em; color: var(--ink-faint);
}
@media (max-width: 640px) { footer { flex-direction: column; gap: 6px; } }

::selection { background: var(--ink); color: #0a0a09; }
