:root {
  color-scheme: light dark;
  --bg: #f7f0e3;
  --fg: #4e3519;
  --muted: #161410a8;
  --highlight: #d1ce99;
  --shadow-accent: #b0ae9d;
  --thread-text: #0800ff;
  --inset-left: 2%;
  --inset-right: 16%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #efece4;
    --muted: #efece4b3;
    --highlight: #d1ce9999;
    --shadow-accent: #b0ae9d8c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
p,
figure {
  margin: 0;
}

.site-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.content-inset {
  padding-left: var(--inset-left);
  padding-right: var(--inset-right);
}

.content {
  padding-top: 48px;
  padding-bottom: 72px;
}

.content > section {
  margin-bottom: 48px;
}

.hero-bleed {
  width: 100%;
}

.thread-frame {
  display: grid;
  width: 100%;
}

.thread-image {
  grid-area: 1 / 1;
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

.thread-copy {
  grid-area: 1 / 1;
  align-self: start;
  margin-top: 120px;
  padding-left: var(--inset-left);
  padding-right: var(--inset-right);
  color: var(--thread-text);
  text-shadow: -0.4px 0.4px 1px #00000070;
  z-index: 1;
}

.thread-label,
.thread-meta,
aside {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.essay-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.thread-title {
  max-width: 10ch;
  padding-top: 16px;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 600;
}

.thread-manifesto {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.thread-manifesto p {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.thread-meta {
  padding-top: 16px;
}

.highlight {
  display: grid;
  gap: 12px;
  text-shadow: var(--highlight) 0.8px 0, var(--highlight) -0.8px 0;
}

.highlight p,
.content li,
.footer p,
.content section > p {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.highlight aside {
  padding-top: 8px;
  color: var(--muted);
  text-shadow: none;
}

.screenshot {
  padding: 0;
}

.screenshot img {
  width: 100%;
}

h2 {
  padding-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.content section > p + p {
  padding-top: 12px;
}

.appstore-badge {
  max-height: 32px;
  width: auto;
}

.footer {
  color: var(--muted);
  padding-bottom: 72px;
}

.footer p + p {
  padding-top: 12px;
}

.overlay {
  position: fixed;
  inset: 0;
  opacity: 0.3;
  background:
    -webkit-linear-gradient(45deg, #44bb00 25%, transparent 25%, transparent),
    -webkit-linear-gradient(-45deg, #dd2222 25%, transparent 25%, transparent),
    -webkit-linear-gradient(45deg, transparent 75%, #ffffff 75%),
    -webkit-linear-gradient(-45deg, #2c0900 75%, #ffffff 75%);
  background-size: 2px 2px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (max-width: 640px) {
  .thread-copy {
    margin-top: 88px;
    padding-right: var(--inset-right);
  }

  .thread-title {
    font-size: 42px;
  }

  .highlight p,
  .footer p,
  .content section > p {
    font-size: 14px;
  }
}
