:root {
  --background: #f5f3ee;
  --foreground: #1a1815;
  --accent: #8b2040;
  --muted-light: #c8c4bc;
  --border: #e0ddd6;
  --text-secondary: #5a5650;
  --text-faint: #a8a4a0;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 13px;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

::selection {
  color: var(--accent);
  background: #e8d5da;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-light);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-inline: 24px;
}

.shell {
  width: 100%;
  max-width: 36rem;
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
}

.brand {
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 150ms ease;
}

.brand:hover {
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-button {
  position: relative;
  padding-bottom: 4px;
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  transition: color 150ms ease;
}

.nav-button:hover {
  color: var(--text-secondary);
}

.nav-button.active {
  color: var(--foreground);
}

.tab-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--foreground);
}

.rule {
  height: 1px;
  margin-top: 24px;
  background: var(--border);
}

.entry + .rule {
  margin-block: 0;
}

.main {
  position: relative;
  flex: 1;
}

.panel {
  display: none;
  width: 100%;
  max-width: 36rem;
  padding-block: 56px;
}

.panel[hidden] {
  display: none;
}

.panel.active {
  display: block;
  animation: panel-in 200ms ease both;
}

.panel.leaving {
  display: block;
  animation: panel-out 120ms ease both;
}

.stack > * + * {
  margin-top: 16px;
}

.section-stack > * + * {
  margin-top: 40px;
}

.small-stack > * + * {
  margin-top: 12px;
}

.intro-block > * {
  animation: item-in 300ms ease both;
}

.intro-block > :nth-child(2) {
  animation-delay: 50ms;
}

.intro-block > :nth-child(3) {
  animation-delay: 100ms;
}

h1,
h2 {
  color: var(--foreground);
  font-weight: 500;
}

.intro-block p,
.point-list li {
  color: var(--text-secondary);
}

.kicker {
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.interest-list,
.point-list {
  color: var(--text-secondary);
}

.interest-list > * + *,
.point-list > * + * {
  margin-top: 6px;
}

.interest-list li {
  display: flex;
  gap: 12px;
}

.interest-list li span:first-child {
  width: 112px;
  flex-shrink: 0;
  color: var(--foreground);
}

.interest-list li span:last-child,
.coming-soon {
  color: var(--text-faint);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

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

.links .arrow {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity 150ms ease;
}

.links a:hover .arrow {
  opacity: 0.6;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.meta {
  flex-shrink: 0;
  color: var(--text-faint);
}

.point-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dash {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--muted-light);
}

.small-stack,
.entry {
  animation: item-in 300ms ease both;
}

.section-stack > .small-stack:nth-child(2) {
  animation-delay: 150ms;
}

.section-stack > .small-stack:nth-child(3) {
  animation-delay: 250ms;
}

.timeline > .entry:nth-child(1) {
  animation-delay: 0ms;
}

.timeline > .entry:nth-child(3) {
  animation-delay: 80ms;
}

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

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

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 40rem) {
  .entry-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .meta {
    text-align: right;
  }
}

@media (max-width: 520px) {
  .header {
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    gap: 14px;
  }

  .interest-list li {
    flex-direction: column;
    gap: 0;
  }

  .interest-list li span:first-child {
    width: auto;
  }
}
