/* Brutalist style: raw black & white, system type, hard rules, one harsh accent */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --accent: #ff2a00;
  --rule: 2px solid var(--ink);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --serif: "Times New Roman", Times, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --ink: #ffffff;
  }
}

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.45;
}

.card {
  width: 100%;
  max-width: 560px;
  border: var(--rule);
}

/* Raw header strip */
.card::before {
  content: "INDEX / LINKS ——————————————— [ONLINE]";
  display: block;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0 16px;
  padding: 16px;
  border-bottom: var(--rule);
}

.avatar {
  grid-row: span 2;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: var(--rule);
  filter: grayscale(1) contrast(1.3);
  background: var(--ink);
}

.avatar:hover { filter: none; }

h1 {
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  word-break: break-word;
}

.tagline { align-self: start; margin-top: 8px; font-size: 13px; }
.tagline::before { content: "// "; color: var(--accent); }

.intro {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink);
  max-width: 60ch;
}

/* Links: numbered raw rows that invert on hover */
.links { counter-reset: link; }

.link {
  counter-increment: link;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 16px;
  border-bottom: var(--rule);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
}

.link::before { content: "0" counter(link); color: var(--accent); font-weight: 400; }
.link::after  { content: "↗"; margin-left: auto; }
.link svg { display: none; }
.link span { text-decoration: underline; text-underline-offset: 4px; }

.link:hover, .link:focus-visible {
  background: var(--ink);
  color: var(--bg);
  outline: none;
}
.link:hover::before, .link:focus-visible::before { color: var(--bg); }

/* Showcase */
.showcase { border-bottom: var(--rule); }

.showcase h2 {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: var(--rule);
}

.showcase h2::after { content: " (fig. 1–4)"; color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  background: var(--ink);
}

.gallery img:nth-child(odd)  { border-right: var(--rule); }
.gallery img:nth-child(-n+2) { border-bottom: var(--rule); }
.gallery img:hover { filter: none; }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
}

.share {
  font: inherit;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.share:hover { color: var(--accent); }

@media (max-width: 380px) {
  .profile { grid-template-columns: 1fr; }
  .avatar { grid-row: auto; margin-bottom: 12px; }
}
