/* Krystalina's Shark Den: a plain, easy page dressed like a cut-and-paste zine, on Ellen's argyle. */
:root {
  --bg: #110A0E; --bg-2: #180D13; --ink: #1A0610; --pink: #FF3D8B; --crimson: #C8102E; --cream: #FFF4EA; --muted: #CDB8C1; --card-ink: #4A3A40;
  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif; --body: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); overflow-anchor: none; } /* no browser nudging on reload: the effects change sizes while loading */
/* The background: her argyle (like her stockings) in two dark tones, a crimson wash from the top right, faint grain. */
body { margin: 0; color: var(--cream); font: 500 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 92% -8%, rgba(200, 16, 46, .26), transparent 62%),
    radial-gradient(900px 700px at -12% 58%, rgba(255, 61, 139, .09), transparent 62%),
    repeating-linear-gradient(56deg, transparent 0 46px, rgba(255, 244, 234, .045) 46px 47px, transparent 47px 92px),
    repeating-linear-gradient(-56deg, transparent 0 46px, rgba(255, 244, 234, .045) 46px 47px, transparent 47px 92px),
    conic-gradient(from 45deg, var(--bg-2) 25%, var(--bg) 0 50%, var(--bg-2) 0 75%, var(--bg) 0);
  background-size: auto, auto, auto, auto, 110px 164px;
  background-attachment: fixed, fixed, scroll, scroll, scroll; }
body::after { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .nav, .foot { position: relative; z-index: 1; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--pink); color: var(--ink); padding: 8px 14px; }

