@font-face { font-family: "Bitter"; font-weight: 700; font-display: swap; src: url("/fonts/bitter-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-600.woff2") format("woff2"); }

:root {
  --ink: #1b1b1b;
  --text: #4a4a4a;
  --muted: #7f8080;
  --rule: #dbdbdb;
  --paper: #ffffff;
  --panel: #f5f5f5;
  --night: #161616;
  --bar: #2a2a2a;
  --on-night: #f7f7f7;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 15px/1.65 "Montserrat", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px var(--gutter);
  color: var(--on-night);
}
.site-header.solid { background: var(--bar); }
.logo {
  font: 600 clamp(22px, 3.2vw, 34px)/1 "Montserrat", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .8;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Home hero */
.hero {
  position: relative;
  min-height: min(640px, 92vh);
  display: flex;
  flex-direction: column;
  background: #0b1240 url("/img/hero.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(5, 10, 40, .35); }
.hero > * { position: relative; }
.hero h1 {
  margin: auto;
  padding: 0 var(--gutter) 64px;
  color: #fff;
  font: 700 clamp(40px, 6vw, 64px)/1.1 "Bitter", serif;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

/* Dark band */
.band {
  background: var(--night);
  color: var(--on-night);
  text-align: center;
  padding: 72px var(--gutter);
}
.band h2 { margin: 0; color: var(--muted); font: 700 clamp(26px, 3.4vw, 38px)/1.2 "Bitter", serif; }

.rule { width: 50px; height: 1px; margin: 28px auto; border: 0; background: currentColor; opacity: .4; }

.social {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--on-night);
  color: var(--night);
}
.social svg { width: 22px; height: 22px; }
.social.small { width: 26px; height: 26px; }
.social.small svg { width: 15px; height: 15px; }

/* CV */
.page { max-width: 1120px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.page h1 { margin: 0; text-align: center; color: #5e5e5e; font: 700 clamp(28px, 3.6vw, 40px)/1.2 "Bitter", serif; }
.page .rule { color: var(--muted); }
.page p { margin: 0 0 1.4em; }
.cv { list-style: none; margin: 2.4em 0 0; padding: 0; }
.cv li { margin: 0 0 1.3em; }
.cv li span { display: block; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 48px;
}
.gallery a { display: block; overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* 404 */
.notfound { text-align: center; }
.notfound a { font-weight: 600; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px var(--gutter);
  background: var(--night);
  color: var(--muted);
  font-size: 14px;
}
