:root {
  --paper: #f7f7f2;
  --ink: #0b0b0b;
  --muted: #55534e;
  --line: rgba(11, 11, 11, 0.23);
  --line-strong: rgba(11, 11, 11, 0.62);
  --panel: rgba(247, 247, 242, 0.82);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  --mono: "Courier New", Courier, monospace;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

*::selection {
  background: transparent;
  color: inherit;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-touch-callout: none;
}

body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

body.entry-is-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

img,
svg {
  -webkit-user-drag: none;
  user-drag: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.entry-text,
.review-text {
  white-space: pre-line;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.quote-float {
  position: fixed;
  left: var(--quote-x, 50vw);
  top: var(--quote-y, 26vh);
  z-index: 60;
  pointer-events: none;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  line-height: 1.05;
  text-transform: lowercase;
  letter-spacing: 0.015em;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  padding: 4px 9px;
  opacity: 0;
  filter: blur(5px);
  transform:
    translate(
      calc(-50% + var(--quote-drift-x, 0px)),
      calc(-115% + var(--quote-drift-y, 0px))
    )
    rotate(var(--quote-tilt, -1deg))
    scale(0.96);
  isolation: isolate;
  mix-blend-mode: normal;
  will-change: left, top, transform, opacity, filter;
}

.quote-credit-drift {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  will-change: transform;
}

.quote-credit-text {
  display: inline;
  padding: 2px 7px 3px;
  line-height: 1.65;
  background: rgba(229, 229, 223, 0.80);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow:
    0 1px 0 rgba(247, 247, 242, 0.82);
}

.quote-float.is-visible {
  animation: creditIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quote-float.is-visible .quote-credit-drift {
  animation: hoverGravity 2400ms ease-in-out infinite;
}

.quote-float.is-leaving {
  animation: creditOut 280ms ease both;
}

@keyframes hoverGravity {
  0%, 100% {
    transform: translate3d(-1px, -2px, 0) rotate(-0.6deg);
  }

  28% {
    transform: translate3d(3px, 1px, 0) rotate(0.45deg);
  }

  56% {
    transform: translate3d(1px, 4px, 0) rotate(-0.2deg);
  }

  78% {
    transform: translate3d(-3px, 1px, 0) rotate(0.7deg);
  }
}

@keyframes creditIn {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform:
      translate(
        calc(-50% + var(--quote-drift-x, 0px)),
        calc(-92% + var(--quote-drift-y, 0px))
      )
      rotate(calc(var(--quote-tilt, -1deg) - 4deg))
      scale(0.92);
  }

  38% {
    opacity: 0.92;
    filter: blur(0);
    transform:
      translate(
        calc(-50% + var(--quote-drift-x, 0px)),
        calc(-123% + var(--quote-drift-y, 0px))
      )
      rotate(calc(var(--quote-tilt, -1deg) + 1deg))
      scale(1.025);
  }

  62% {
    opacity: 0.72;
    transform:
      translate(
        calc(-50% + var(--quote-drift-x, 0px)),
        calc(-112% + var(--quote-drift-y, 0px))
      )
      rotate(var(--quote-tilt, -1deg))
      scale(0.99);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform:
      translate(
        calc(-50% + var(--quote-drift-x, 0px)),
        calc(-115% + var(--quote-drift-y, 0px))
      )
      rotate(var(--quote-tilt, -1deg))
      scale(1);
  }
}

@keyframes creditOut {
  from {
    opacity: 1;
    filter: blur(0);
  }

  to {
    opacity: 0;
    filter: blur(6px);
    transform:
      translate(
        calc(-50% + var(--quote-drift-x, 0px)),
        calc(-132% + var(--quote-drift-y, 0px))
      )
      rotate(calc(var(--quote-tilt, -1deg) + 3deg))
      scale(0.98);
  }
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  flex: 0 0 auto;
  min-height: 210px;
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(140px, 28vw) 1fr;
  background: rgba(247, 247, 242, 0.78);
  box-shadow: var(--shadow);
  overflow: visible;
  margin-bottom: 12px;
  transition:
    background-color 260ms ease,
    color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

body.entry-is-open .site-header {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
}

.mark,
.mark-wrap {
  transition:
    background-color 260ms ease,
    color 260ms ease,
    border-color 260ms ease;
}

body.entry-is-open .mark {
  color: var(--paper);
  border-color: var(--paper);
  background: var(--ink);
}

body.entry-is-open .mark-wrap {
  border-color: rgba(247, 247, 242, 0.72);
}

.mark-wrap {
  display: grid;
  place-items: center;
  min-height: 210px;
  border-right: 1px solid var(--ink);
}

.mark {
  width: clamp(92px, 17vw, 190px);
  height: clamp(92px, 17vw, 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(4.9rem, 14vw, 11rem);
  line-height: 1;
}

.mark span {
  display: block;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-0.015em);
}

.quote-panel {
  position: relative;
  min-height: 210px;
  padding: clamp(24px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: crosshair;
  outline: none;
  overflow: visible;
}

.quote-panel h1 {
  position: relative;
  z-index: 2;
}

.eyebrow,
.post-meta {
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  max-width: 980px;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 400;
}

main {
  --list-top-edge: 0px;
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

main::before,
main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  height: 1px;
  pointer-events: none;
  background: var(--ink);
  opacity: 0;
}

main::before {
  top: var(--list-top-edge);
}

main::after {
  bottom: 0;
}

main.has-cut-top::before,
main.has-cut-bottom::after {
  opacity: 1;
}

.post-tools {
  flex: 0 0 auto;
  display: block;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--ink);
  background: rgba(247, 247, 242, 0.8);
}

input {
  width: 100%;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.62);
  padding: 11px 12px;
  border-radius: 0;
}

input::placeholder {
  color: rgba(85, 83, 78, 0.82);
}

input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.post-list {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.post-list::-webkit-scrollbar {
  display: none;
}

.post-item {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--ink);
  background: rgba(247, 247, 242, 0.86);
  overflow: clip;
}

.entry-reader {
  position: fixed;
  top: 18px;
  right: max(14px, calc((100vw - 1180px) / 2));
  bottom: 18px;
  left: max(14px, calc((100vw - 1180px) / 2));
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.entry-reader.is-open {
  pointer-events: auto;
  visibility: visible;
}

.reader-mount {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.reader-band {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  width: 100%;
  height: var(--entry-origin-height, 92px);
  pointer-events: none;
  background: var(--ink);
  transform: translateY(var(--entry-origin-offset, 42vh));
}

.entry-reader.is-open .reader-band {
  animation:
    blackBandRise 230ms cubic-bezier(0.2, 0.82, 0.22, 1) forwards,
    blackBandClear 150ms 255ms ease forwards;
}

.entry-reader.is-closing .reader-band {
  display: none;
}

@keyframes blackBandRise {
  from {
    transform: translateY(var(--entry-origin-offset, 42vh));
  }

  to {
    transform: translateY(0);
  }
}

@keyframes blackBandClear {
  from { opacity: 1; }
  to { opacity: 0; }
}

.reader-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  scrollbar-width: none;
}

.entry-reader.is-open .reader-copy {
  animation: readerCopyRise 420ms 105ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reader-copy::-webkit-scrollbar {
  display: none;
}

.entry-reader.is-closing .reader-copy {
  pointer-events: none;
  animation: readerCopyDrop 360ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes readerCopyRise {
  from {
    opacity: 0;
    transform: translateY(clamp(90px, var(--entry-origin-offset, 36vh), 360px));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes readerCopyDrop {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(clamp(70px, var(--entry-origin-offset, 30vh), 260px));
  }
}

.post-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: stretch;
}

.post-thumb-button {
  display: block;
  width: 100%;
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.post-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
  filter: grayscale(1) saturate(0.06) contrast(1.12);
  opacity: 0.82;
  transform: scale(1.012);
  transition:
    filter 1200ms cubic-bezier(0.18, 0.72, 0.18, 1),
    opacity 1200ms cubic-bezier(0.18, 0.72, 0.18, 1),
    transform 1200ms cubic-bezier(0.18, 0.72, 0.18, 1);
}

.reader-copy .post-thumb {
  filter: grayscale(0) saturate(1) contrast(1);
  opacity: 1;
  transform: scale(1.012);
}

.reader-copy .post-row {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(247, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.post-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 14px;
  padding: 13px 10px 13px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.post-copy {
  min-width: 0;
}

.post-title,
.post-subtitle,
.post-meta {
  display: block;
}

.post-title {
  font-size: clamp(1.35rem, 3vw, 2.65rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.post-subtitle {
  margin-top: 6px;
  font-size: clamp(0.96rem, 2vw, 1.2rem);
  color: inherit;
  opacity: 0.75;
}

.post-meta {
  margin-top: 7px;
  font-size: 0.82rem;
}

.post-plus {
  font-family: var(--mono);
  font-size: 2rem;
  text-align: center;
}

.reader-copy .post-plus {
  transform: rotate(45deg);
}

.post-body {
  display: none;
  border-top: 1px solid var(--ink);
  padding: clamp(18px, 4vw, 34px);
  max-width: 930px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
}

.reader-copy .post-body {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(38px, 7vw, 92px) clamp(20px, 6vw, 72px) 18vh;
}

.post-body p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
  margin: 0 0 1em;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1em;
  padding-left: 1.45em;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
}

.post-body li + li {
  margin-top: 0.3em;
}

.post-body strong,
.post-body b {
  font-weight: 700;
}

.post-body u {
  text-underline-offset: 0.13em;
}

.post-body a {
  border-bottom: 1px solid currentColor;
}

.body-image-link {
  display: block;
  width: min(100%, 760px);
  margin: 24px 0;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.44);
}

.body-image-link img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition:
    filter 900ms ease,
    transform 900ms ease,
    opacity 900ms ease;
}

.reader-copy .body-image-link img {
  filter: grayscale(0) contrast(1);
}

.body-image-link:hover img {
  transform: scale(1.018);
}

.post-body blockquote {
  margin: 24px 0;
  padding: 15px 18px;
  border-left: 6px solid var(--ink);
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.6);
}

.post-author {
  width: fit-content;
  margin-top: clamp(52px, 9vw, 110px) !important;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  color: var(--muted);
  letter-spacing: 0.035em;
  text-transform: lowercase;
}

.empty-state {
  border: 1px dashed var(--ink);
  background: rgba(247, 247, 242, 0.8);
  padding: 18px;
  font-family: var(--mono);
  color: var(--muted);
}

mark {
  background: var(--ink);
  color: var(--paper);
  padding: 0 0.12em;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .post-trigger:hover,
  .post-trigger:focus-visible,
  .post-thumb-button:hover,
  .post-thumb-button:focus-visible {
    background: var(--ink);
    color: var(--paper);
    outline: none;
  }

  .post-thumb-button:hover .post-thumb {
    filter: grayscale(0.35) saturate(0.62) contrast(1.08);
    opacity: 0.94;
    transform: scale(1.025);
  }
}

@media (hover: none) {
  a:hover,
  .post-trigger:hover,
  .post-trigger:focus,
  .post-trigger:active,
  .post-thumb-button:hover,
  .post-thumb-button:focus,
  .post-thumb-button:active {
    background: transparent;
    color: var(--ink);
  }

  .body-image-link:hover img {
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
    padding: 9px 0;
  }

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

  .mark-wrap {
    min-height: 155px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .mark {
    width: clamp(92px, 17vw, 190px);
    height: clamp(92px, 17vw, 190px);
    font-size: clamp(4.9rem, 14vw, 11rem);
  }

  .quote-panel {
    min-height: 210px;
    padding: 32px 18px 28px;
  }

  .quote-panel h1 {
    font-size: clamp(2.25rem, 7vw, 6.2rem);
  }

  .post-tools {
    margin-bottom: 12px;
    padding: 10px;
  }

  .entry-reader {
    inset: 9px;
  }

  .quote-float {
    font-size: 0.82rem;
    max-width: calc(100vw - 26px);
  }

  .post-row {
    grid-template-columns: 78px 1fr;
  }

  .post-thumb-button {
    min-height: 78px;
  }

  .post-thumb {
    min-height: 78px;
  }

  .post-trigger {
    grid-template-columns: 1fr 30px;
    gap: 9px;
    padding-left: 12px;
  }

  .post-subtitle {
    font-size: 0.9rem;
  }

}
