:root {
  --paper: #f1ece1;
  --paper-soft: #fbf6eb;
  --ink: #15110d;
  --ink-soft: #3c352b;
  --muted: #776e60;
  --red: #f00018;
  --red-deep: #b90013;
  --line: rgba(21, 17, 13, 0.28);
  --line-strong: #15110d;
  --shadow: rgba(21, 17, 13, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 17, 13, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 17, 13, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.14;
  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='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.reg-mark {
  position: fixed;
  z-index: 20;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.reg-mark::before {
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
}

.reg-mark::after {
  top: 0;
  left: 6px;
  width: 1px;
  height: 13px;
}

.reg-tl {
  top: 18px;
  left: 18px;
}

.reg-tr {
  top: 18px;
  right: 18px;
}

.reg-bl {
  bottom: 18px;
  left: 18px;
}

.reg-br {
  right: 18px;
  bottom: 18px;
}

.page-shell {
  width: min(100% - 40px, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 66px 0 30px;
}

.letter {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(251, 246, 235, 0.88);
  box-shadow: 0 22px 70px var(--shadow);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-strong);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 0;
  width: 140px;
  height: 70px;
  overflow: hidden;
  text-decoration: none;
}

.wordmark img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 140px;
  height: 140px;
  display: block;
  transform: translateY(-50%);
}

.eyebrow,
.quiet-link,
.actions a,
.site-footer {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiet-link,
.site-footer a {
  text-underline-offset: 3px;
}

.quiet-link {
  color: var(--red);
}

.copy {
  padding: 34px 28px 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--red);
}

.eyebrow span:first-child {
  width: 42px;
  height: 2px;
  background: var(--red);
}

h1 {
  max-width: 600px;
  margin: 0 0 24px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(76px, 12vw, 118px);
  line-height: 0.86;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}

p + p {
  margin-top: 22px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}

.actions a {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  text-decoration: none;
}

.primary-action {
  background: var(--red);
  color: var(--paper-soft);
  box-shadow: inset -3px -3px 0 var(--ink);
}

.primary-action:hover {
  background: var(--red-deep);
}

.secondary-action {
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 10px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 680px) {
  .reg-mark {
    display: none;
  }

  .page-shell {
    width: min(100% - 22px, 760px);
    align-items: start;
    padding-top: 22px;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 68px;
    padding: 17px 18px;
  }

  .copy {
    padding: 28px 18px 22px;
  }

  h1 {
    font-size: 78px;
  }

  p {
    font-size: 16px;
  }

}
