:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e2e7eb;
  background: #111a22;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; }
a { color: inherit; }

body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  background: linear-gradient(rgba(7, 14, 23, .18), rgba(5, 11, 20, .28)), url('/assets/mood-storm-20261125.webp') 50% 45% / cover no-repeat;
}

body::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 11, 18, .15), transparent 24%, transparent 70%, rgba(5, 10, 16, .75)), radial-gradient(ellipse at center, transparent 25%, rgba(5, 10, 17, .28));
}

.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }

.rain {
  position: absolute;
  inset: -256px -192px;
  background: url('/assets/heavy-rain-20261125.svg') repeat;
  background-size: 192px 256px;
  will-change: transform;
  animation: driving-rain .62s linear infinite;
}

.rain-far { opacity: .22; animation-duration: 1.15s; background-position: 51px 37px; }
.rain-mid { opacity: .35; animation-duration: .78s; animation-delay: -.33s; background-position: 107px 79px; }
.rain-near { opacity: .48; animation-duration: .5s; animation-delay: -.2s; }

@keyframes driving-rain { to { transform: translate3d(-192px, 256px, 0); } }

.cloud-shadow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 32% 20%, rgba(4, 9, 17, .55), transparent 55%), radial-gradient(ellipse at 85% 55%, rgba(4, 9, 17, .3), transparent 50%);
  animation: restless-clouds 17s ease-in-out infinite alternate;
}

@keyframes restless-clouds {
  from { transform: translate3d(5%, -2%, 0); opacity: .55; }
  to { transform: translate3d(-5%, 2%, 0); opacity: .9; }
}

.mist {
  position: absolute;
  inset: 20% -30% 0;
  background: radial-gradient(ellipse 55% 8% at 60% 36%, rgba(172, 189, 201, .18), transparent), radial-gradient(ellipse 50% 6% at 25% 58%, rgba(150, 172, 188, .13), transparent);
  animation: wind-swept-mist 9s ease-in-out infinite alternate;
}

@keyframes wind-swept-mist {
  from { transform: translate3d(9%, 0, 0) skewY(-4deg); opacity: .45; }
  to { transform: translate3d(-9%, 2%, 0) skewY(-4deg); opacity: .9; }
}

.mood-mirror { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 1.5rem; }
.message-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .25rem; color: #e2e7eb; font-size: 1rem; text-decoration-color: rgba(226, 231, 235, .5); text-underline-offset: .4em; text-shadow: 0 2px 12px #080e16; }

.sr-only, .trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-footer { position: absolute; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: max(2.5rem, env(safe-area-inset-left)); right: max(2.5rem, env(safe-area-inset-right)); display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem 1.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #cbd5dc; font-size: .875rem; text-decoration-color: rgba(203, 213, 220, .4); text-underline-offset: .35em; text-shadow: 0 2px 12px #080e16; }
a:hover { color: #fff; text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid #d7e2eb; outline-offset: 5px; }

.form-page { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 2.5rem 1.25rem; }
.message-panel { width: min(100%, 32rem); padding: 1.5rem 2rem 2rem; border: 1px solid rgba(172, 191, 208, .19); border-radius: .5rem; background: rgba(9, 17, 26, .88); box-shadow: 0 24px 80px rgba(0, 0, 0, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .5rem; color: #aebdca; font-size: .875rem; text-decoration-color: rgba(174, 189, 202, .4); text-underline-offset: .3em; }
.form-title { margin: 0 0 1rem; font: italic 400 2.25rem/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.035em; color: #e3e9ed; }
.form-note { margin: 0; color: #b2c0cc; font-size: .875rem; line-height: 1.6; }
.message-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field-row { display: grid; gap: .45rem; }
label { color: #d9e1e7; font-size: .875rem; line-height: 1.5; }
label span { color: #aebdca; }
input, textarea, button { width: 100%; border: 1px solid rgba(174, 193, 208, .25); border-radius: .25rem; font: inherit; }
input, textarea { background: rgba(5, 12, 20, .72); color: #e6edf2; padding: .7rem .8rem; outline: none; }
input { min-height: 46px; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8fa0b0; opacity: 1; }
input:focus, textarea:focus { border-color: #b5c8d8; box-shadow: 0 0 0 2px rgba(181, 200, 216, .16); }
button { min-height: 46px; padding: .7rem 1rem; color: #e6edf2; background: rgba(127, 152, 176, .16); cursor: pointer; }
button:hover { border-color: #adbecd; background: rgba(127, 152, 176, .25); }
.status-message { margin: 0; color: #d8e4ee; font-size: .875rem; line-height: 1.5; }
[hidden] { display: none !important; }

@media (max-width: 40rem) {
  .site-footer { left: 1.25rem; right: 1.25rem; bottom: max(1rem, env(safe-area-inset-bottom)); }
  .form-page { padding: 1.5rem 1rem; }
  .message-panel { padding: 1rem 1.25rem 1.5rem; }
  .form-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rain, .cloud-shadow, .mist { animation: none; }
  .rain { display: none; }
}
