* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fed-space);
  color: var(--fed-text-display);
  font: 1rem/1.55 system-ui, sans-serif;
}
.station-header, main, footer { width: min(1200px, 92%); margin-inline: auto; }
.station-header { padding-block: 1.1rem; border-bottom: 1px solid var(--fed-border-strong); }
.station-header a { display: inline-flex; align-items: center; gap: .7rem; color: inherit; font-weight: 700; text-decoration: none; }
.station-header img { border-radius: 50%; }
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr);
  grid-template-areas: "art brief" "art editor";
  align-content: start;
  gap: 1.2rem clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.brief { grid-area: brief; align-self: end; }
h1, h2, p, figure { margin: 0; }
h1 { max-width: 10ch; font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.brief p { margin-top: 1.2rem; font-size: 1.1rem; color: var(--fed-text); }
.frame { grid-area: art; align-self: center; overflow: hidden; border: 1px solid var(--fed-border-strong); border-radius: 12px; background: var(--fed-space-panel); }
.frame img, .frame canvas { display: block; width: 100%; height: auto; }
.editor { grid-area: editor; align-self: start; }
.image-picker { margin-bottom: 1.25rem; }
input[type="file"] { display: block; width: 100%; min-height: 48px; margin-top: .5rem; font: inherit; color: var(--fed-text); }
input[type="file"]::file-selector-button, .image-picker button {
  min-height: 44px; padding: .5rem .75rem; margin-right: .5rem; border-radius: 6px;
  border: 1px solid var(--fed-border-strong); background: var(--fed-space-panel); color: var(--fed-text-display); font: inherit; cursor: pointer;
}
.image-picker .help { margin-bottom: .4rem; }
.image-picker button { margin-top: .5rem; }
label { display: block; font-weight: 700; }
input[type="text"], textarea {
  width: 100%; margin-top: .5rem; padding: .8rem .9rem; min-height: 48px;
  background: var(--fed-space-panel); color: var(--fed-text-display);
  border: 1px solid var(--fed-border-strong); border-radius: 6px; font: inherit;
}
input::placeholder { color: var(--fed-muted); }
.help, .status { font-size: .875rem; line-height: 1.45; color: var(--fed-text); }
.help { margin: .45rem 0 1rem; }
input[aria-invalid="true"] { border-color: var(--fed-warning); }
input[aria-invalid="true"] + .help { color: var(--fed-warning); }
.address-option {
  display: flex; align-items: center; gap: .65rem; width: fit-content; min-height: 44px;
  margin-bottom: .45rem; color: var(--fed-text); font-weight: 500; cursor: pointer;
}
.address-option input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--fed-command); }
.status:not(:empty) { margin-top: .6rem; }
.image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.save {
  display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.2rem; border-radius: 6px;
  background: var(--fed-authority); color: var(--fed-space);
  font: inherit; font-weight: 750; text-decoration: none;
}
.save[aria-disabled="true"] { background: var(--fed-space-panel); color: var(--fed-muted); box-shadow: inset 0 0 0 1px var(--fed-border-default); }
.text-share { margin-top: .75rem; }
.text-share summary { width: fit-content; min-height: 44px; padding-block: .55rem; color: var(--fed-command); cursor: pointer; }
.text-share textarea { display: block; resize: vertical; }
.text-share button, .image-actions button {
  min-height: 46px; padding: .5rem .9rem; border-radius: 6px;
  background: var(--fed-space-panel); color: var(--fed-text-display); border: 1px solid var(--fed-border-strong);
  font: inherit; font-weight: 650; cursor: pointer;
}
.text-share button { min-height: 44px; margin-top: .65rem; }
.image-actions button[aria-disabled="true"] { color: var(--fed-muted); cursor: default; }
a { color: var(--fed-command); text-underline-offset: .18em; }
.template, footer a { display: inline-flex; min-height: 44px; align-items: center; }
.template { margin-top: .35rem; }
.event { border-top: 1px solid var(--fed-border-strong); padding-block: 1.5rem; }
h2 { font-size: 1.25rem; }
.event p { max-width: 70ch; margin-top: .35rem; color: var(--fed-text); }
footer { display: flex; flex-wrap: wrap; column-gap: 1.5rem; padding: .6rem 0 2rem; }
:focus-visible { outline: 3px solid var(--fed-command); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -10rem; padding: .75rem; background: var(--fed-space); }
.skip:focus { top: .5rem; }
@media (max-width: 760px) {
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brief" "art" "editor"; padding-block: 2rem; }
  h1 { max-width: none; }
  .brief p { margin-top: .75rem; }
}
