:root {
  --color-bg: #faf9f7;
  --color-text: #1c1c1c;
  --color-muted: #666;
  --color-rule: #e3e2df;
  --color-accent: #3d5a73;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 56rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Top banner */

.topbar {
  border-bottom: 1px solid var(--color-rule);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.topnav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.hero-photo {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin: 0;
}

/* Site grid */

.site-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 30rem) {
  .site-grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

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

.tile-label {
  display: block;
  padding: 0.85rem 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-align: center;
}

/* Footer */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}
