:root {
  --night: #141813;
  --moss: #54604a;
  --lichen: #b4b59b;
  --paper: #f3f0e5;
  --ink: #202419;
  --line: rgba(243, 240, 229, .36);
  font-family: "DM Mono", monospace;
  color: var(--paper);
  background: var(--night);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { --dialog-space: 0px; margin: 0; padding-bottom: calc(4.25rem + var(--dialog-space)); background: var(--night); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.public-page { min-height: 100svh; padding: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 0%, #34402d, var(--night) 65%); }
.public-intro { width: min(42rem, 100%); padding: 2rem; text-align: center; }
.public-intro h1 { margin-bottom: 1rem; font-size: clamp(4rem, 12vw, 9rem); line-height: .8; }
.public-intro p { margin: 0; color: var(--lichen); font-size: clamp(.8rem, 1.5vw, 1rem); line-height: 1.8; }

.hero { position: relative; min-height: 100svh; isolation: isolate; }
.hero-image, .listening-image { position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; }
.hero-image { opacity: 0; background-image: linear-gradient(90deg, rgba(15, 20, 14, .75), rgba(15, 20, 14, .2) 70%), url("images/emily-hero-02.jpg"); transform: scale(1.035); transition: opacity 1.8s ease-out, transform 4.8s cubic-bezier(.2, .7, .2, 1); }
.site-header, .contact-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.25rem, 5vw, 5rem); }
.wordmark { color: var(--paper); font-family: "Newsreader", Georgia, serif; font-size: 1.4rem; font-weight: 400; line-height: .82; text-decoration: none; letter-spacing: -.06em; }
.menu-button, .subscribe-link, .contact-link { appearance: none; border: 0; padding: 0; color: inherit; background: none; letter-spacing: inherit; text-transform: inherit; }
.menu-button { display: none; }
.sound-toggle { position: absolute; right: clamp(1.25rem, 5vw, 5rem); bottom: 1.8rem; display: inline-flex; align-items: center; gap: .45rem; border: 0; padding: 0; color: var(--paper); background: none; font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.sound-icon { width: 1rem; height: 1rem; fill: currentColor; }
.sound-icon[hidden] { display: none; }
.sound-toggle:hover { color: var(--lichen); }
.site-menu { display: flex; gap: clamp(1rem, 2.5vw, 2.6rem); align-items: center; font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }
.site-menu a, .site-menu button { color: var(--paper); text-decoration: none; }
.site-menu a:hover, .site-menu button:hover, footer a:hover { color: var(--lichen); }
.hero-copy { position: absolute; inset: auto clamp(1.25rem, 5vw, 5rem) clamp(3rem, 9vw, 7rem); max-width: 48rem; }
.eyebrow { margin: 0 0 1.25rem; color: var(--lichen); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 300; letter-spacing: -.06em; }
.hero h1 { max-width: 8ch; margin-bottom: 1rem; font-size: clamp(4.6rem, 13vw, 12rem); line-height: .76; }
.hero-text { max-width: 28rem; font-size: clamp(.85rem, 1.4vw, 1rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-block; border: 1px solid var(--paper); padding: .9rem 1.1rem; color: var(--paper); font-size: .68rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.button-solid { border-color: var(--paper); color: var(--ink); background: var(--paper); }
.button-quiet { background: rgba(20, 24, 19, .2); }
.button:hover { background: var(--lichen); border-color: var(--lichen); color: var(--ink); }
.site-header, .hero-copy { opacity: 0; transform: translateY(.9rem); transition: opacity .8s ease-out, transform 1s cubic-bezier(.2, .7, .2, 1); }
.hero-copy { transition-delay: .55s; }
.is-ready .hero-image { opacity: 1; transform: scale(1); }
.is-ready .site-header, .is-ready .hero-copy { opacity: 1; transform: translateY(0); }
.listening { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr); min-height: 48rem; background: #424c3c; }
.listening-image { position: relative; min-height: 30rem; background-image: linear-gradient(rgba(20, 24, 19, .1), rgba(20, 24, 19, .35)), url("images/emily-hero-01.jpg"); background-position: 50% 35%; }
.listening-copy { align-self: center; padding: clamp(3rem, 8vw, 8rem); }
.listening h2 { max-width: 8ch; font-size: clamp(4.5rem, 7vw, 7.4rem); line-height: .78; }
.platform-links { display: grid; margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.platform-links a { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); color: var(--paper); font-size: .72rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.platform-links a:hover { color: var(--lichen); }
.socials { padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 5vw, 5rem); }
.socials > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.socials a { padding-bottom: .75rem; border-bottom: 1px solid var(--line); font-family: "Newsreader", Georgia, serif; font-size: clamp(1.7rem, 3.5vw, 4rem); letter-spacing: -.05em; text-decoration: none; }
.socials a:hover { color: var(--lichen); border-color: var(--lichen); }
.photo-credit { margin: 0; padding: 0 clamp(1.25rem, 5vw, 5rem) 1.5rem; color: var(--lichen); font-size: .64rem; letter-spacing: .05em; text-align: right; text-transform: uppercase; }
.photo-credit a { color: var(--paper); }
footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid rgba(243, 240, 229, .15); color: var(--lichen); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; background: rgba(20, 24, 19, .88); opacity: 0; pointer-events: none; transform: translateY(100%); transition: opacity .25s ease, transform .25s ease; backdrop-filter: blur(.75rem); }
body.footer-is-visible footer { opacity: 1; pointer-events: auto; transform: translateY(0); }
footer .wordmark { color: var(--paper); font-size: 1.1rem; text-transform: none; }
footer button { color: var(--lichen); }
.footer-icons { display: flex; align-items: center; gap: .85rem; }
.footer-icons a, .footer-icons button { display: inline-flex; border: 0; padding: 0; color: var(--paper); background: none; opacity: .75; transition: opacity .2s ease; }
.footer-icons a:hover, .footer-icons button:hover { color: var(--paper); opacity: 1; }
.footer-icons span { width: 1.5rem; height: 1.5rem; }

#cat-parade { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.parade-cat { position: absolute; bottom: var(--bottom); left: -5rem; width: 64px; height: 64px; image-rendering: pixelated; }
.parade-cat.is-idle { background-image: var(--idle-sprite); background-size: 448px 64px; animation: cat-idle-frames .9s steps(7) infinite; }
.parade-cat.is-jumping { background-image: var(--jump-sprite); background-size: 832px 64px; animation: cat-jump-frames .9s steps(13) infinite, cat-parade-hop .7s ease-in-out infinite; }
.parade-cat.cat-classical { --idle-sprite: url("cats/classical-idle.png"); --jump-sprite: url("cats/classical-jump.png"); }
.parade-cat.cat-black { --idle-sprite: url("cats/black-idle.png"); --jump-sprite: url("cats/black-jump.png"); }
.parade-cat.cat-brown { --idle-sprite: url("cats/brown-idle.png"); --jump-sprite: url("cats/brown-jump.png"); }
.parade-cat.cat-white { --idle-sprite: url("cats/white-idle.png"); --jump-sprite: url("cats/white-jump.png"); }
.parade-cat.cat-siamese { --idle-sprite: url("cats/siamese-idle.png"); --jump-sprite: url("cats/siamese-jump.png"); }

@keyframes cat-idle-frames {
  to { background-position-x: -448px; }
}

@keyframes cat-jump-frames {
  to { background-position-x: -832px; }
}

@keyframes cat-parade-hop {
  0%, 100% { margin-bottom: 0; }
  45% { margin-bottom: 2.5rem; }
}

dialog { width: min(31rem, calc(100vw - 2rem)); border: 0; padding: clamp(2rem, 6vw, 4rem); color: var(--paper); background: #303a2d; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(11, 14, 10, .78); backdrop-filter: blur(4px); }
body.dialog-open::before { position: fixed; inset: 0; z-index: 20; content: ""; background: rgba(11, 14, 10, .78); backdrop-filter: blur(4px); }
dialog h2 { margin-bottom: 1rem; font-size: clamp(3rem, 7vw, 5rem); line-height: .82; }
dialog p:not(.eyebrow) { max-width: 34rem; margin-bottom: 2rem; font-size: .82rem; line-height: 1.8; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; border: 0; color: var(--paper); background: none; font-size: 2rem; line-height: 1; }
.paper-dialog { position: relative; width: calc(100vw - 2rem); max-width: 42rem; box-sizing: border-box; overflow: visible; padding-top: clamp(4rem, 7vw, 6rem); padding-bottom: clamp(4rem, 7vw, 6rem); background-color: #28321f; background-image: url("images/rip/background.jpg"); background-repeat: repeat; background-size: 378px 250px; background-blend-mode: multiply; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .5); -webkit-appearance: none; -webkit-mask-image: url("images/rip/top.png"), linear-gradient(#000 0 0), url("images/rip/bottom.png"); -webkit-mask-size: 100% 5rem, 100% calc(100% - 10rem), 100% 5rem; -webkit-mask-position: top, center, bottom; -webkit-mask-repeat: no-repeat; mask-image: url("images/rip/top.png"), linear-gradient(#000 0 0), url("images/rip/bottom.png"); mask-size: 100% 5rem, 100% calc(100% - 10rem), 100% 5rem; mask-position: top, center, bottom; mask-repeat: no-repeat; }
.paper-dialog[open] { position: absolute; top: var(--dialog-top); right: auto; bottom: auto; left: 50%; z-index: 21; margin: 0; transform: translateX(-50%); }
.paper-dialog::before, .paper-dialog::after { position: absolute; right: 0; left: 0; z-index: 0; height: 5rem; content: ""; pointer-events: none; background-color: #28321f; background-repeat: no-repeat; background-size: 100% 100%; background-blend-mode: multiply; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-repeat: no-repeat; mask-size: 100% 100%; }
.paper-dialog::before { top: 0; background-image: url("images/rip/top.png"); -webkit-mask-image: url("images/rip/top.png"); mask-image: url("images/rip/top.png"); }
.paper-dialog::after { bottom: 0; background-image: url("images/rip/bottom.png"); -webkit-mask-image: url("images/rip/bottom.png"); mask-image: url("images/rip/bottom.png"); }
.paper-dialog > * { position: relative; z-index: 1; }
.paper-dialog .dialog-close { position: absolute; z-index: 2; top: 2rem; right: 1.5rem; left: auto; margin: 0; }
.contact-gate { max-width: 20rem; margin: 0 auto .75rem; aspect-ratio: 1024 / 548; background-color: var(--lichen); opacity: .78; -webkit-mask: url("gate.svg") no-repeat center / contain; mask: url("gate.svg") no-repeat center / contain; }
.dialog-intro { margin-bottom: 1.75rem !important; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .45rem; color: var(--lichen); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: .55rem 0; outline: 0; color: var(--paper); background: transparent; font-family: "Newsreader", Georgia, serif; font-size: 1.2rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--lichen); }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; margin-top: .75rem; }
.contact-form .button:disabled { cursor: wait; opacity: .6; }
.contact-form .consent { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; color: var(--paper); font-size: .65rem; letter-spacing: 0; line-height: 1.6; text-transform: none; }
.contact-form .consent input { width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--lichen); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; margin: 0 !important; font-size: .72rem !important; }
.form-status[data-state="success"] { color: #d8efb1; }
.form-status[data-state="error"] { color: #ffc0ae; }

.contact-page { min-height: 100vh; color: var(--paper); background: linear-gradient(rgba(20, 24, 19, .77), rgba(20, 24, 19, .85)), url("images/emily-hero-01.jpg") center / cover fixed; }
.contact-header { border-bottom: 1px solid var(--line); }
.back-link { color: var(--paper); font-size: .68rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.contact-main { width: min(52rem, 100%); padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 10vw, 8rem); }
.contact-main h1 { margin-bottom: 1.5rem; font-size: clamp(4rem, 9vw, 8rem); line-height: .77; }
.contact-intro { max-width: 33rem; margin-bottom: 3rem; font-size: .85rem; line-height: 1.8; }

@media (max-width: 700px) {
  body { padding-bottom: var(--dialog-space); }
  .site-header { align-items: center; }
  .menu-button { display: block; color: var(--paper); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
  .sound-toggle { position: static; margin-left: auto; }
  .site-menu { display: none; position: absolute; top: 5rem; right: 1.25rem; left: 1.25rem; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: #293127; }
  .site-menu.is-open { display: flex; }
  .site-menu a, .site-menu button { font-size: .75rem; }
  .hero h1 { max-width: 7ch; }
  .listening { grid-template-columns: 1fr; }
  .listening-image { min-height: 70vw; }
  .socials > div { grid-template-columns: repeat(2, 1fr); }
  .photo-credit { padding-bottom: 1.5rem; text-align: left; }
  footer { position: static; align-items: center; opacity: 1; pointer-events: auto; transform: none; }
}

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