:root {
  --cyan: #9ed8d8;
  --lavender: #c9c8ff;
  --acid: #d7ff1f;
  --orange: #ff6a00;
  --ink: #14141c;
  --paper: #f6f4ee;
  --muted: #5e6170;
  --line: #15151c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Arial Narrow", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.stage {
  width: min(1240px, calc(100vw - 56px));
  margin: 36px auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(20, 20, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 28, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, var(--cyan) 0%, #a7dcdd 58%, #b0dddd 100%);
  background-size: 39px 39px, 39px 39px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: 24%;
  bottom: -46px;
  height: 142px;
  border: 2px solid var(--line);
  background: var(--lavender);
  transform: rotate(-13deg);
}

.hero-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 30px 40px 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.hero-kicker span {
  padding: 5px 8px;
  color: white;
  background: var(--ink);
}

.hero-kicker p {
  margin: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  padding: 42px 40px 36px;
}

h1 {
  margin: 0;
  font-size: clamp(92px, 14vw, 180px);
  line-height: 0.76;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.hero-panel {
  display: grid;
  align-content: space-between;
  justify-items: end;
  min-height: 236px;
  text-align: right;
}

.power-by {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.power-by span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.power-by strong {
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.84;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.panel-label {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.hero-copy {
  max-width: 250px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.status-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  padding: 8px 11px;
  border: 1.5px solid var(--line);
  background: rgba(246, 244, 238, 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--acid);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 28px 0 16px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.remove-btn {
  border: 1.8px solid var(--line);
  border-radius: 0;
  padding: 11px 15px;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: 0.03em;
  box-shadow: 4px 4px 0 var(--line);
}

.primary-btn {
  color: white;
  background: var(--orange);
}

.secondary-btn {
  background: var(--acid);
}

.remove-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--paper);
  font-size: 25px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(20, 20, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 28, 0.035) 1px, transparent 1px),
    #fbfaf5;
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 8px 8px 0 rgba(20, 20, 28, 0.92);
}

.post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 2px solid var(--line);
  background: var(--cyan);
}

.post-index {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.post-body {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1.1fr);
}

.upload-panel {
  padding: 18px;
  border-right: 2px solid var(--line);
}

.brief-panel {
  padding: 18px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 2px dashed var(--line);
  background: var(--lavender);
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone.dragging {
  background: var(--acid);
}

.dropzone b {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.dropzone span {
  color: var(--muted);
  font-size: 13px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--line);
  background: #e5e2d8;
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 7px;
  color: white;
  background: rgba(20, 20, 28, 0.88);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

em {
  color: #e11900;
  font-style: normal;
  font-weight: 950;
}

input,
select,
textarea {
  width: 100%;
  border: 1.8px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffefa;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.48;
  text-transform: none;
  letter-spacing: 0;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.2);
}

.button-row {
  margin: 14px 0;
}

.caption-block {
  margin-top: 8px;
}

.check-panel {
  margin-top: 12px;
  border: 1.8px solid var(--line);
  background: var(--cyan);
}

.check-title {
  padding: 9px 11px;
  border-bottom: 1.8px solid var(--line);
  background: var(--acid);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.check-list {
  display: grid;
  gap: 8px;
  padding: 11px;
  font-size: 12px;
}

.check-item {
  display: flex;
  gap: 8px;
}

.check-item b {
  min-width: 42px;
}

.check-item.ok b {
  color: #12672f;
}

.check-item.warn b {
  color: #a04200;
}

@media (max-width: 920px) {
  .stage {
    width: min(100vw - 28px, 1240px);
    margin: 18px auto;
  }

  .hero-grid,
  .post-body {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-items: start;
    min-height: 150px;
    text-align: left;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-panel {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .actions button,
  .button-row button {
    width: 100%;
  }
}
