:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --subtext: #555;
  --link: #1a73e8;
  --border: #e6e6e6;
  --card: #fafafa;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
}

:root[data-theme="dark"] {
  --bg: #0c0d0e;
  --text: #e8e8e8;
  --subtext: #a8a8a8;
  --link: #8ab4f8;
  --border: #26282b;
  --card: #121315;
  --shadow: 0 1px 2px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* Header: right-aligned toggle like Anna's site */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(4px);
  border-bottom: 1px solid var(--border);
  height: 54px;
  padding: 0 8px;
  z-index: 10;
}

/* Toggle button using sun/moon JPGs */
.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
}

.theme-toggle img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.theme-toggle:hover { border-color: color-mix(in oklab, var(--border) 60%, var(--text)); }
.theme-toggle:active { transform: scale(0.98); }

/* Hero: image above name */
.hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 0 8px;
}

.site-avatar {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--card);
}

.name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0 0;
  text-align: center;
}

.subtitle {
  margin: 2px 0 0;
  color: var(--subtext);
  text-align: center;
}

/* Content blocks */
.block {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .site-avatar { transition: none; }
}
