* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f6f2;
  color: #222521;
  font:
    16px/1.5 system-ui,
    sans-serif;
}
header,
main,
#status {
  max-width: 1520px;
  margin: auto;
  padding: 22px clamp(18px, 5vw, 86px);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
}
.brand {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.07em;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header a,
.card {
  text-decoration: none;
}
nav,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
h1 {
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 32px 0;
}
h2 {
  font-size: 20px;
  margin: 8px 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 22px;
}
.card img,
.placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #dcdad3;
  display: grid;
  place-items: center;
}
.story img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin: 16px auto;
}
.desc {
  white-space: pre-wrap;
  max-width: 72ch;
}
button,
input,
textarea,
select {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #aaa;
  border-radius: 3px;
}
button {
  cursor: pointer;
  background: #fff;
}
button.primary {
  background: #213b33;
  color: white;
}
label {
  display: grid;
  gap: 5px;
  margin: 16px 0;
}
textarea {
  min-height: 140px;
}
form,
.editor {
  max-width: 850px;
}
.thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #ccc;
  padding: 9px 0;
}
#status {
  position: sticky;
  bottom: 0;
  background: #f7f6f2;
  font-weight: 600;
}
#status:empty {
  display: none;
}
button:disabled {
  opacity: 0.45;
}
@media (max-width: 660px) {
  header {
    align-items: flex-start;
    gap: 12px;
  }
  nav {
    justify-content: flex-end;
    gap: 6px 12px;
    font-size: 14px;
  }
}