/* buttons: pink pill = do it, outline = the other option */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 16px var(--body); text-decoration: none; transition: transform .12s ease-out, background .15s; }
.btn:active { transform: scale(.96); }
.btn.pink { background: var(--pink); color: var(--ink); } .btn.pink:hover { background: #FF5E9F; }
.btn.line { background: none; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); } .btn.line:hover { background: rgba(255, 244, 234, .1); }
.btn.dark { background: var(--bg); color: var(--cream); } .btn.dark:hover { background: #2A2328; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[aria-disabled="true"], .btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* collage bits */
.tape { position: absolute; width: 120px; height: 30px; background: rgba(255, 244, 234, .55); z-index: 4; pointer-events: none; }
.sticker { position: absolute; z-index: 5; padding: 8px 16px; font-weight: 800; color: var(--ink); background: var(--pink); transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--bg), 4px 4px 0 2px var(--cream); white-space: nowrap; }
.sticker.cream { background: var(--cream); transform: rotate(5deg); }
.photo { position: absolute; margin: 0; padding: 10px; background: var(--cream); box-shadow: 10px 10px 0 var(--pink); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo .tape { left: 50%; top: -14px; margin-left: -60px; transform: rotate(-4deg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 30px; height: 74px; padding: 0 clamp(16px, 4vw, 56px);
  background: rgba(17, 10, 14, .86); backdrop-filter: blur(8px); }
.nav .name { margin-right: auto; font: 400 24px var(--display); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { font-weight: 700; font-size: 17px; text-decoration: none; }
.nav nav a:hover { color: var(--pink); }

/* hero */
.hero { position: relative; max-width: 1440px; margin: 0 auto; min-height: 600px; overflow: clip; padding: 40px clamp(16px, 4vw, 56px) 70px; }
.dots { position: absolute; right: 2%; top: 0; width: min(620px, 62vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--crimson) 2.4px, transparent 2.8px) 0 0 / 14px 14px; -webkit-mask: radial-gradient(circle, #000 42%, transparent 70%); mask: radial-gradient(circle, #000 42%, transparent 70%); }
.word { position: relative; z-index: 2; display: flex; flex-direction: column; margin-top: 40px; max-width: 62%; }
.whose { font: 400 clamp(32px, 4vw, 58px)/1 var(--display); color: var(--pink); margin-left: 6px; }
.den { font: 400 clamp(72px, 12vw, 182px)/.92 var(--display); letter-spacing: -.02em; color: var(--cream); }
.hero-btns { position: relative; z-index: 3; margin-top: 34px; }
.hero-photo { right: calc(4% + 30px); top: 30px; width: clamp(240px, 27vw, 380px); transform: rotate(3.5deg); z-index: 2; }
.s2 { right: calc(4% + 230px); top: clamp(390px, 37vw, 520px); }

/* sections */
.section { position: relative; max-width: 1240px; margin: 0 auto; padding: 70px clamp(16px, 4vw, 56px) 30px; }
.title { width: fit-content; margin-bottom: 30px; font: 400 clamp(52px, 6.4vw, 84px)/1 var(--display); color: var(--pink); }

/* Windows or Chrome: every Download comes in both kinds and the page shows one (html data-os, set in the head, switched by the note) */
html:not([data-os="chrome"]) .for-chrome, html[data-os="chrome"] .for-win { display: none !important; }
html[data-os="chrome"] .card.win-only :is(.pic, h3) { opacity: .4; filter: grayscale(.6); }
.prog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-bottom: 34px; }
.prog-head .title { margin-bottom: 0; }
.os-note { position: relative; margin-right: 10px; padding: 18px 20px 16px; background: var(--cream); color: var(--bg); transform: rotate(1.5deg); box-shadow: 8px 8px 0 var(--pink); }
.os-note .tape { left: 50%; top: -14px; width: 100px; margin-left: -50px; transform: rotate(-3deg); }
.os-q { margin: 0 0 12px; font: 400 23px/1.1 var(--display); color: var(--crimson); }
.os-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }
.os-switch button { flex: 1; min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: var(--cream); font: 800 16px var(--body); cursor: pointer; transition: background .15s, color .15s; }
.os-switch button:hover { background: rgba(255, 244, 234, .12); }
.os-switch button[aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.os-how { display: block; margin: 12px auto 0; padding: 2px; border: 0; background: none; font: 700 15px var(--body); color: var(--card-ink); text-decoration: underline; cursor: pointer; }
.os-how:hover { color: var(--crimson); }

/* program cards: taped Twitter pictures. Auto Drain wide and short across the top, the other five in one row under it
   (3 a row on a tablet, 2 on a phone); a short last row sits in the middle. */
.cards { --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px var(--gap); }
.card { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); position: relative; display: flex; flex-direction: column; background: var(--cream); color: var(--bg); padding: 8px 8px 12px;
  transform: rotate(var(--r)); box-shadow: 7px 7px 0 var(--crimson); transition: transform .3s var(--ease); }
.card:hover, .card:focus-within { transform: rotate(0deg); }
.card .pic { overflow: hidden; background: #222; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #222; }
.card h3 { margin: 10px 3px; font: 800 17px/1.2 var(--body); }
.card .row { flex-direction: column; align-items: stretch; gap: 7px; flex-wrap: nowrap; margin-top: auto; }
.card .row .btn { flex: none; min-height: 38px; padding: 0 8px; font-size: 14px; }
.card .btn.line { color: var(--bg); box-shadow: inset 0 0 0 2px var(--bg); } .card .btn.line:hover { background: rgba(13, 10, 12, .06); }
.card .tape { left: 50%; top: -13px; width: 90px; height: 26px; margin-left: -45px; transform: rotate(var(--t)); }
/* Auto Drain, the one to download: first, twice the size (2 x 2 on a computer), its line shown right away, big pink Download */
.card.star { flex: 0 0 100%; flex-direction: row; align-items: center; padding: 12px; box-shadow: 12px 12px 0 var(--pink); }
.card.star .tape { width: 120px; height: 30px; margin-left: -60px; top: -15px; }
.card.star .pic { flex: 0 0 auto; width: clamp(230px, 26vw, 330px); }
.star-text { flex: 1; min-width: 0; padding: 10px clamp(18px, 3.4vw, 48px); }
.card.star h3 { margin: 0; font: 400 clamp(32px, 4vw, 56px)/1.02 var(--display); color: var(--crimson); }
.card.star p { margin: 12px 0 24px; max-width: 40ch; font-size: 19px; color: var(--card-ink); }
.btn.big { min-height: 58px; padding: 0 44px; font-size: 19px; }

/* wishlist */
.wish-photo { right: clamp(10px, 3vw, 40px); top: 24px; width: clamp(150px, 15vw, 210px); transform: rotate(-5deg); box-shadow: 8px 8px 0 var(--crimson); z-index: 0; }
.gifts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 920px; }
.gift { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 20px 22px; background: var(--cream); color: var(--bg);
  transform: rotate(var(--r)); box-shadow: 6px 6px 0 var(--pink); transition: transform .3s var(--ease); }
.gift:hover, .gift:focus-within { transform: rotate(0deg); }
.gift .price { font: 400 40px/1 var(--display); color: var(--crimson); }
.gift .name { grid-column: 1; font-weight: 800; font-size: 17px; }
.gift .btn { grid-column: 2; grid-row: 1 / span 2; }
.gift.mine { background: var(--pink); box-shadow: 6px 6px 0 var(--cream); }
.gift.mine .price { color: var(--ink); font-size: 30px; }

/* links */
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 920px; }
.link { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--c); color: #fff; text-decoration: none; transform: rotate(var(--r));
  box-shadow: 6px 6px 0 var(--cream); transition: transform .3s var(--ease); }
