:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  --accent: #c8102e; /* Swiss red */
  --max-width: 720px;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --fg: #f2f2f2;
    --muted: #9a9a9a;
    --rule: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
.site-header,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding-top: 32px;
  padding-bottom: 0;
}

.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.05;
}

.hero .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.02em;
}

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 24px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--rule);
  display: block;
}

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Read more links */
.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links li {
  border-top: 1px solid var(--rule);
}

.links li:last-child {
  border-bottom: 1px solid var(--rule);
}

.links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  text-decoration: none;
}

.links a:hover .link-title {
  color: var(--accent);
}

.link-title {
  font-weight: 500;
}

.link-meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  padding-top: 32px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
