:root {
  --void: #080806;
  --ink: #17150F;

  --paper: #F1E8C9;
  --sand: #D8C99A;

  --yellow: #D9B94A;
  --ochre: #A88932;
  --bronze: #6E592B;
  --dust: #8D856C;
}

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

html {
  background: var(--void);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--void);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  padding: 28px 48px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.notes-link {
  font-family: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--dust);
  text-decoration: none;
  transition: color 0.2s ease;
}

.notes-link:hover {
  color: var(--paper);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 24%) minmax(0, 24%);
  align-items: end;
  gap: clamp(24px, 3vw, 48px);
  padding-top: clamp(40px, 9vh, 110px);
  padding-bottom: clamp(36px, 7vh, 84px);
}

.headline {
  grid-column: 1;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--paper);
}

.ventures {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-self: end;
}

.venture-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 10px;
}

.venture-num {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--dust);
}

.venture {
  position: relative;
  display: block;
}

a.venture-link {
  text-decoration: none;
  cursor: pointer;
}

.venture-num {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--dust);
  transition: color 0.2s ease;
}

.venture-arrow {
  position: absolute;
  top: 2px;
  right: 0;
  width: 14px;
  height: 14px;
  color: var(--yellow); /* fill="currentColor" picks this up */
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Whole-block hover: title turns yellow, arrow slides in */
.venture-link:hover .venture-name,
.venture-link:hover .venture-name a {
  color: var(--yellow);
}

.venture-link:hover .venture-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.venture-link:hover .venture-num {
  color: var(--yellow);
}

/* --- Line-mask reveal -------------------------------------------------- */
.line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.line-inner {
  display: inline-block;
  will-change: transform;
}
.notes-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 48px;
}

.logo-link {
  text-decoration: none;
}

.notes-link--active {
  color: var(--paper);
}

.notes-content {
  max-width: 720px;
  margin-top: clamp(40px, 10vh, 110px);
}

.notes-title {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: 18px;
}

.notes-intro {
  font-size: 16px;
  line-height: 1.45;
  color: var(--dust);
  margin-bottom: 56px;
  max-width: 46ch;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--ink);
}

.note-num {
  color: var(--ochre);
}

.note-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 8px;
}

.note-excerpt {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dust);
  max-width: 52ch;
}

.note-date {
  font-size: 12px;
  color: var(--bronze);
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (max-width: 900px) {
  .notes-page {
    padding: 22px 22px;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .note-date {
    order: -1;
  }
}

.tag {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dust);
  padding: 2px 7px;
  vertical-align: middle;
}

.venture-desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--dust);
  max-width: 26ch;
}

.cascade {
  position: relative; /* anchor the absolutely-positioned canvas */
  width: 100%;
  flex: 1; /* fill whatever viewport height the hero leaves */
  min-height: 380px;
  overflow: hidden;
}

.cascade canvas {
  display: block;
  width: 100%;
  position: absolute; /* sized by cascade.js (visible height + crop); never affects layout */
  top: 0;
  left: 0;
}

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

@media (max-width: 900px) {
  .hero {
    padding: 22px 22px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 44px;
    padding-top: clamp(28px, 6vh, 56px);
    padding-bottom: 44px;
  }

  .headline {
    grid-column: 1;
    font-size: clamp(30px, 8vw, 44px);
  }

  .ventures {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .venture-desc {
    max-width: none; /* let descriptions use the full mobile width */
  }

  .cascade {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cascade canvas {
    /* cascade.js renders a single static frame */
  }
}