.link:hover, .link:focus-visible { transform: rotate(0deg) translateY(-2px); }
.link svg { width: 34px; height: 34px; fill: currentColor; flex: none; }
.link b { display: block; font: 400 26px/1.1 var(--display); }
.link span { font-weight: 700; font-size: 14px; opacity: .85; word-break: break-all; }
.link.soon { opacity: .55; pointer-events: none; }

.foot { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 70px 16px 70px; color: var(--muted); }
.foot img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--pink); }
.foot p { margin: 0; } .foot b { font: 400 20px var(--display); color: var(--cream); }

/* modals: cream paper taped onto the page */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: rgba(8, 4, 6, .74); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(24px) rotate(var(--r, 0deg)); } }
.modal { --r: -1deg; position: relative; width: min(560px, 100%); padding: 34px 32px 30px; background: var(--cream); color: var(--bg); transform: rotate(var(--r));
  box-shadow: 8px 8px 0 var(--pink); animation: drop .4s var(--ease); }
.modal .t1 { left: -26px; top: 14px; transform: rotate(-38deg); } .modal .t2 { right: -26px; top: 14px; transform: rotate(38deg); }
.modal h2 { font: 400 34px/1.1 var(--display); color: var(--crimson); padding-right: 30px; }
.modal p { color: var(--card-ink); }
.modal .btn.line { color: var(--bg); box-shadow: inset 0 0 0 2px var(--bg); }
.x { position: absolute; right: 10px; top: 6px; z-index: 6; width: 40px; height: 40px; border: 0; background: none; font: 400 30px/1 var(--body); cursor: pointer; color: var(--bg); }
.about { width: min(440px, 100%); }
.about p { margin: 12px 0 0; font-size: 17px; }
.about .row { margin-top: 22px; }
.howto { width: min(480px, 100%); }
.howto ol { margin: 14px 0 22px; padding-left: 24px; color: var(--card-ink); font-size: 17px; }
.howto li { margin: 7px 0; padding-left: 4px; }
.howto b { color: var(--bg); }

/* ---------- scroll effects ----------
   Only with .fx on <html> (set in the page head unless the visitor's system asks for less motion).
   Entrances use `transform` keyframes that end on each piece's normal tilt; site.js drives the scroll-linked
   moves through the separate `translate` / `rotate` / `scale` properties, so the two never fight. */

/* the shark fin swims along the bottom of the top bar as you go down the page */
.swim { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; pointer-events: none; overflow: hidden; }
.wake { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--pink); transform-origin: left; transform: scaleX(0); }
.fin { position: absolute; left: 0; bottom: 2px; width: 34px; height: 26px; }
.fin svg { display: block; width: 100%; height: 100%; fill: var(--cream); transform-origin: 50% 100%; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-5deg); } }

.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-70px); } }
@keyframes letter-up { from { opacity: 0; transform: translateY(80%) rotate(-14deg) scale(.4); } }
@keyframes letter-drop { from { opacity: 0; transform: translateY(-110%) rotate(-22deg); } }
@keyframes slap { 0% { opacity: 0; transform: translateY(-50px) rotate(18deg) scale(1.35); } 55% { opacity: 1; } }
@keyframes stick { from { scale: 0 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: scale(0) rotate(-35deg); } }
@keyframes bloom { from { opacity: 0; transform: scale(.5); } }
@keyframes card-in { 0% { opacity: 0; transform: translateY(90px) rotate(calc(var(--r) * 6)) scale(1.14); } 45% { opacity: 1; } }
@keyframes swing { 0% { opacity: 0; transform: translateY(-40px) rotate(-28deg); } 40% { opacity: 1; transform: rotate(13deg); } 65% { transform: rotate(-6deg); } 85% { transform: rotate(2.5deg); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-160px) rotate(-12deg); } }
@keyframes from-right { from { opacity: 0; transform: translateX(160px) rotate(12deg); } }

