:root {
  --bg: #070708;
  --ink: #f4f4f5;
  --muted: #a3a3ab;
  --faint: #6f6f78;
  --line: rgba(255, 255, 255, 0.1);
  --silver: #e7e8ec;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  background:
    radial-gradient(900px 520px at 78% 42%, rgba(214, 218, 226, 0.09), transparent 62%),
    radial-gradient(700px 420px at 12% 88%, rgba(180, 184, 194, 0.05), transparent 70%),
    var(--bg);
  letter-spacing: -0.011em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  background: #e6e7eb;
  color: #121214;
}

.frame {
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto;
  min-height: calc(100vh - 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%);
}

.topbar,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand svg { display: block; }

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  grid-template-areas:
    "intro art"
    "ask art";
  gap: 8px 36px;
  align-items: center;
  padding: 12px 8px 8px;
}

.story { display: contents; }
.intro { grid-area: intro; align-self: end; }
.ask { grid-area: ask; align-self: start; }

.kicker {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 6.4vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--silver);
}

@supports (background-clip: text) {
  h1 em {
    background-image: linear-gradient(105deg, #8c9098 0%, #ffffff 38%, #d5d7de 52%, #ffffff 66%, #8c9098 100%);
    background-size: 220% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metal 8s ease-in-out infinite;
  }
}

.lede {
  max-width: 460px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
}

.notify {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 460px;
  margin-top: 28px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
}

.notify input::placeholder { color: #7d7d86; }

.notify button {
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #141416;
  background: linear-gradient(180deg, #f7f7f8 0%, #c9ccd3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.notify button:hover { filter: brightness(1.05); }
.notify button:disabled { cursor: wait; opacity: 0.7; }

.notify:focus-within {
  border-color: rgba(255, 255, 255, 0.38);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.note {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.note.is-good { color: #d5d7de; }
.note.is-bad { color: #e7c2c2; }

.piece {
  grid-area: art;
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
}

.piece svg {
  width: auto;
  height: min(46vh, 380px);
  max-width: 100%;
}

.notes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.notes li {
  padding: 20px 28px 12px 0;
}

.notes li + li {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.notes span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.notes h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.notes p {
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.5;
}

.foot {
  margin-top: 8px;
  padding-top: 8px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes metal {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "art"
      "ask";
    padding-top: 22px;
  }
  .piece svg { height: min(300px, 42vh); }
  .notes { grid-template-columns: 1fr; }
  .notes li,
  .notes li + li {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .notes li:first-child { border-top: 0; }
  h1 { font-size: clamp(3.1rem, 14vw, 4.6rem); }
}

@media (max-width: 560px) {
  .frame { width: min(100% - 16px, 1180px); margin: 8px auto; padding: 16px 16px 12px; border-radius: 16px; }
  .brand { letter-spacing: 0.14em; font-size: 11px; }
  .notify { flex-direction: column; align-items: stretch; border-radius: 18px; }
  .notify button { width: 100%; }
  .topbar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1 em { animation: none; }
}
