
:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --white: #fffefa;
  --ink: #202d2b;
  --muted: #536560;
  --teal: #224f46;
  --tint: #e9f2ea;
  --line: #b9c9bf;
  --rust: #934528;
  font: 16px/1.55 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; border-top: 4px solid var(--teal); }
a { color: var(--teal); text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

.masthead { text-align: center; padding: clamp(38px, 11vh, 96px) 18px 23px; }
.brand {
  font: italic 900 clamp(3.35rem, 12vw, 5.25rem)/.95 Georgia, serif;
  letter-spacing: -.095em;
  color: var(--teal);
  text-decoration: none;
}
.brand span { color: var(--rust); }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
  max-width: 1120px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.bar .brand { font-size: 2rem; }
nav, .row, .heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.shell { width: min(100% - 36px, 600px); margin: auto; padding: 0 0 12px; }
.wide { width: min(100% - 36px, 1080px); padding-top: 26px; }
.compact { max-width: 450px; }
h1 { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.public h1 { text-align: center; }
.wide h1 { font-size: 1.65rem; }
h2 { font-size: 1.08rem; margin: 0 0 10px; }
p { margin: 0 0 10px; overflow-wrap: anywhere; }
.muted, footer, [role=status] { color: var(--muted); }
[role=status] { font-size: .9rem; }
.panel {
  padding: clamp(13px, 3vw, 20px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 12px;
}
.drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 25px 12px;
  border: 1px dashed #758e81;
  border-radius: 3px;
  background: var(--tint);
  color: var(--teal);
  cursor: pointer;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.drop span { color: var(--muted); font-size: .9rem; }
.drop.drag, .drop:hover, .drop:has(+ input:focus-visible) { background: #dceade; border-color: var(--teal); }
#challenge:not(:empty) { margin-bottom: 10px; }
button {
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid var(--teal);
  padding: 5px 12px;
  background: var(--teal);
  color: white;
  font-weight: 650;
}
button:hover { text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; text-decoration: none; }
.quiet { background: var(--tint); color: var(--teal); border-color: var(--line); }
.danger { background: #f8ebe4; border-color: #ba8777; color: #792f27; }
.stack, label { display: grid; gap: 5px; }
.stack { gap: 13px; }
input, textarea, select {
  min-width: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid #9cafaa;
  border-radius: 3px;
  padding: 6px 8px;
}
textarea { min-height: 106px; resize: vertical; }
.copy { display: flex; gap: 7px; margin-bottom: 9px; }
.copy input { flex: 1; }
.preview img, .preview video { display: block; max-width: 100%; max-height: 74vh; margin: 15px auto; }
.heading { justify-content: space-between; margin-bottom: 10px; }
.heading h2 { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.metrics strong, .metrics span { display: block; overflow-wrap: anywhere; }
.metrics span { font-size: .9rem; }
.records { margin-top: 10px; }
.record { border-top: 1px solid var(--line); padding: 9px 0; overflow-wrap: anywhere; }
.record p { margin: 4px 0; font-size: .92rem; }
.record .row { margin-top: 6px; }
.record .row input { flex: 1; min-width: 120px; }
footer { width: min(100% - 36px, 1080px); margin-inline: auto; padding: 12px 0 24px; font-size: .9rem; }
.page-footer { width: min(100% - 36px, 600px); padding-top: 1px; }
.page-footer nav { justify-content: center; }
.page-footer nav a + a { border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 550px) {
  .heading { align-items: flex-start; }
  .heading form { width: 100%; }
  .heading input { flex: 1; }
}