/* the first screen, played once you're in */
.fx .hero:not(.go) > * { opacity: 0; pointer-events: none; }
.fx .hero.go .dots { animation: bloom 1.1s var(--ease) backwards; }
.fx .hero.go .whose { animation: slide-in .7s var(--ease) .05s backwards; }
.fx .hero.go .den .ch { animation: letter-up .75s var(--spring) backwards; animation-delay: calc(140ms + var(--i) * 55ms); }
.fx .hero.go .hero-photo { animation: slap .8s var(--spring) .3s backwards; }
.fx .hero.go .hero-photo .tape { transform-origin: left center; animation: stick .35s var(--ease) .95s backwards; }
.fx .hero.go .hero-btns { animation: rise .6s var(--ease) .7s backwards; }
.fx .hero.go .s2 { animation: pop .65s var(--spring) 1.05s backwards; }

/* everything further down comes in when it reaches the screen (site.js adds .in and staggers --d) */
.fx :is(.title, .card, .gift, .link, .wish-photo, .foot, .os-note):not(.in) { opacity: 0; }
.fx .title.in .ch { animation: letter-drop .6s var(--spring) backwards; animation-delay: calc(var(--i) * 45ms); }
.fx .card.in { animation: card-in .85s var(--spring) var(--d, 0ms) backwards; }
.fx .card.in .tape { transform-origin: left center; animation: stick .3s var(--ease) calc(var(--d, 0ms) + .55s) backwards; }
.fx .card .pic img { scale: 1.14; }
.fx .gift.in { transform-origin: 50% 0; animation: swing 1.05s ease-out var(--d, 0ms) backwards; }
.fx .link.in:nth-child(odd) { animation: from-left .8s var(--spring) var(--d, 0ms) backwards; }
.fx .link.in:nth-child(even) { animation: from-right .8s var(--spring) var(--d, 0ms) backwards; }
.fx .wish-photo.in { animation: slap .8s var(--spring) .15s backwards; }
.fx .wish-photo.in .tape { transform-origin: left center; animation: stick .3s var(--ease) .8s backwards; }
.fx .os-note.in { animation: slap .8s var(--spring) .35s backwards; }
.fx .os-note.in .tape { transform-origin: left center; animation: stick .3s var(--ease) 1s backwards; }
.fx .foot.in img { animation: pop .7s var(--spring) backwards; }
.fx .foot.in p { animation: rise .6s var(--ease) .15s backwards; }
/* the program and gift grids lean a little with how fast you scroll */
.fx :is(.cards, .gifts) { transform: skewY(var(--lean, 0deg)); }

/* smaller screens */
@media (max-width: 1000px) {
  .card { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
  .gifts, .links { grid-template-columns: 1fr 1fr; }
  .wish-photo { display: none; }
}
@media (max-width: 820px) {
  .nav { gap: 16px; } .nav nav { gap: 16px; } .nav nav a { font-size: 15px; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .word { max-width: 100%; margin-top: 10px; }
  .hero-photo { position: relative; right: auto; top: auto; width: min(320px, 78%); margin: 40px auto 0; }
  .s2 { position: relative; right: auto; top: auto; display: block; width: max-content; margin: -20px auto 0; }
  .dots { top: 280px; right: -20%; width: 120vw; }
}
@media (max-width: 640px) {
  .nav .name { font-size: 19px; }
  .nav nav { display: none; }
  .gifts, .links { grid-template-columns: 1fr; }
  .os-note { width: 100%; margin-right: 6px; }
  .cards { --gap: 16px; row-gap: 30px; padding: 0 4px; }
  .card { flex-basis: calc((100% - var(--gap)) / 2); }
  .card h3 { font-size: 15px; }
  .card.star { flex-direction: column; align-items: stretch; }
  .card.star .pic { width: auto; }
  .card.star .pic img { aspect-ratio: 5 / 4; object-position: 50% 22%; } /* shorter picture so the card fits a phone screen */
  .star-text { padding: 16px 6px 4px; } .card.star .btn.big { width: 100%; }
  .modal { padding: 30px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
