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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #111111;
  background-color: #ffffff;
  min-height: 100vh;
  padding-left: 0;
  padding-right: 0;
}

/* ── Layout ─────────────────────────────────────────── */

.layout {
  display: flex;
  align-items: stretch;
  min-height: 100svh;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* ── Sidebar ─────────────────────────────────────────── */

.tab-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 24px 24px 48px;
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-logo {
  font-size: 0.85rem;
  color: #555555;
  letter-spacing: 0.02em;
  user-select: none;
  text-decoration: none;
}

.tab-logo:hover {
  color: #111111;
}

.tab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tab-item {
  font-size: 1rem;
  color: #666666;
  padding: 0;
  border-radius: 4px;
  transition: color 0.15s ease;
  user-select: none;
}

.tab-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.tab-item .tab-arrow {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tab-item:hover {
  color: #111111;
}

.tab-item.active {
  color: #000000;
}

.tab-item.active .tab-arrow {
  opacity: 1;
}

/* ── Content Area ────────────────────────────────────── */

.tab-content {
  flex: 1;
  min-height: 0;
  padding: 48px 40px;
  background-color: #ffffff;
}

.page {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ──────────────────────────────────────── */

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #000000;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #000000;
}

p {
  margin-bottom: 14px;
  color: #111111;
}

.prompt {
  color: #666666;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.tab-content a {
  color: #111111;
}

.tab-content a:hover {
  color: #000000;
  opacity: 1;
}

/* ── Home hero (full main column) ───────────────────── */

.tab-content.tab-content--home {
  padding: 0;
  line-height: 0;
}

.tab-content--home {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.home-image-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #e8e8ec;
  line-height: normal;
}

.home-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transition: filter 0.4s ease;
}

/* ── Quotes ──────────────────────────────────────────── */

.quote-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
  margin-top: 4px;
}

.quote-item {
  margin: 0;
}

.quote-item blockquote {
  margin: 0 0 10px 0;
  padding-left: 14px;
  border-left: 2px solid #cccccc;
  color: #111111;
  font-size: 0.95rem;
  line-height: 1.6;
}

.quote-item figcaption {
  padding-left: 14px;
  font-size: 0.85rem;
  color: #555555;
}

.quote-item cite {
  font-style: italic;
  color: #666666;
}

/* ── Essays ──────────────────────────────────────────── */

.essay-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.essay-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: #111111;
}

.essay-date {
  font-size: 0.8rem;
  color: #666666;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Toggle / Contact ────────────────────────────────── */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* ── Socials ─────────────────────────────────────────── */

.socials-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.socials-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.socials-icons a:hover {
  opacity: 0.7;
}

.socials-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Mobile ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .layout {
    flex-direction: column;
    min-height: 100svh;
  }

  .home-image-wrap {
    min-height: calc(100svh - 100px);
    flex: 1 1 auto;
  }

  .tab-sidebar {
    width: 100%;
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 16px 16px;
    gap: 16px;
  }

  .tab-logo {
    display: none;
  }

  .tab-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-item {
    font-size: 0.9rem;
  }

  .tab-content {
    flex: 1;
    min-height: 0;
    padding: 24px 16px;
    font-size: 14px;
  }

  .tab-content.tab-content--home {
    padding: 0;
  }
}
