@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/Poppins-SemiBold.woff") format("woff"); }
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url("/fonts/LilitaOne-Regular.woff") format("woff"); }

:root {
  --paper: #fdfdfd;
  --ink: #16120e;
  --quiet: #5d554c;
  --line: #e4ded6;
  --orange: #f0750f;
  /* (Dark enough to read as words on the paper.) */
  --orange-ink: #b04f00;
  --bark: #3a2112;
  --cream: #fff3d6;
  --parchment-ink: #3b2614;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 "Poppins", system-ui, sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
.unseen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---- top and foot ---- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.brand img { width: clamp(100px, 18vw, 144px); }
.bar nav, .foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.bar nav a { color: inherit; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.bar nav a:hover { border-color: var(--orange); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .9375rem; }
.foot p { margin: 0; }
.foot a { color: inherit; padding: 6px 0; }

/* ---- the studio's pages ---- */
.intro { text-align: center; padding: 0 var(--gutter); }
/* (The film's own background is the paper's.) */
.reel { width: min(760px, 100%); aspect-ratio: 1536 / 560; margin: 0 auto; mix-blend-mode: multiply; }
.reel-still { display: none; width: min(340px, 70%); margin: clamp(40px, 9vw, 90px) auto; }
.line { margin: 0 auto clamp(40px, 6vw, 72px); max-width: 48ch; text-wrap: balance; font-size: clamp(1.125rem, 2.4vw, 1.375rem); font-weight: 500; }
.line span { display: inline-block; }
.feature { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 104px); }
.viewfinder { position: relative; display: block; padding: clamp(14px, 2.4vw, 26px); }
.viewfinder picture img { width: 100%; border-radius: 6px; }
.feature-title { position: absolute; left: 50%; top: clamp(18px, 3.4vw, 40px); width: clamp(120px, 24vw, 270px); translate: -50% 0; }
/* The logo's corners, framing the shot. */
.corner { position: absolute; width: clamp(30px, 5vw, 58px); aspect-ratio: 1; border: 0 solid var(--orange); transition: translate .25s ease-out; }
.corner.a { left: 0; top: 0; border-width: clamp(7px, 1vw, 11px) 0 0 clamp(7px, 1vw, 11px); border-top-left-radius: 14px; }
.corner.b { right: 0; top: 0; border-width: clamp(7px, 1vw, 11px) clamp(7px, 1vw, 11px) 0 0; border-top-right-radius: 14px; }
.corner.c { left: 0; bottom: 0; border-width: 0 0 clamp(7px, 1vw, 11px) clamp(7px, 1vw, 11px); border-bottom-left-radius: 14px; }
.corner.d { right: 0; bottom: 0; border-width: 0 clamp(7px, 1vw, 11px) clamp(7px, 1vw, 11px) 0; border-bottom-right-radius: 14px; }
.viewfinder:hover .a, .viewfinder:focus-visible .a { translate: 6px 6px; }
.viewfinder:hover .b, .viewfinder:focus-visible .b { translate: -6px 6px; }
.viewfinder:hover .c, .viewfinder:focus-visible .c { translate: 6px -6px; }
.viewfinder:hover .d, .viewfinder:focus-visible .d { translate: -6px -6px; }
.feature-words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 40px; padding: 28px clamp(14px, 2.4vw, 26px) 0; }
.feature-words h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 600; }
.feature-words p { margin: 0 0 14px; max-width: 58ch; }
.feature-words .soon { margin: 0; }
.feature-links { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.link { font-weight: 600; }
.soon { margin: 0; color: var(--quiet); font-weight: 500; }
.todo { background: #ffe08a; color: #4a3200; padding: 2px 8px; border-radius: 4px; }

.paper { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(56px, 8vw, 96px); }
.paper h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -.01em; }
.paper h2 { margin: 2.2em 0 .5em; padding-top: .9em; border-top: 3px solid var(--orange); font-size: 1.375rem; font-weight: 600; }
.paper li { margin: .45em 0; }
.paper ul, .paper ol { padding-left: 1.3em; }
.paper li::marker { color: var(--orange); }
.paper .lede { font-size: 1.1875rem; color: var(--quiet); margin: 0 0 1.6em; }
.paper .big { font-size: clamp(1.25rem, 3.4vw, 1.75rem); font-weight: 600; overflow-wrap: anywhere; }
.paper a { overflow-wrap: anywhere; }
.short { min-height: 56vh; }
.centred { text-align: center; }
.centred img { margin: 0 auto 20px; }
.contents { border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px; margin: 0 0 1.6em; }
.contents summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.contents ol { margin: 0 0 14px; }

/* ---- the game's page: the game's own grass, parchment and planks ---- */
.game { background: #86c957; color: var(--parchment-ink); }
.game .bar { position: absolute; inset: 0 0 auto; z-index: 3; }
.game .bar .brand { background: rgb(253 253 253 / .92); border-radius: 10px; padding: 8px 14px; }
.game .bar nav { background: rgb(253 253 253 / .92); border-radius: 10px; padding: 2px 16px; }
.game .foot { background: var(--bark); color: var(--cream); border: 0; }

.hero { position: relative; height: clamp(520px, 100svh, 1100px); overflow: hidden; background: #3b9fe0; }
/* The picture's a tall sky over the scene: as on the game's title screen,
   it opens on the sky and pans down. */
.hero-art, .hero-art picture { position: absolute; inset: 0; }
.hero-art img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; max-width: none; width: max(100%, 178svh); height: auto; animation: pan 3s .25s cubic-bezier(.45, 0, .25, 1) backwards; }
@keyframes pan { from { transform: translateY(46%); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, rgb(24 38 10 / .62)); pointer-events: none; }
.hero-words { position: absolute; inset: auto 0 0; z-index: 2; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); text-align: center; color: #fff; animation: rise .7s 2.6s ease-out backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-title { position: absolute; inset: clamp(84px, 9svh, 110px) 0 auto; z-index: 2; margin: 0; animation: rise .7s 2.6s ease-out backwards; }
.hero-title img { width: clamp(190px, 25vw, 340px); margin: 0 auto; }
.hero-words p { max-width: 36ch; margin: 14px auto; font-size: clamp(1.125rem, 2.3vw, 1.4375rem); font-weight: 500; text-shadow: 0 2px 10px rgb(0 0 0 / .55); }
.game .soon { display: inline-block; margin: 4px auto 0; padding: 8px 22px 11px; color: var(--cream); font: 400 1.1875rem/1.3 "Lilita One", sans-serif; letter-spacing: .02em; text-shadow: none; max-width: none; border: 16px solid transparent; border-image: url("/img/kit_plank.webp") 32 fill / 16px; padding: 0 8px; }
.button { display: inline-block; color: #fff; font: 400 1.375rem/1.3 "Lilita One", sans-serif; text-decoration: none; text-shadow: 0 2px 0 #1f4a12; border: 18px solid transparent; border-image: url("/img/kit_green.webp") 36 fill / 18px; padding: 0 18px; }

.feathers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.feathers i { position: absolute; top: -90px; width: 64px; aspect-ratio: 1; background: url("/img/icon-plume.webp") center / contain no-repeat; animation: fall 16s linear infinite; }
.feathers i:nth-child(1) { left: 8%; animation-duration: 17s; animation-delay: -3s; }
.feathers i:nth-child(2) { left: 24%; width: 38px; opacity: .8; animation-duration: 23s; animation-delay: -14s; }
.feathers i:nth-child(3) { left: 43%; width: 50px; animation-duration: 20s; animation-delay: -8s; }
.feathers i:nth-child(4) { left: 61%; width: 34px; opacity: .75; animation-duration: 26s; animation-delay: -21s; }
.feathers i:nth-child(5) { left: 76%; width: 60px; animation-duration: 18s; animation-delay: -11s; }
.feathers i:nth-child(6) { left: 91%; width: 42px; opacity: .85; animation-duration: 22s; animation-delay: -5s; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(-24deg); }
  25% { transform: translate(38px, 30svh) rotate(22deg); }
  50% { transform: translate(-14px, 60svh) rotate(-26deg); }
  75% { transform: translate(34px, 90svh) rotate(20deg); }
  100% { transform: translate(0, 120svh) rotate(-24deg); }
}

.meadow { background: url("/img/grass.webp") 0 0 / 512px 384px; padding: clamp(56px, 8vw, 96px) var(--gutter) 40px; }
.panel { position: relative; max-width: 1100px; margin: 0 auto; border: 30px solid transparent; border-image: url("/img/kit_parchment.webp") 60 fill / 30px; padding: clamp(22px, 4vw, 44px) clamp(4px, 2.6vw, 30px) clamp(8px, 2vw, 20px); filter: drop-shadow(0 10px 14px rgb(20 50 10 / .35)); }
.panel.small { max-width: 820px; }
.plank { width: fit-content; max-width: calc(100% + 24px); margin: calc(-1 * clamp(22px, 4vw, 44px) - 62px) auto clamp(18px, 3vw, 30px); color: var(--cream); font: 400 clamp(1.375rem, 4vw, 2.125rem)/1.15 "Lilita One", sans-serif; letter-spacing: .02em; text-align: center; border: 20px solid transparent; border-image: url("/img/kit_title.webp") 40 fill / 20px; padding: 2px 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 40px); align-items: center; }
.split.flip > .shot { order: 2; }
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.panel p { margin: 0 0 1em; }
.shot { display: block; background: #fff; padding: clamp(5px, .9vw, 10px); border-radius: 4px; box-shadow: 0 3px 0 rgb(90 60 25 / .35), 0 8px 18px rgb(60 35 10 / .28); rotate: -1deg; }
.split.flip .shot { rotate: 1deg; }
.shot.wide { rotate: 0deg; }
.shot img, .shot video { width: 100%; border-radius: 2px; }
.film { margin-bottom: clamp(20px, 3.4vw, 40px); }
.film video { aspect-ratio: 16 / 9; background: #55602f; }
.under { text-wrap: balance; max-width: 64ch; margin: 22px auto 0 !important; text-align: center; }
.under .link { color: #7a3a00; margin-left: 12px; white-space: nowrap; }
.parks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.parks img { width: 100%; border: 6px solid #fff; border-radius: 4px; box-shadow: 0 3px 0 rgb(90 60 25 / .35); }
.tricks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tricks li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.tricks img { width: 52px; }
.pals { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: center; }
.pals img { height: clamp(96px, 14vw, 150px); width: auto; margin: 0 auto 6px; }
.pals h3 { margin: 0 0 4px; font: 400 1.375rem/1.2 "Lilita One", sans-serif; }
.pals p { margin: 0; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { padding-left: 34px; background: url("/img/icon-star.webp") 0 3px / 22px no-repeat; }

/* What stands on the grass between the panels, on one line. */
.stand { max-width: 1000px; height: 210px; margin: 8px auto 92px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; }
.stand img { flex: 0 1 auto; min-width: 0; max-height: 100%; object-fit: contain; object-position: bottom; }
.stand.two, .stand.four { flex-direction: row-reverse; }

@media (max-width: 760px) {
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .shot { order: 0; }
  .feature-words { grid-template-columns: minmax(0, 1fr); }
  .feature-links { grid-column: 1; }
  .pals { grid-template-columns: minmax(0, 1fr); }
  .parks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stand { height: 150px; margin-bottom: 84px; gap: 6px; }
  .panel { border-width: 24px; border-image-width: 24px; padding-inline: 0; }
  .under .link { display: block; margin: 12px 0 0; }
  .bar { padding-block: 12px; gap: 10px; }
  .bar nav { flex-wrap: nowrap; gap: 16px; font-size: .9375rem; white-space: nowrap; }
  .game .bar .brand { padding: 6px 10px; }
  .game .bar nav { padding: 0 12px; }
  /* (It's this page.) */
  .game .bar nav a[href="/quackofdawn/"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .hero-title, .hero-words, .feathers i { animation: none; }
  .feathers { display: none; }
  .reel { display: none; }
  .reel-still { display: block; }
  .corner { transition: none; }
}
