:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: #0c1018;
  --panel: #151c28;
  --raised: #1b2534;
  --field: #101621;
  --edge: #364354;
  --control-edge: #627285;
  --ink: #f1f4f8;
  --dim: #b4c1d1;
  --ice: #b5e6f4;
  --ruby: #ff92aa;
  --radius: 1rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --width: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.1rem; }
a { color: var(--ice); text-underline-offset: .2em; }
img, video { max-width: 100%; }
.muted { color: var(--dim); }
.hidden, [hidden] { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  min-height: 4.25rem;
  padding: .85rem max(var(--gutter), calc((100% - var(--width)) / 2));
  border-bottom: 1px solid var(--edge);
  background: #10151e;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand::before {
  content: "";
  width: .75rem;
  height: .75rem;
  flex: none;
  border: 1px solid #ffc0cf;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ffa3bb, #a52d53 62%, #5b1930);
}
.eyebrow {
  color: var(--ice);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.shell {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.65rem);
  width: min(calc(100% - 2 * var(--gutter)), var(--width));
  margin-inline: auto;
  padding-block: clamp(1rem, 3vw, 2.5rem) 4rem;
  overflow-wrap: anywhere;
}
.hero {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .7rem;
  min-height: clamp(13.5rem, 24vw, 19rem);
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid #4e3c4d;
  border-radius: calc(var(--radius) + .3rem);
  background: #10141e url("./aurore.svg") right center / cover no-repeat;
}
.hero > * { max-width: min(100%, 38rem); }
.hero h1 {
  max-width: 19ch;
  color: #fff7f9;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero p:not(.eyebrow) { color: #dbe2eb; }
.hero .eyebrow { color: #ffc2d0; }

.tabs, .row, .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.tabs {
  gap: .3rem;
  padding: .35rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--field);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
  gap: 1rem;
}
.stack, form { display: grid; align-content: start; gap: 1rem; }
.shell > *, .grid > *, .stack > *, .row > *, form > * { min-width: 0; }
.card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #19212e, var(--panel) 65%);
  box-shadow: 0 .55rem 1.8rem #05070c36;
}
.actions { justify-content: flex-end; }
.row > :where(input:not([type="checkbox"]):not([type="radio"]), select) {
  flex: 1 1 12rem;
}
label { color: var(--ink); font-weight: 600; }
label > :where(textarea, select, input:not([type="checkbox"]):not([type="radio"])) {
  display: block;
  margin-top: .35rem;
}
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .6rem .8rem;
  border: 1px solid var(--control-edge);
  border-radius: .6rem;
  background-color: var(--field);
  color: var(--ink);
}
select { padding-inline-end: 1.75rem; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a2b0c1; opacity: 1; }
input[type="checkbox"], input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ruby);
  vertical-align: middle;
}
button, .primary {
  min-height: 2.8rem;
  max-width: 100%;
  padding: .55rem 1rem;
  border: 1px solid var(--control-edge);
  border-radius: .65rem;
  background: var(--raised);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #ffa8bc;
  background: var(--ruby);
  color: #2d101c;
  text-decoration: none;
}
.tabs button {
  flex: 0 1 auto;
  border-color: transparent;
  background: transparent;
  color: var(--dim);
}
.tabs button[aria-selected="true"] {
  border-color: #986075;
  background: #392431;
  color: #ffd9e3;
  box-shadow: inset 0 -2px var(--ruby);
}
@media (hover: hover) {
  button:enabled:hover { border-color: var(--ice); background-color: #273648; }
  .primary:not(:disabled):hover { border-color: #ffd0db; background-color: #ffb0c3; }
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
}
:is(button, input, textarea, select):disabled {
  opacity: .58;
  cursor: not-allowed;
}

.emoji-grid, .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 3rem), 1fr));
  gap: .5rem;
}
.emoji {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: .35rem;
  font-size: 1.4rem;
}
.emoji:is([aria-pressed="true"], [aria-selected="true"]) {
  border-color: var(--ruby);
  background: #402631;
}
.preview {
  min-width: 0;
  padding: 1rem;
  border: 1px dashed #647a91;
  border-radius: .75rem;
  background: var(--field);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
output { color: var(--ice); overflow-wrap: anywhere; }
.tag {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  max-width: 100%;
  padding: .18rem .65rem;
  border: 1px solid #485d70;
  border-radius: 99rem;
  background: #202f3e;
  color: var(--ice);
  font-size: .83rem;
  font-weight: 650;
}
.notice {
  padding: .75rem 1rem;
  border-inline-start: 3px solid var(--ice);
  border-radius: .35rem;
  background: #1b2b39;
  color: #d8eff7;
}
.metric {
  color: var(--ice);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid #7e6273;
  border-radius: 50%;
  background: #392533;
  color: #ffdbe6;
  object-fit: cover;
}
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.gallery :where(img:not(.avatar), video) {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: .65rem;
}

@media (max-width: 42rem) {
  .hero {
    background-image: linear-gradient(90deg, #0b1019ef, #0b1019a8 58%, #0b101933), url("./aurore.svg");
  }
  .tabs button { flex: 1 1 8rem; }
  .actions > :where(button, .primary) { flex: 1 1 9rem; }
}
@media (forced-colors: active) {
  .tabs button[aria-selected="true"], .emoji[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
  :focus-visible { outline-color: Highlight; }
}
.metric p {font-size:.95rem;color:var(--dim);font-weight:500;letter-spacing:normal;margin-top:.5rem}
#preview {border-left:4px solid var(--ruby);white-space:normal} #pText {white-space:pre-wrap} #pText img, #pTitle img {vertical-align:middle}
#pImg,#exampleImg {max-height:18rem;object-fit:contain} #pRx {display:flex;gap:.5rem;margin-top:.75rem} #palette {max-height:20rem;overflow:auto}
#desk > section {margin-top:1rem} #notice a {margin-inline-start:.5rem} .emoji img {object-fit:contain}
