/* self-hosted, so the landing page makes no third-party request (DSGVO) */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/portfolio/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/portfolio/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/portfolio/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #16161a;
  --muted: #6b6b73;
  --rule: rgba(22, 22, 26, 0.15);
  --bg: #ffffff;
  --accent: #7dfacf;
  --gutter: 24px;
}

@media (min-width: 900px) {
  :root { --gutter: 120px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.accent {
  height: 6px;
  flex: none;
  background: var(--accent);
}

/* Layout ------------------------------------------------------------ */

.page {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 64px var(--gutter);
}

.block {
  width: 100%;
  max-width: 1200px;
}

.footer {
  flex: none;
  padding: 0 var(--gutter) 32px;
  color: var(--muted);
  font-size: 13px;
}

.footer p { margin: 0; }

@media (min-width: 900px) {
  .footer { padding-bottom: 48px; font-size: 14px; }
}

/* Type -------------------------------------------------------------- */

.name {
  margin: 0;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.role {
  margin: 28px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .role { margin-top: 40px; max-width: none; }
}

/* Links ------------------------------------------------------------- */

.links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .links {
    margin-top: 40px;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.link {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link a {
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link a:hover,
.link a:focus-visible {
  border-bottom-color: var(--ink);
}

.link a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.link a:hover .arrow,
.link a:focus-visible .arrow {
  transform: translate(2px, -2px);
}

.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Password gate ----------------------------------------------------- */

.gate {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

.gate-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gate-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 320px;
}

.gate-input {
  flex: 1;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.gate-input:focus {
  border-color: var(--ink);
}

.gate-input.error {
  border-color: #e05555;
}

.gate-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.gate-btn:hover { opacity: 0.8; }

.gate-error {
  margin-top: 10px;
  font-size: 14px;
  color: #e05555;
  display: none;
}

.gate-error.visible { display: block; }

.gate-success {
  display: none;
}

.gate-success.visible { display: block; }

.gate-success a {
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}

.gate-success a:hover { border-bottom-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
