:root {
  color-scheme: light;
  --ink: #22201d;
  --muted: #6f6259;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: #ddd1c2;
  --rose: #b94d63;
  --olive: #687354;
  --gold: #b98a35;
  --shadow: 0 20px 60px rgba(55, 42, 30, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(185, 77, 99, 0.14), transparent 36%),
    linear-gradient(315deg, rgba(104, 115, 84, 0.16), transparent 42%),
    var(--paper);
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.shell-wide {
  width: min(1120px, 100%);
}

.intro {
  min-height: 36vh;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 30px 0;
}

.kicker {
  margin: 0;
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 14vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.uploader,
.admin-list {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(221, 209, 194, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.field small {
  color: var(--gold);
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.drop-zone {
  min-height: 210px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed #cbb7a0;
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-zone.is-over {
  border-color: var(--rose);
  background: #fff7f8;
  transform: translateY(-1px);
}

.drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--rose);
  font-size: 2rem;
  line-height: 1;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.toggle input {
  width: 20px;
  height: 20px;
}

.actions,
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

button,
.ghost-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

button {
  border: 0;
  color: white;
  background: var(--ink);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.progress {
  height: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #eadfce;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--olive));
  transition: width 180ms ease;
}

.status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li,
.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.gallery-head {
  padding: 28px 0 22px;
}

.gallery-head h1 {
  max-width: none;
  font-size: clamp(2.4rem, 9vw, 5rem);
}

.gallery {
  columns: 1;
  column-gap: 14px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(55, 42, 30, 0.1);
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-meta {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-key {
  max-width: 440px;
}

.admin-row {
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 720px) {
  .shell {
    padding-top: 42px;
  }

  .gallery {
    columns: 3;
  }
}
