:root {
  --ink: #211f19;
  --paper: #fefdf9;
  --lime: #acde69;
  --muted: #928f84;
  --display: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Avenir Next", Avenir, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--lime); color: var(--ink); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 12px 16px; background: var(--lime); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-header { height: 90px; padding: 0 clamp(24px, 4.3vw, 72px); display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); border-bottom: 1px solid #4b493f; }
.header-brand { display: flex; align-items: center; gap: 13px; font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: .01em; line-height: .88; text-decoration: none; }
.header-brand small { font-family: var(--body); font-size: 11px; letter-spacing: .42em; font-weight: 700; }
.door-mark { display: block; width: 31px; height: 39px; border-left: 13px solid var(--paper); border-top: 5px solid transparent; border-bottom: 4px solid transparent; position: relative; transform: skewY(-8deg); }
.door-mark span { display: block; position: absolute; left: 0; top: 4px; width: 17px; height: 29px; background: var(--lime); }
.header-link { text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .2em; border-bottom: 1px solid var(--lime); padding-bottom: 6px; }
.header-link span { color: var(--lime); font-size: 18px; margin-left: 10px; }
.header-link:hover, .header-link:focus-visible { color: var(--lime); }

.hero { min-height: min(870px, calc(100svh - 90px)); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 5vw; align-items: center; padding: 66px clamp(24px, 4.3vw, 72px) 95px; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 38vw; height: 38vw; right: -17vw; top: -25vw; border: 1px solid #535046; border-radius: 50%; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .25em; line-height: 1.4; }
.hero .eyebrow { color: var(--lime); display: flex; align-items: center; gap: 10px; }
.eyebrow-square { width: 8px; height: 8px; background: var(--lime); display: inline-block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.05em; }
.hero h1 { font-size: clamp(74px, 9.1vw, 160px); line-height: .77; margin: 42px 0 30px; white-space: nowrap; }
.hero h1 span:not(.period) { font-size: .57em; letter-spacing: .03em; }
.hero h1 .period { color: var(--lime); }
.hero-subtitle { font-family: var(--display); font-size: clamp(24px, 2.4vw, 38px); font-weight: 900; line-height: 1.06; letter-spacing: .015em; margin-bottom: 31px; }
.button { min-height: 58px; padding: 18px 22px 15px; display: inline-flex; align-items: center; justify-content: space-between; gap: 44px; background: var(--lime); color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 19px; font-weight: 900; letter-spacing: .035em; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translate(4px, -4px); background: #c8f394; }
.button span { font-family: var(--body); font-size: 25px; line-height: 0; }
.hero-art { width: min(100%, 590px); justify-self: end; position: relative; transform: rotate(2deg); }
.hero-art-back { position: absolute; inset: 0; background: var(--lime); transform: translate(19px, -21px) rotate(3deg); }
.hero-art img { position: relative; width: 100%; height: auto; background: var(--paper); box-shadow: 24px 28px 0 #151510; }
.art-stamp { position: absolute; right: -21px; bottom: -21px; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 900; line-height: .9; text-align: center; font-size: 18px; transform: rotate(14deg); }
.hero-index { position: absolute; bottom: 32px; left: clamp(24px, 4.3vw, 72px); color: #aaa79b; font-size: 10px; letter-spacing: .22em; font-weight: 800; }

.route { height: 74px; position: relative; background: var(--ink); }
.route::before { content: ""; position: absolute; width: 52%; height: 18px; background: var(--lime); right: 0; top: 0; }
.route::after { content: ""; position: absolute; width: 18px; height: 74px; background: var(--lime); left: 48%; top: 0; }
.route span { position: absolute; left: 48%; top: 56px; width: 52%; height: 18px; background: var(--lime); }

.way-intro { padding: clamp(86px, 12vw, 180px) clamp(24px, 8vw, 140px) clamp(80px, 10vw, 150px); background: var(--paper); }
.way-intro .eyebrow { margin-bottom: 36px; }
.way-intro h2 { font-size: clamp(64px, 10vw, 160px); line-height: .83; max-width: 1100px; margin-bottom: 42px; }
.way-intro h2 em { font-style: normal; color: #9acb59; }
.way-intro > p:last-child { max-width: 600px; margin: 0 0 0 auto; font-size: clamp(20px, 2.15vw, 30px); line-height: 1.25; font-weight: 650; }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rule { min-height: clamp(380px, 39vw, 650px); position: relative; overflow: hidden; padding: clamp(30px, 4.5vw, 76px); display: flex; flex-direction: column; justify-content: space-between; }
.rule-number { position: relative; z-index: 1; font-size: 12px; font-weight: 800; letter-spacing: .23em; }
.rule h3 { position: relative; z-index: 1; font-size: clamp(55px, 6.1vw, 105px); line-height: .89; margin: 0; }
.rule-one { background: var(--lime); }
.rule-one h3 span { color: var(--paper); text-shadow: 3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink); }
.rule-glyph { position: absolute; right: 4%; top: 0; font: 410px/.8 var(--display); opacity: .13; }
.rule-two { background: #e9e7dc; }
.rule-two h3 { width: 90%; }
.rule-two .dot { color: #8fc450; }
.seam { position: absolute; left: 52%; top: 20%; bottom: -3%; width: 14px; background: var(--lime); transform: rotate(22deg); box-shadow: 13px 0 0 var(--ink); }
.rule-three { background: var(--paper); }
.rule-three h3 span { color: #88b64f; }
.rule-arrow { position: absolute; right: 4%; bottom: -24%; font: 440px/.8 var(--display); color: #e2e9d7; }
.rule-four { background: var(--ink); color: var(--paper); }
.rule-four h3 span { color: var(--lime); }
.asterisk { position: absolute; right: -3%; top: -29%; font: 520px/1 var(--body); color: #3d4632; }

.closing { min-height: 660px; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--paper); }
.closing-image { background: url('/assets/door-goblin.jpg') 14% center / cover no-repeat; min-height: 520px; }
.closing-copy { padding: clamp(48px, 6vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.closing-copy .eyebrow { margin-bottom: 36px; }
.closing-copy h2 { font-size: clamp(70px, 7vw, 125px); line-height: .85; margin-bottom: 48px; }
.closing-copy h2 span { color: #8fc450; }
.closing-copy a { align-self: flex-start; font-family: var(--display); font-size: 19px; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.closing-copy a:hover { color: #679239; }
.closing-copy a span { padding-left: 14px; }
.site-footer { padding: 28px clamp(24px, 4.3vw, 72px); background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.site-footer a { text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .hero { gap: 3vw; }
  .hero h1 { font-size: clamp(69px, 9.4vw, 105px); }
  .art-stamp { width: 86px; height: 86px; font-size: 14px; }
  .rule h3 { font-size: clamp(48px, 6.3vw, 70px); }
}

@media (max-width: 760px) {
  .site-header { height: 72px; }
  .header-brand { font-size: 16px; }
  .header-brand small { font-size: 9px; }
  .header-link { font-size: 10px; }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 70px 24px 88px; gap: 58px; }
  .hero h1 { font-size: clamp(72px, 17vw, 120px); margin: 32px 0 26px; }
  .hero-art { width: min(88%, 470px); align-self: center; transform: rotate(2deg); margin-right: 20px; }
  .hero-index { bottom: 24px; }
  .route { height: 54px; }
  .route::before { height: 13px; }
  .route::after { width: 13px; height: 54px; }
  .route span { top: 41px; height: 13px; }
  .way-intro { padding: 100px 24px 105px; }
  .way-intro h2 { font-size: clamp(66px, 13vw, 112px); }
  .way-intro > p:last-child { margin-left: 0; }
  .rules { grid-template-columns: 1fr; }
  .rule { min-height: 490px; padding: 38px 24px; }
  .rule h3 { font-size: clamp(64px, 12vw, 95px); }
  .rule-two .seam { left: 82%; }
  .closing { grid-template-columns: 1fr; }
  .closing-image { min-height: 400px; background-position: 8% center; }
  .closing-copy { padding: 76px 24px 90px; }
  .site-footer { flex-wrap: wrap; line-height: 1.7; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 17vw; }
  .hero .eyebrow { font-size: 9px; }
  .button { width: 100%; }
  .rule { min-height: 410px; }
  .rule h3 { font-size: 12vw; }
  .closing-image { min-height: 300px; }
  .site-footer span:nth-child(2) { display: none; }
}

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