:root {
  --ink: #171713;
  --paper: #eeeae1;
  --paper-deep: #ded8cd;
  --red: #d14b37;
  --muted: #6d6b63;
  --line: rgba(23, 23, 19, .2);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .72), transparent 32rem),
    linear-gradient(115deg, transparent 65%, rgba(209, 75, 55, .05));
}

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

a { color: inherit; }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 42px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-header { border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; text-decoration: none; }
.edition { color: var(--muted); }

main { overflow: hidden; }

.hero {
  min-height: min(820px, calc(100vh - 65px));
  padding: 8vh clamp(24px, 8vw, 130px) 7vh;
  display: grid;
  align-content: center;
  position: relative;
}

.hero::after {
  content: "?";
  position: absolute;
  right: clamp(-24px, 2vw, 35px);
  top: 50%;
  translate: 0 -51%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 23, 19, .1);
  font: 620 min(48vw, 660px)/.8 var(--serif);
  z-index: -1;
}

.eyebrow,
.step {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 900px;
  font: 500 clamp(84px, 16vw, 240px)/.78 var(--serif);
  letter-spacing: -.09em;
}

h1 span, h1 i { display: block; }
h1 i {
  margin-left: .72em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  font-style: normal;
}

.hero-copy {
  margin: 55px 0 0 clamp(0px, 14vw, 210px);
  max-width: 580px;
  font: 400 clamp(20px, 2.2vw, 31px)/1.65 var(--serif);
}

.hero-meta {
  margin-top: 58px;
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta span::before { content: "— "; color: var(--red); }

.start-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: clamp(36px, 8vw, 130px);
  padding: clamp(70px, 10vw, 150px) clamp(24px, 8vw, 130px);
  color: var(--paper);
  background: var(--ink);
}

.panel-copy h2,
.section-heading h2,
.notes h2 {
  margin: 0;
  font: 500 clamp(43px, 6vw, 84px)/1.05 var(--serif);
  letter-spacing: -.055em;
}

.panel-copy > p:not(.step) {
  max-width: 580px;
  margin: 30px 0 0;
  color: #bbb7ae;
  line-height: 1.9;
}

.panel-copy .privacy-note {
  padding-left: 19px;
  border-left: 2px solid var(--red);
  color: #eeeae1;
}

.copy-card {
  align-self: center;
  border: 1px solid rgba(238, 234, 225, .22);
  padding: clamp(22px, 4vw, 45px);
  background: rgba(255,255,255,.025);
}

.context-preview {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  justify-content: center;
  color: #817f78;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.context-preview strong { color: var(--red); font-weight: 500; }
.context-preview em { color: #d0ccc3; font-style: normal; }

.copy-button {
  width: 100%;
  min-height: 68px;
  border: 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  background: var(--red);
  font: 700 15px var(--sans);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.copy-button:hover { background: #e05b44; transform: translateY(-2px); }
.copy-button:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.copy-button[data-state="copied"] { background: #406c50; }
.arrow { font-size: 24px; font-weight: 400; }
.copy-status { min-height: 20px; margin: 13px 0 0; color: #b9b6ad; font-size: 12px; }
.plain-link { color: #aaa69c; font-size: 12px; text-underline-offset: 4px; }

.path { padding: clamp(80px, 12vw, 180px) clamp(24px, 8vw, 130px); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-bottom: 90px; }
.section-heading .step { align-self: start; }

.path-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.path-list li {
  min-height: 240px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.path-list li > span { color: var(--red); font: 12px ui-monospace, monospace; }
.path-list strong { margin-top: auto; font: 500 25px/1.2 var(--serif); }
.path-list p { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.manifesto {
  padding: clamp(85px, 12vw, 170px) clamp(24px, 12vw, 180px);
  color: var(--paper);
  background: var(--red);
  font: 400 clamp(28px, 4.5vw, 68px)/1.35 var(--serif);
}

.manifesto p { margin: 0 0 1.2em; }
.manifesto blockquote {
  margin: 1.8em 0 0 auto;
  max-width: 780px;
  padding-left: .6em;
  border-left: 1px solid rgba(238,234,225,.75);
  font-size: 1.08em;
}

.notes { padding: clamp(80px, 12vw, 170px) clamp(24px, 8vw, 130px); }
.notes h2 { max-width: 800px; }
.note-grid { margin-top: 80px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.note-grid article { min-height: 210px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-grid span { color: var(--red); font: 12px ui-monospace, monospace; }
.note-grid h3 { margin: 45px 0 10px; font: 500 24px var(--serif); }
.note-grid p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.closing {
  min-height: 380px;
  padding: 70px clamp(24px, 8vw, 130px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--paper-deep);
}

.closing p { font: 500 clamp(38px, 6vw, 82px) var(--serif); }
.closing a { padding-bottom: 10px; border-bottom: 1px solid; text-decoration: none; font-size: 14px; }

.site-footer { min-height: 100px; color: #96928a; background: var(--ink); }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .start-panel { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .path-list { grid-template-columns: repeat(2, 1fr); }
  .site-header { padding: 20px 24px; }
  .edition { display: none; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(78px, 28vw, 130px); }
  h1 i { margin-left: .25em; }
  .hero-copy { margin-left: 0; margin-top: 46px; }
  .path-list, .note-grid { grid-template-columns: 1fr; }
  .path-list li { min-height: 190px; }
  .closing { align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
