:root {
  --ink: #11100e;
  --paper: #f4ead7;
  --paper-light: #fffaf0;
  --kraft: #c8a16a;
  --kraft-dark: #9b7040;
  --rust: #9f3d28;
  --shadow: rgba(42, 29, 15, .26);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Arial, sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    repeating-linear-gradient(7deg, transparent 0 13px, rgba(85, 55, 28, .08) 14px 15px),
    repeating-linear-gradient(96deg, transparent 0 21px, rgba(255, 255, 255, .5) 22px 23px);
  mix-blend-mode: multiply;
  z-index: 20;
}

img { display: block; max-width: 100%; }
a, button { font: inherit; }

.hero {
  min-height: 100svh;
  padding: clamp(24px, 4vw, 54px) clamp(18px, 5vw, 76px) 70px;
  background:
    linear-gradient(172deg, transparent 0 72%, rgba(131, 91, 47, .16) 72.2% 73%, transparent 73.2%),
    var(--paper);
}

.hero__logo-wrap { text-align: center; }
.hero__logo { width: min(780px, 84vw); margin: 0 auto 14px; }

.hero__line,
.scribble,
.eyebrow {
  font: 900 clamp(.75rem, 1.3vw, 1rem)/1.1 "Arial Black", Impact, sans-serif;
  letter-spacing: .13em;
}

.hero__line { display: inline-block; margin: 0; padding: 8px 13px; border: 3px solid var(--ink); transform: rotate(-1deg); background: var(--paper-light); }

