/* janbraband.com — static (2026-10-26). Black/red, Manrope self-hosted (SIL OFL). */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root { --red: #e3292e; --grey: #9a9a9a; --line: #2a2a2a; --field: #111; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #000; color: #fff; font: 400 17px/1.7 "Manrope", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; margin: 0 0 1.2rem; }
h2::after { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--red); margin-top: .7rem; }
.wrap { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 clamp(1.2rem, 4vw, 2rem); }
.narrow { max-width: 760px; }
main > section { margin-top: clamp(4.5rem, 10vw, 7.5rem); }

/* Header over the hero */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem clamp(1.2rem, 4vw, 2.5rem); }
.top .logo img { width: 2.6rem; }
.top .nav { text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }

/* Hero: portrait right, darkened 60 %, typewriter words left */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 30%; opacity: .4; }
.hero-text { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2rem); }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .2em; color: var(--grey); font-size: .78rem; }
.kicker strong { color: #fff; font-weight: 600; }

/* Typewriter: two words take turns being typed and deleted. CSS only. */
.rotator { position: relative; height: 1.15em; margin: 1.4rem 0 2.6rem; font-size: clamp(2.4rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.word { position: absolute; left: 0; top: 0; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: type 8s infinite both; }
.word::after { content: ""; display: inline-block; width: .06em; height: .9em; margin-left: .05em; background: var(--red); vertical-align: -.05em; }
.w1 { animation-timing-function: steps(12, end); }
.w2 { animation-timing-function: steps(9, end); animation-delay: 4s; }
@keyframes type {
  0%   { clip-path: inset(0 100% 0 0); }
  18%  { clip-path: inset(0 0 0 0); }
  38%  { clip-path: inset(0 0 0 0); }
  50%  { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

/* About: three columns; headings scale with their column, so long words never break */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.about > div { container-type: inline-size; }
.about h2 { font-size: clamp(1.1rem, 7.8cqi, 2rem); white-space: nowrap; }
.about p { margin: 0; color: #d8d8d8; }

/* Link tiles: grey until hover */
.links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.links a { display: block; overflow: hidden; }
.links img { width: 100%; aspect-ratio: 16 / 9.3; object-fit: cover; filter: grayscale(100%); opacity: .85; transition: filter .25s, opacity .25s, transform .4s; }
.links a:hover img, .links a:focus-visible img { filter: none; opacity: 1; transform: scale(1.03); }
.more { margin: 1.6rem 0 0; text-align: right; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.more a { text-decoration: none; }

/* Contact */
/* The e-mail address appears after a picture puzzle; a wrong click locks it for 10 minutes. */
.contact > p { color: #d8d8d8; }
.contact strong { color: #fff; }
.contact .hint { font-size: .85rem; color: var(--grey); }
.puzzle { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: 1.8rem; max-width: 34rem; }
.puzzle button { aspect-ratio: 1; display: grid; place-items: center; padding: 0; color: #fff; background: var(--field); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.puzzle button:hover, .puzzle button:focus-visible { border-color: var(--red); color: var(--red); transform: translateY(-2px); outline: none; }
.puzzle svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.address { margin: .4rem 0 1rem; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700; letter-spacing: .02em; }
.address a { text-decoration-thickness: 2px; }
.msg { padding: .8rem 1rem; border-left: 3px solid var(--grey); background: var(--field); }
.msg.error { border-color: var(--red); }

/* Footer */
.foot { display: flex; justify-content: center; gap: .9rem; padding: clamp(4rem, 10vw, 7rem) 1rem 2.5rem; font-size: .8rem; color: var(--grey); }
.foot a { color: var(--grey); text-decoration: none; }
.foot a:hover { color: #fff; }

/* Legal pages */
.doc { padding-top: 7rem; padding-bottom: 1rem; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 2rem; }
.doc h2 { font-size: 1.05rem; margin: 2.4rem 0 .8rem; }
.doc h2::after { width: 1.6rem; height: 2px; margin-top: .5rem; }
.doc p { color: #d8d8d8; }
.doc .small { font-size: .85rem; color: var(--grey); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .links ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { align-items: flex-end; padding-bottom: 18vh; }
  .hero-img { object-position: 100% 35%; opacity: .45; }
  .puzzle { grid-template-columns: repeat(3, 1fr); max-width: 20rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator { height: auto; font-size: clamp(2rem, 6vw, 4.5rem); }
  .word { position: static; clip-path: none; animation: none; display: block; }
  .word::after { display: none; }
  .links img { transition: none; }
}
