:root {
  --thoughts-paper: #fbfaf4;
  --thoughts-ink: #050505;
  --thoughts-muted: rgb(5 5 5 / 58%);
  --thoughts-rule: rgb(5 5 5 / 18%);
  --thoughts-accent: #b6ff00;
  --thoughts-page-x: calc(var(--frame-x) + clamp(22px, 2.2vw, 36px));
  --thoughts-gap: clamp(34px, 5vw, 78px);
}

.thoughts-page-body {
  min-height: 100%;
  background: var(--thoughts-paper);
}

.thoughts-page {
  position: relative;
  min-height: 100dvh;
  overflow: clip;
  background: var(--thoughts-paper);
  color: var(--thoughts-ink);
  isolation: isolate;
}

.thoughts-atmosphere {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 10% 13%, rgb(154 218 255 / 28%), transparent 31%),
    radial-gradient(circle at 85% 25%, rgb(255 230 197 / 24%), transparent 34%),
    radial-gradient(circle at 65% 78%, rgb(255 196 225 / 16%), transparent 36%),
    var(--thoughts-paper);
  pointer-events: none;
}

.thoughts-pointer-canvas {
  z-index: 30;
  filter: none;
}

.thoughts-site-header {
  color: #fff;
  mix-blend-mode: difference;
}

.thoughts-site-header [aria-current="page"]::after {
  transform: scaleX(1);
}

.thoughts-hero,
.thoughts-library {
  position: relative;
  z-index: 1;
  padding-right: var(--thoughts-page-x);
  padding-left: var(--thoughts-page-x);
}

.thoughts-hero {
  display: grid;
  min-height: 78dvh;
  padding-top: clamp(128px, 16vh, 174px);
  padding-bottom: clamp(82px, 11vh, 122px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  align-items: start;
  column-gap: var(--thoughts-gap);
}

.thoughts-kicker,
.thoughts-count,
.thoughts-library-heading,
.thought-entry-meta,
.thought-entry-number,
.thought-entry-visual figcaption,
.thought-entry-cta,
.thoughts-note {
  font-family: "Roobert SemiMono Trial", monospace;
  letter-spacing: -0.045em;
}

.thoughts-kicker,
.thoughts-count,
.thoughts-intro,
.thoughts-library-heading p,
.thoughts-note p {
  margin: 0;
}

.thoughts-kicker {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  text-transform: uppercase;
}

.thoughts-hero h1 {
  grid-column: 1 / 4;
  grid-row: 2;
  margin: clamp(50px, 7vh, 78px) 0;
  align-self: center;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(76px, 10.8vw, 166px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.79;
  text-transform: uppercase;
}

.thoughts-hero h1 span {
  display: block;
  white-space: nowrap;
}

.thoughts-count {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  color: var(--thoughts-muted);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.35;
  text-transform: uppercase;
}

.thoughts-count::before {
  display: inline-block;
  width: 9px;
  margin-right: 10px;
  aspect-ratio: 1;
  background: var(--thoughts-accent);
  content: "";
}

.thoughts-intro {
  grid-column: 3;
  grid-row: 3;
  max-width: 34ch;
  justify-self: end;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.thoughts-library {
  padding-bottom: clamp(160px, 20vh, 220px);
}

.thoughts-library-heading {
  display: grid;
  padding: 20px 0 22px;
  grid-template-columns: 2fr 1fr;
  gap: var(--thoughts-gap);
  border-top: 1px solid var(--thoughts-rule);
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.2;
  text-transform: uppercase;
}

.thoughts-library-heading p:last-child {
  color: var(--thoughts-muted);
}

.thoughts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thought-entry-link {
  display: grid;
  min-height: min(72dvh, 760px);
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  color: inherit;
}

.thought-entry-visual {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #b9ccdc;
}

.thought-entry-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 63%, rgb(0 0 0 / 34%));
  content: "";
  pointer-events: none;
}

.thought-entry-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.thought-entry-number,
.thought-entry-visual figcaption {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1;
  text-transform: uppercase;
}

.thought-entry-number {
  left: 18px;
  padding: 7px 9px;
  background: rgb(251 250 244 / 90%);
}

.thought-entry-visual figcaption {
  right: 18px;
  color: #fff;
}

.thought-entry-content {
  position: relative;
  display: flex;
  min-width: 0;
  padding: clamp(34px, 4vw, 64px);
  flex-direction: column;
  background: var(--thoughts-ink);
  color: var(--thoughts-paper);
}

.thought-entry-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px 20px;
  color: rgb(251 250 244 / 58%);
  font-size: clamp(10px, 0.82vw, 13px);
  line-height: 1.15;
  text-transform: uppercase;
}

.thought-entry-meta span:first-child {
  grid-column: 1;
  grid-row: 1;
}

.thought-entry-meta time {
  grid-column: 1;
  grid-row: 2;
  font-variant-numeric: tabular-nums;
}