.hero__stage {
  width: min(1180px, 100%);
  margin: clamp(32px, 5vw, 66px) auto 0;
  display: grid;
  grid-template-columns: minmax(330px, 1.05fr) minmax(330px, .95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
}

.portrait-frame {
  position: relative;
  padding: clamp(14px, 2.2vw, 26px);
  background: #fff;
  border: 5px solid var(--ink);
  box-shadow: 16px 18px 0 var(--kraft-dark);
  transform: rotate(-1.3deg);
}

.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.tape {
  position: absolute;
  width: 92px;
  height: 28px;
  background: rgba(206, 164, 93, .76);
  border: 2px solid rgba(17, 16, 14, .28);
  z-index: 2;
}
.tape--one { left: -28px; top: 8%; transform: rotate(-42deg); }
.tape--two { right: -27px; bottom: 9%; transform: rotate(-38deg); }

.hero__note { position: relative; }
.scribble { display: inline-block; margin: 0 0 22px; color: var(--rust); transform: rotate(1.6deg); }
h1, h2, h3 { font-family: "Arial Black", Impact, sans-serif; letter-spacing: -.055em; }
h1 { margin: 0; max-width: 690px; font-size: clamp(2.8rem, 6.6vw, 6.6rem); line-height: .86; white-space: pre-line; }
.hero__note > p:not(.scribble) { max-width: 560px; font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.5; }

.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.paper-button {
  min-width: 118px;
  padding: 14px 22px 12px;
  color: var(--ink);
  background: var(--kraft);
  border: 4px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  text-decoration: none;
  text-align: center;
  font: 900 1rem/1 "Arial Black", Impact, sans-serif;
  transform: rotate(-1deg);
  transition: transform .12s ease, box-shadow .12s ease;
}
.paper-button:nth-child(2) { transform: rotate(1deg); background: var(--paper-light); }
.paper-button:nth-child(3) { transform: rotate(-.5deg); background: #d8b77e; }
.paper-button:hover, .paper-button:focus-visible { transform: translate(3px, 4px); box-shadow: 2px 2px 0 var(--ink); }

.statement {
  min-height: 620px;
  padding: 110px max(6vw, 22px);
  display: grid;
  grid-template-columns: minmax(150px, 280px) minmax(0, 850px);
  justify-content: center;
  align-items: center;
  gap: clamp(38px, 7vw, 110px);
  background: var(--kraft);
  border-block: 5px solid var(--ink);
}
.stamp { width: min(230px, 100%); aspect-ratio: 1; display: grid; place-items: center; border: 8px double var(--rust); border-radius: 50%; color: var(--rust); font: 900 clamp(1.5rem, 4vw, 3.3rem)/.85 "Arial Black", Impact, sans-serif; text-align: center; transform: rotate(-8deg); }
.statement h2, .contract h2 { margin: 0; font-size: clamp(2.5rem, 6vw, 6rem); line-height: .9; white-space: pre-line; }
.statement p:not(.eyebrow) { max-width: 760px; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; }

.rules { padding: 125px max(5vw, 20px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: 1360px; margin: auto; }
.scrap { min-height: 330px; padding: 35px 30px; background: var(--paper-light); border: 4px solid var(--ink); box-shadow: 10px 11px 0 var(--kraft-dark); }
.scrap--left { transform: rotate(-2deg); }
.scrap--middle { transform: rotate(1.5deg); background: #e1bd83; }
.scrap--right { transform: rotate(-1deg); }
.scrap span { font: 900 3rem/1 "Arial Black", Impact, sans-serif; color: var(--rust); }
.scrap h3 { font-size: clamp(1.65rem, 2.8vw, 2.6rem); line-height: .95; margin: 30px 0 18px; }
.scrap p { font-size: 1.08rem; line-height: 1.5; }

.contract { padding: 100px max(6vw, 22px); display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(40px, 8vw, 120px); background: #1b1915; color: var(--paper-light); border-block: 5px solid var(--ink); }
.contract__copy { justify-self: end; max-width: 560px; }
.contract .eyebrow { color: #e1bd83; }
.contract-slip { width: min(720px, 100%); min-height: 190px; padding: 35px; display: grid; gap: 25px; place-items: center; color: var(--ink); background: var(--paper); border: 5px solid var(--kraft); box-shadow: 12px 13px 0 var(--kraft-dark); cursor: pointer; transform: rotate(1deg); }
.contract-slip span { max-width: 100%; overflow-wrap: anywhere; font: 900 clamp(1rem, 2vw, 1.55rem)/1.3 ui-monospace, monospace; }
.contract-slip strong { padding: 9px 14px; border: 3px solid var(--ink); font-family: "Arial Black", Impact, sans-serif; }

.finale { padding: 130px 20px 115px; text-align: center; background: var(--kraft); }
.finale__logo { width: min(790px, 88vw); margin: 0 auto 25px; }
.finale > p { margin: 0; font: 900 clamp(1.3rem, 3vw, 2.4rem)/1.1 "Arial Black", Impact, sans-serif; }
.actions--center { justify-content: center; }

footer { padding: 24px max(5vw, 20px); display: flex; justify-content: space-between; gap: 18px; background: var(--paper-light); border-top: 5px solid var(--ink); font-size: .83rem; font-weight: 800; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__stage { grid-template-columns: 1fr; max-width: 660px; }
  .hero__note { order: -1; }
  .statement { grid-template-columns: 1fr; }
  .stamp { width: 170px; }
  .rules { grid-template-columns: 1fr; max-width: 650px; }
  .contract { grid-template-columns: 1fr; }
  .contract__copy { justify-self: start; }
}

@media (min-width: 761px) and (max-width: 960px) {
  .hero { padding-top: 24px; padding-bottom: 36px; }
  .hero__logo { width: min(600px, 70vw); }
  .hero__stage { margin-top: 24px; gap: 32px; grid-template-columns: .95fr 1.05fr; }
  .portrait-frame { padding: 14px; box-shadow: 10px 11px 0 var(--kraft-dark); }
  .portrait-frame img { max-height: 350px; object-fit: contain; }
  h1 { font-size: 3rem; line-height: .88; }
  .hero__note > p:not(.scribble) { font-size: 1rem; }
  .actions { gap: 9px; margin-top: 20px; }
  .paper-button { min-width: 100px; padding-inline: 14px; }
}

@media (max-width: 520px) {
  .hero { padding-inline: 14px; }
  .hero__logo { width: 98vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
  .hero__line { font-size: .63rem; }
  .hero__stage { margin-top: 26px; gap: 22px; }
  .hero__note { padding-inline: 6px; }
  h1 { font-size: clamp(2.15rem, 9.5vw, 2.8rem); line-height: .9; }
  .portrait-frame { padding: 10px; box-shadow: 9px 10px 0 var(--kraft-dark); }
  .portrait-frame img { max-height: 240px; object-fit: contain; }
  .actions { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
  .paper-button { min-width: 0; padding: 13px 7px 11px; font-size: .78rem; box-shadow: 4px 4px 0 var(--ink); }
  .statement { min-height: 0; padding-block: 80px; }
  .statement h2, .contract h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .rules { padding-block: 85px; }
  .scrap { min-height: 0; }
  .contract { padding-block: 80px; }
  .contract-slip { min-height: 160px; padding: 25px 16px; }
  .finale { padding-block: 90px 80px; }
  footer { flex-direction: column; }
}

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

/* Generated ANONJAK paper UI — the image edges replace clean CSS geometry. */
.hero__line {
  min-width: min(450px, 92vw);
  padding: 22px 46px 25px;
  color: #fff;
  border: 0;
  background: url("assets/ui-button-kraft.png") center / 100% 100% no-repeat;
  text-shadow: 2px 2px 0 #111;
  transform: rotate(-.7deg);
}

.portrait-frame {
  padding: clamp(55px, 7vw, 92px) clamp(45px, 6vw, 80px) clamp(38px, 5vw, 68px);
  border: 0;
  box-shadow: none;
  background: url("assets/ui-card-white.png") center / 100% 100% no-repeat;
}

.portrait-frame img { aspect-ratio: auto; object-fit: contain; }
.tape { display: none; }

.paper-button {
  min-width: 150px;
  padding: 25px 30px 28px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  color: #fff;
  border: 0;
  box-shadow: none;
  background: url("assets/ui-button-kraft.png") center / 100% 100% no-repeat;
  text-shadow: 3px 3px 0 #111;
  transform: rotate(-1.3deg);
}

.paper-button:nth-child(2),
.paper-button:nth-child(3) {
  color: #fff;
  background: url("assets/ui-button-kraft.png") center / 100% 100% no-repeat;
  transform: rotate(1deg) scale(.98);
}

.paper-button:nth-child(3) { transform: rotate(-.5deg) scale(1.02); }
.paper-button:hover, .paper-button:focus-visible { transform: rotate(1deg) scale(.96); box-shadow: none; }

.statement {
  position: relative;
  min-height: 720px;
  border: 0;
  background: var(--paper) url("assets/ui-panel-kraft.png") center / min(1320px, 96vw) 88% no-repeat;
}

.statement > * { position: relative; z-index: 1; }
.statement .eyebrow { color: #fff; text-shadow: 2px 2px 0 #111; }
.statement h2, .statement p:not(.eyebrow) { color: #111; }

.stamp {
  width: min(250px, 100%);
  aspect-ratio: 4 / 5;
  padding: 55px 38px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: url("assets/ui-card-kraft.png") center / 100% 100% no-repeat;
  text-shadow: 3px 3px 0 #111;
  transform: rotate(-7deg);
}

.scrap {
  min-height: 440px;
  padding: 112px 66px 76px;
  border: 0;
  box-shadow: none;
  background: url("assets/ui-card-kraft.png") center / 100% 100% no-repeat;
}
.scrap--middle { background: url("assets/ui-card-kraft.png") center / 100% 100% no-repeat; }
.scrap span { color: #fff; text-shadow: 2px 2px 0 #111; }

.contract {
  position: relative;
  min-height: 650px;
  color: #111;
  border: 0;
  background: var(--paper) url("assets/ui-panel-kraft.png") center / min(1380px, 97vw) 90% no-repeat;
  grid-template-columns: minmax(0, 510px) minmax(0, 610px);
  justify-content: center;
  padding-inline: max(7vw, 72px);
}
.contract .eyebrow { color: #fff; text-shadow: 2px 2px 0 #111; }
.contract__copy, .contract-slip { position: relative; z-index: 1; }
.contract__copy { justify-self: stretch; padding-left: 72px; }
.contract__copy h2 { max-width: 500px; font-size: clamp(2.5rem, 5vw, 5.3rem); }
.contract-slip {
  width: min(610px, 100%);
  min-height: 280px;
  padding: 82px 88px 62px;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  color: #111;
  border: 0;
  box-shadow: none;
  background: url("assets/ui-panel-kraft.png") center / 100% 100% no-repeat;
}
.contract-slip strong {
  min-width: 150px;
  padding: 24px 32px 27px;
  color: #fff;
  border: 0;
  background: url("assets/ui-button-kraft.png") center / 100% 100% no-repeat;
  text-shadow: 3px 3px 0 #111;
  display: grid;
  place-items: center;
  line-height: 1;
}

.finale { background: var(--paper); }
footer { border: 0; background: var(--paper-light); }

@media (max-width: 960px) {
  .paper-button { min-width: 116px; padding: 21px 18px 23px; }
  .portrait-frame { padding: 50px 42px 36px; }
  .contract { grid-template-columns: .85fr 1.15fr; padding-inline: 58px; gap: 42px; }
  .contract__copy { padding-left: 38px; }
  .contract-slip { padding-inline: 54px; }
}

@media (max-width: 760px) {
  .statement, .contract { background-size: auto 96%; }
  .stamp { width: 170px; padding: 38px 26px; }
  .scrap { padding: 92px 56px 65px; }
  .contract { grid-template-columns: 1fr; padding: 115px 44px 105px; gap: 36px; }
  .contract__copy { padding: 0 24px; }
  .contract-slip { justify-self: center; }
}

@media (max-width: 520px) {
  .hero__line { min-width: 0; width: 94%; padding: 17px 20px 19px; }
  .portrait-frame { padding: 43px 34px 30px; }
  .paper-button { min-width: 0; padding: 17px 7px 19px; font-size: .76rem; }
  .statement { padding-block: 100px; background-size: auto 94%; }
  .statement .stamp { justify-self: center; }
  .scrap { min-height: 385px; padding: 83px 47px 58px; }
  .contract { padding-block: 115px; background-size: auto 96%; }
  .contract { padding-inline: 24px; gap: 26px; }
  .contract__copy { padding-inline: 28px; }
  .contract-slip { width: 100%; min-height: 230px; padding: 68px 48px 52px; }
  .contract-slip strong { min-width: 132px; padding: 20px 24px 23px; }
}
