:root {
  --ink: #111;
  --paper: #fff;
  --muted: #888;
  --line: #ddd;
  --gap: 2.5rem;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.landing {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: block;
  background: #000;
  cursor: pointer;
}

.landing-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.landing-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
}

.landing-fallback span {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

.landing-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: opacity 0.25s ease;
}

.landing.revealed .landing-hint {
  opacity: 0;
}

.landing-menu {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.landing.revealed .landing-menu {
  opacity: 1;
  pointer-events: auto;
}

.landing-menu a {
  background: var(--paper);
  color: var(--ink);
  padding: 1rem 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.landing-menu a:hover {
  background: #eee;
}

.site {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: var(--gap);
}

.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 3rem;
}

h1 {
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}

h2 {
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

p { margin: 0 0 1.2rem; }

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 480px;
}

.about-portrait {
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  min-height: 160px;
}

.about-portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cv-download {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.6rem 1.1rem;
  margin-bottom: 2.5rem;
}

.cv-download:hover {
  background: var(--ink);
  color: var(--paper);
}

.contact-button {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.6rem 1.1rem;
  margin-top: 0.5rem;
}

.contact-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.tournament-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tournament-photos img {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

.cv-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.cv-entry:last-child { border-bottom: none; }

.cv-date {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.cv-role { font-weight: 400; margin: 0 0 0.2rem; }
.cv-org { color: var(--muted); margin: 0 0 0.4rem; font-size: 0.9rem; }

@media (max-width: 640px) {
  .cv-entry { grid-template-columns: 1fr; gap: 0.3rem; }
}

.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-list li {
  border-bottom: 1px solid var(--line);
}

.links-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  font-size: 1rem;
}

.links-list a:hover { color: var(--muted); }

.links-list a span:first-child {
  display: inline-block;
  transition: transform 0.2s ease;
  transform-origin: left center;
}

.links-list a:hover span:first-child {
  transform: scale(1.08);
}

.links-list .links-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-block;
  transition: transform 0.2s ease;
}

.links-list a:hover .links-arrow {
  transform: translateX(10px) scale(1.6);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.album-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  overflow: hidden;
  display: block;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-tile:hover img { transform: scale(1.04); }

.album-tile-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.album-tile.has-image .album-tile-label {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.photo-list figure {
  margin: 0;
}

.photo-list figure.photo-wide {
  grid-column: 1 / -1;
}

.photo-list img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .photo-list {
    grid-template-columns: 1fr;
  }
}

.photo-list-empty {
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px dashed var(--line);
  padding: 2rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--ink); }