.thought-entry-meta span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.thought-entry-meta span,
.thought-entry-meta time {
  white-space: nowrap;
}

.thought-entry-content h2 {
  max-width: 10ch;
  margin: clamp(62px, 9vh, 110px) 0 0;
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(46px, 4.8vw, 74px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.91;
  text-transform: uppercase;
  text-wrap: balance;
}

.thought-entry-dek {
  max-width: 30ch;
  margin: clamp(26px, 4vh, 42px) 0 0;
  color: rgb(251 250 244 / 72%);
  font-family: "Roobert Trial", Arial, sans-serif;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.thought-entry-content blockquote {
  max-width: 31ch;
  margin: clamp(46px, 6vh, 72px) 0 0;
  color: rgb(251 250 244 / 58%);
  font-family: "Roobert SemiMono Trial", monospace;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.thought-entry-cta {
  display: inline-flex;
  min-height: 44px;
  width: fit-content;
  margin-top: auto;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
  text-transform: uppercase;
}

.thought-entry-cta img {
  width: 15px;
  filter: invert(1);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.thought-entry-pixel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(16px, 1.35vw, 22px);
  aspect-ratio: 1;
  background: var(--thoughts-accent);
}

.thought-entry-link:hover .thought-entry-visual img,
.thought-entry-link:focus-visible .thought-entry-visual img {
  transform: scale(1.018);
}

.thought-entry-link:hover .thought-entry-cta img,
.thought-entry-link:focus-visible .thought-entry-cta img {
  transform: translate(3px, -3px);
}

.thought-entry-link:focus-visible {
  outline: 2px solid var(--thoughts-ink);
  outline-offset: 5px;
}

.thoughts-note {
  display: grid;
  padding: clamp(72px, 10vh, 110px) 0 0;
  grid-template-columns: 2fr 1fr;
  gap: var(--thoughts-gap);
  color: var(--thoughts-muted);
  font-size: clamp(11px, 0.9vw, 14px);
  line-height: 1.45;
  text-transform: uppercase;
}

.thoughts-note p:last-child {
  max-width: 40ch;
}

.thoughts-site-footer {
  color: #fff;
  mix-blend-mode: difference;
}

.thoughts-site-footer img {
  filter: invert(1);
}

.thoughts-footer-email {
  justify-self: end;
}

@media (max-width: 1023px) {
  :root {
    --thoughts-page-x: calc(var(--mobile-frame-x) + 24px);
  }

  .thoughts-hero {
    min-height: 720px;
    padding-top: 120px;
    padding-bottom: 92px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .thoughts-hero h1 {
    grid-column: 1 / 3;
    font-size: clamp(70px, 13vw, 106px);
  }

  .thoughts-intro {
    grid-column: 2;
  }

  .thoughts-library-heading {
    grid-template-columns: 1fr 1fr;
  }

  .thought-entry-link {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .thought-entry-visual {
    aspect-ratio: 16 / 9;
  }

  .thought-entry-content {
    min-height: 620px;
  }

  .thought-entry-content h2 {
    max-width: 12ch;
    font-size: clamp(54px, 8vw, 76px);
  }

  .thoughts-note {
    grid-template-columns: 1fr 1fr;
  }

  .thoughts-site-footer {
    right: var(--mobile-frame-x);
    bottom: var(--mobile-frame-y);
    left: var(--mobile-frame-x);
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
  }

  .thoughts-mobile-menu-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --thoughts-page-x: calc(var(--mobile-frame-x) + 18px);
  }

  .thoughts-hero {
    display: flex;
    min-height: 660px;
    padding-top: 108px;
    padding-bottom: 76px;
    flex-direction: column;
  }

  .thoughts-hero h1 {
    margin: 76px 0 70px;
    font-size: clamp(50px, 15.2vw, 68px);
  }

  .thoughts-hero h1 span {
    white-space: normal;
  }

  .thoughts-count {
    order: 4;
    margin-top: 34px;
  }

  .thoughts-intro {
    max-width: 29ch;
    align-self: flex-end;
    font-size: 22px;
  }

  .thoughts-library {
    padding-bottom: 136px;
  }

  .thoughts-library-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .thought-entry-visual {
    aspect-ratio: 4 / 3;
  }

  .thought-entry-content {
    min-height: 590px;
    padding: 28px 22px 34px;
  }

  .thought-entry-meta {
    font-size: 10px;
  }

  .thought-entry-content h2 {
    margin-top: 64px;
    font-size: clamp(43px, 13.4vw, 58px);
  }

  .thought-entry-dek {
    font-size: 17px;
  }

  .thought-entry-content blockquote {
    margin: 40px 0 0;
    font-size: 11px;
  }

  .thoughts-note {
    padding-top: 70px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .thoughts-site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .thoughts-footer-email {
    display: inline-flex;
  }

  .thoughts-mobile-menu-footer {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thoughts-page *,
  .thoughts-page *::before,
  .thoughts-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
