:root {
  color-scheme: light;
  --paper: #EDEEE9;
  --sheet: #FCFCFA;
  --ink: #1B1C1A;
  --ink-2: #2E2F2B;
  --ink-3: #3D3E3A;
  /* The design's #6B6C66 and #C93A20 fall under 4.5:1 on the ruled paper, so both are a step darker. */
  --muted: #62635D;
  --red: #B8341C;
  --red-dark: #9E2A14;
  --blue: #2C5BD9;
  --rule: #C9CAC3;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.014) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--sheet); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 16px; }

.pg { position: relative; min-height: 100vh; overflow: hidden; }
.wrap { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; flex-wrap: wrap; gap: 12px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.mark:hover { color: var(--ink); }
.crys { width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); display: inline-block; }
.links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.links a { color: var(--ink-3); text-decoration: none; }
.links a:hover { color: var(--red); }

.hero { position: relative; padding: 72px 0 120px; }
.word { font-family: var(--serif); font-size: clamp(64px, 19vw, 220px); line-height: .85; letter-spacing: -0.04em; margin: 0; font-weight: 400; }
.word i { font-style: italic; color: var(--red); }
.note { position: absolute; font-family: var(--hand); font-size: 30px; font-weight: 500; color: var(--blue); line-height: 1.1; margin: 0; }
.n1 { right: 40px; top: 96px; transform: rotate(-4deg); }
.arrowsvg { position: absolute; right: 300px; top: 150px; color: var(--blue); }
.intro { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; margin-top: 36px; }
.lede { font-size: 21px; line-height: 1.55; max-width: 520px; margin: 0; color: var(--ink-2); }

.stamp { flex: none; width: 132px; height: 132px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; transform: rotate(-12deg); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(348deg); } }

.salt { position: absolute; width: 8px; height: 8px; background: #FFFFFF; border: 1px solid var(--rule); transform: rotate(45deg); animation: float 7s ease-in-out infinite; }
.s1 { left: 8%; top: 18%; }
.s2 { left: 64%; top: 12%; animation-delay: 1s; width: 6px; height: 6px; }
.s3 { left: 82%; top: 46%; animation-delay: 2s; }
.s4 { left: 38%; top: 64%; animation-delay: 3s; width: 5px; height: 5px; }
.s5 { left: 90%; top: 80%; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-14px) rotate(80deg); } }

.h2 { font-family: var(--serif); font-size: clamp(44px, 9vw, 64px); font-weight: 400; margin: 0 0 40px; letter-spacing: -0.02em; line-height: 1.05; }
.h2 i { color: var(--red); }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 120px; }
.paper { position: relative; background: var(--sheet); padding: 26px 24px 28px; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 12px 24px rgba(0,0,0,.08); text-decoration: none; color: inherit; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.paper:hover { color: inherit; }
.board .paper:nth-child(1) { transform: rotate(-2deg); }
.board .paper:nth-child(2) { transform: rotate(1.5deg) translateY(24px); }
.board .paper:nth-child(3) { transform: rotate(-1deg); }
.board a.paper:hover, .board a.paper:focus-visible { transform: rotate(0) translateY(-8px); box-shadow: 0 2px 2px rgba(0,0,0,.06), 0 24px 40px rgba(0,0,0,.12); }
.tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; background: rgba(184,52,28,.18); transform: translateX(-50%) rotate(-3deg); }
.shot { height: 170px; background: #F3E9DB; margin: 0 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.mini { width: 60px; height: 120px; border-radius: 12px; border: 3px solid #2B211A; background: #FBF6EE; }
.p-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.p-t { font-family: var(--serif); font-size: 34px; margin: 0 0 8px; }
.p-d { font-size: 15px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.scrib { font-family: var(--hand); font-size: 24px; font-weight: 500; color: var(--blue); margin: 14px 0 0; }

.cv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-bottom: 120px; }
.cv-l { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.rows { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); transition: padding .25s; }
.row:hover { padding-left: 10px; }
.row b { font-weight: 600; }
.row span { color: var(--muted); white-space: nowrap; }

.end { border-top: 2px solid var(--ink); padding: 56px 0 48px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.end-h { font-family: var(--serif); font-size: clamp(48px, 10vw, 72px); line-height: 1; margin: 0; }
.end-h a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 10px; text-decoration-thickness: 3px; }
.fine { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }

.in { animation: in .9s cubic-bezier(.2,.7,.2,1) both; }
.d2 { animation-delay: .2s; }
.d3 { animation-delay: .4s; }
@keyframes in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Inner pages: one taped sheet of paper holding plain prose. */
.sheet { position: relative; max-width: 760px; margin: 40px auto 120px; background: var(--sheet); padding: 48px 56px 56px; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 12px 24px rgba(0,0,0,.08); }
.sheet h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 9vw, 64px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 12px; }
.sheet h1 i { color: var(--red); }
.sheet h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; margin: 48px 0 12px; }
.sheet h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.sheet p, .sheet li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.sheet p { margin: 0 0 14px; }
.sheet ul { margin: 0 0 14px; padding-left: 22px; }
.sheet li { margin: 0 0 6px; }
.sheet .sub { font-family: var(--hand); font-size: 26px; font-weight: 500; color: var(--blue); margin: 0 0 28px; }
.sheet .meta { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .board, .cv { grid-template-columns: minmax(0, 1fr); }
  .note, .arrowsvg { display: none; }
  .board .paper:nth-child(n) { transform: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 80px; }
  .lede { font-size: 19px; }
  .stamp { width: 112px; height: 112px; font-size: 11px; }
  .board, .cv { padding-bottom: 80px; }
  .row { flex-wrap: wrap; }
  .sheet { padding: 36px 20px 40px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
