* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf8f5;
  --text: #2d2a26;
  --accent: #3C7A89;
  --accent-rgb: 60, 122, 137;
  --text-muted: #6b6560;
}

html {
  scroll-behavior: smooth;
  /* Avoid horizontal layout shift on Windows scrollbars */
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Main page wrapper */
.layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

/* Home stays centered */
body.home .layout {
  max-width: 900px;
  margin: 0 auto;
}

/* Subpages: same left start (viewport-based), not centered */
body.page .layout {
  max-width: none;
  margin: 0;
  padding-left: clamp(1.5rem, 8vw, 6rem);
  padding-right: 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.25rem 0 2rem 0;
}

.brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background-color: rgba(var(--accent-rgb), 0.12);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  max-width: 640px;
  text-align: center;
}

/* Center main content on home even though wrapper is centered */
body.home main {
  margin: 0 auto;
}

/* Subpages main: left-aligned */
body.page main {
  max-width: 900px;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 1rem;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.bio {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Shared button: consistent, accessible size (44px target) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;

  height: 44px;
  padding: 0 1.125rem;
  white-space: nowrap;

  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.05s ease;
}

.button:hover {
  background-color: var(--accent);
  color: white;
}

.button:active {
  transform: translateY(1px);
}

.section {
  text-align: left;
  margin-top: 4rem;
}

.section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

