:root {
  --bg: #0b0b0c;
  --bg-elevated: #131315;
  --border: #232326;
  --text: #ededf0;
  --text-dim: #9a9aa2;
  --accent: #e8a13a;
  --accent-dim: #7a5a24;
}

/* Smooth cross-page transitions where supported; a harmless no-op elsewhere */
@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .accent {
  color: var(--accent);
}

.tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-family: inherit;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.tab.is-active {
  color: #0b0b0c;
}

.tab:hover:not(.is-active) {
  color: var(--text);
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: var(--indicator-width, 0px);
  transform: translateX(var(--indicator-x, 0px));
  background: var(--accent);
  border-radius: 999px;
  z-index: 0;
}

/* Page content */

.content {
  flex: 1;
  display: flex;
  justify-content: center;
}

.content-inner {
  width: 100%;
  max-width: 640px;
  padding: 64px 32px;
}

h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.links {
  display: flex;
  gap: 20px;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

.project-list, .thought-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.project-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.project-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.thought {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.thought time {
  display: block;
  color: var(--accent-dim);
  font-size: 0.8rem;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thought p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .topbar {
    padding: 16px 20px;
  }

  .content-inner {
    padding: 40px 20px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
