@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Space+Grotesk:wght@300;400&display=swap');

:root {
  color-scheme: light dark;
  --paper: #edeae3;
  --ink: #161614;
  --soft: rgba(22, 22, 20, .64);
  --faint: rgba(22, 22, 20, .42);
  --line: rgba(22, 22, 20, .16);
  --red: #9d2b1f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121210;
    --ink: #e9e5d8;
    --soft: rgba(233, 229, 216, .66);
    --faint: rgba(233, 229, 216, .4);
    --line: rgba(233, 229, 216, .15);
    --red: #c45a47;
  }
}

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

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(127,127,127,.05) 0 1px, transparent 1px 3px);
}

::selection { background: var(--red); color: #fff; }

/* vertical edge note */
.edge {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--faint);
  z-index: 5;
}

/* top and bottom bars */
.top, .bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
}

.top { border-bottom: 1px solid var(--line); }
.top-no { color: var(--ink); }

.bottom {
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.mark { color: var(--red); }

/* sheet */
.sheet {
  position: relative;
  width: min(780px, 100% - 48px);
  margin: 0 auto;
  padding: 76px 0 60px;
  flex: 1;
  animation: rise .9s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 30px;
}

.sq {
  width: 8px;
  height: 8px;
  background: var(--red);
  flex: none;
}

.title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.title .n {
  display: block;
  font-size: clamp(5rem, 14vw, 9.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}

.title .word {
  display: block;
  font-style: italic;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  margin-top: 4px;
}

.title .word em {
  font-style: normal;
  color: var(--red);
}

.rule {
  height: 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 42px 0 38px;
}

/* denied stamp */
.stamp {
  position: absolute;
  top: 70px;
  right: 4px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--red);
  color: var(--red);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.7;
  transform: rotate(8deg);
  opacity: .92;
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--red);
  opacity: .55;
}

.stamp span { padding-left: .22em; }

/* text columns */
.cols {
  display: grid;
  grid-template-columns: 1.28fr .85fr;
  gap: 56px;
  align-items: start;
}

.lede {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
}

.lede::first-letter {
  font-size: 1.35em;
  line-height: 1;
  padding-right: 2px;
}

.side p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--soft);
  font-weight: 300;
}

.side strong {
  font-weight: 400;
  color: var(--ink);
}

.rule-no {
  font-size: 10px !important;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint) !important;
  margin-bottom: 12px;
}

.side .quiet {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

/* meta */
.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.meta div { padding: 16px 20px 0 0; }

.meta div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.meta dt {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.meta dd {
  font-size: 12.5px;
  letter-spacing: .05em;
}

@media (max-width: 760px) {
  .edge { display: none; }
}

@media (max-width: 640px) {
  .sheet { padding: 56px 0 44px; }
  .stamp {
    position: static;
    transform: rotate(-3deg);
    width: 104px;
    height: 104px;
    margin-bottom: 30px;
  }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .meta { grid-template-columns: 1fr; }
  .meta div + div { padding-left: 0; border-left: 0; margin-top: 14px; }
  .top span:last-child, .bottom span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
}
