/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f7f6f3;
  --bg-alt:    #eeece8;
  --text:      #1a1918;
  --text-muted:#5a5754;
  --accent:    #1c3f6e;
  --accent-hover: #15305a;
  --border:    #d8d5d0;
  --radius:    6px;
  --max-w:     760px;
  --font:      system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0.75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 85%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.role {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.role a { color: var(--text-muted); font-weight: 500; }
.role a:hover { color: var(--accent); }

.tagline {
  font-size: 1.125rem;
  max-width: 52ch;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Link buttons ── */
.link-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
}

/* ── Sections ── */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.about-text {
  font-size: 1.05rem;
  max-width: 58ch;
  line-height: 1.7;
}

/* ── Interest grid ── */
.interest-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.interest-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.interest-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Notes placeholder ── */
.notes-placeholder {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 50ch;
}

/* ── Footer ── */
.site-footer {
  padding: 1.75rem 0;
  text-align: center;
}
.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Sand ── */
.sand-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sand-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sand-swatches {
  display: flex;
  gap: 0.4rem;
}

.sand-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
.sand-swatch.active      { border-color: var(--accent); transform: scale(1.2); }
.sand-swatch[data-color="sand"]  { background: #C8A96E; }
.sand-swatch[data-color="slate"] { background: #2E6EA6; }
.sand-swatch[data-color="red"]   { background: #CF142B; }
.sand-swatch[data-color="coal"]  { background: #3A3432; }
.sand-swatch[data-color="water"] { background: #5BA3C9; }

.sand-clear-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-family: var(--font);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.sand-clear-btn:hover { border-color: var(--accent); color: var(--accent); }

#sand-canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: crosshair;
  touch-action: none;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .profile-photo { width: 120px; height: 120px; }
  .nav-links { gap: 1rem; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
}
