.still-archive-section, .still-contribute-section {
  padding-inline: clamp(22px, 7vw, 112px);
}
.still-archive-section {
  padding-block: clamp(62px, 9vw, 135px);
}
.still-archive-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px 42px;
}
.still-archive-top h2, .still-contribute-section h2 {
  margin: 0;
  font-size: clamp(3.5rem, 11.5vw, 11rem);
  font-family: "STILL Characters", sans-serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: normal;
}
@media (max-width: 759px) {
  .still-archive-top h2, .still-contribute-section h2 { font-size: clamp(3rem, 17vw, 6.5rem); }
}
.still-archive-top p, .still-contribute-section p {
  margin: 0;
  color: var(--muted-ink);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  line-height: 1.35;
}
.still-archive-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 5vw, 75px); }
.still-archive-filter, .still-archive-action {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  line-height: 1.2;
  border-radius: 90px;
  min-height: 40px;
  font-size: .88rem;
}
.still-archive-filter:hover, .still-archive-action:hover { border-color: var(--ink); }
.still-archive-filter[aria-pressed="true"], .still-archive-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.still-archive-primary:hover { background: #fff; }
.still-archive-action:disabled { cursor: progress; opacity: .68; }
.still-archive-count { opacity: .72; font-size: .82rem; font-variant-numeric: tabular-nums; }
.still-archive-status { color: var(--muted-ink); font-size: .82rem; margin-block: 12px 20px; }
.still-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 42px); }
.still-record { min-width: 0; border-top: 1px solid var(--rule); padding-top: 10px; }
.still-record-meta { color: var(--muted-ink); font-size: .76rem; display: flex; justify-content: space-between; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.still-record-media { display: block; width: 100%; padding: 0; border: none; aspect-ratio: 1; position: relative; background: #27232e; color: var(--ink); }
.still-record-art { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 40% 40%, #eeebff65, transparent 77%), linear-gradient(145deg, #b2a5cd, #635674); }
.still-record-art[data-art="key"] { background: radial-gradient(ellipse at 38% 32%, #f1dd9e65, transparent 78%), linear-gradient(145deg, #6d614c, #433a38); }
.still-record-art[data-art="note"], .still-record-art[data-art="words"] { background: radial-gradient(ellipse at 38% 32%, #e4d3ff70, transparent 78%), linear-gradient(145deg, #655d77, #4c445e); }
.still-record-art[data-art="ticket"], .still-record-art[data-art="journeys"] { background: radial-gradient(ellipse at 38% 32%, #e4c09685, transparent 78%), linear-gradient(145deg, #7c5b43, #493337); }
.still-record-art[data-art="tape"], .still-record-art[data-art="sound"] { background: radial-gradient(ellipse at 38% 32%, #b2d6a77a, transparent 78%), linear-gradient(145deg, #647358, #354740); }
.still-record-art[data-art="pictures"] { background: radial-gradient(ellipse at 38% 32%, #bbe08067, transparent 78%), linear-gradient(145deg, #656f4d, #3e483a); }
.still-record-art img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 12px 10px #1d162f48); transition: transform .22s ease; }
.still-record-has-photo img { height: 100%; width: 100%; object-fit: cover; filter: none; }
.still-record-art.still-record-exhibit { background: #242326 url('./assets/art/still-grain.jpg') center / 460px; }
.still-record-exhibit img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.still-record-private:not(.still-record-has-photo)::before { content: ''; width: 26%; aspect-ratio: .83; border: 1px solid #eee0fa8c; box-shadow: 7px 7px 0 #f3e7fc40; transform: rotate(-11deg); }
.still-record-media:hover img { transform: scale(1.065) rotate(-3deg); }
.still-record-media:hover .still-record-has-photo img { transform: scale(1.04); }
.still-record-open { opacity: 0; position: absolute; left: 9px; right: 9px; bottom: 9px; background: #211d28e8; color: var(--ink); font-size: .82rem; padding: 7px 9px; transition: opacity .18s ease; }
.still-record-media:is(:hover, :focus-visible) .still-record-open { opacity: 1; }
.still-record-title { font-size: clamp(1.12rem, 2.05vw, 1.8rem); font-weight: 600; letter-spacing: -.045em; margin-block: 10px 4px; overflow-wrap: anywhere; }
.still-record-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; font-size: .95rem; color: var(--muted-ink); overflow-wrap: anywhere; line-height: 1.4; }
.still-archive-note, .still-archive-empty { color: var(--muted-ink); line-height: 1.45; }
.still-archive-note { margin-block: 28px 0; font-size: .88rem; }
.still-archive-empty { grid-column: 1 / -1; border-block: 1px solid var(--rule); margin: 0; padding-block: 20px; }
.still-contribute-section { padding-block: clamp(55px, 8vw, 125px); background: var(--ink) var(--lavender-paper); color: var(--paper); }
.still-contribute-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding-bottom: clamp(26px, 5vw, 70px); }
.still-contribute-intro p { color: #463c51; }
.still-contribute-section .still-archive-primary { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.still-contribute-section .still-archive-primary:hover { color: #fff; background: #3c314a; }
.still-contribute-section :focus-visible { outline-color: var(--paper); }

.still-archive-dialog { padding: 0; width: min(920px, calc(100% - 30px)); max-height: calc(100% - 30px); background: #292431; color: var(--ink); border: 1px solid var(--rule); }
.still-archive-dialog[data-view="form"] { width: min(960px, calc(100% - 30px)); }
.still-archive-dialog::backdrop { background: #100d16c9; backdrop-filter: blur(7px); }
.still-archive-dialog-open { overflow: hidden; }
.still-dialog-frame { display: grid; position: relative; }
[data-view="story"] .still-dialog-frame { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.still-dialog-art { display: grid; min-height: clamp(165px, 33vw, 410px); }
.still-dialog-art .still-record-art { min-height: inherit; }
.still-dialog-story, .still-dialog-form-panel { padding: clamp(22px, 4.1vw, 52px); }
.still-dialog-story h2, .still-dialog-form-panel h2 { margin: 0 32px 9px 0; font-size: clamp(2.15rem, 5.4vw, 4.6rem); font-weight: 600; line-height: .95; letter-spacing: -.07em; overflow-wrap: anywhere; }
.still-dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; width: 40px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--rule); background: #262232; color: var(--ink); font-size: 1.48rem; }
.still-dialog-close:hover { border-color: var(--ink); }
.still-entry-reference, .still-dialog-byline { color: var(--muted-ink); margin: 0 0 11px; font-size: .83rem; }
.still-dialog-narrative { margin-block: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.still-dialog-story blockquote { font-size: 1.09rem; margin: 18px 0 0; padding-left: 12px; border-left: 2px solid var(--green); }
.still-story-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.still-story-tags li { border: 1px solid var(--rule); padding: 4px 8px; font-size: .8rem; color: var(--muted-ink); }
.still-dialog-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.still-dialog-buttons a { display: inline-flex; align-items: center; text-decoration: none; }
.still-editor { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); align-items: start; column-gap: clamp(24px, 6vw, 95px); row-gap: 24px; }
.still-trace-form, .still-trace-form label { display: grid; gap: 6px; min-width: 0; }
.still-trace-form { gap: 18px; }
.still-trace-form label { font-size: 1rem; }
.still-trace-form input, .still-trace-form select, .still-trace-form textarea { font: inherit; color: var(--ink); background: #211d27; border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; width: 100%; min-width: 0; min-height: 44px; }
.still-contribute-section :is(input, select, textarea) { color-scheme: light; border-color: #9e94af; background: #f3effb; color: #211d27; }
.still-trace-form input::placeholder, .still-trace-form textarea::placeholder { color: #b7acbf; }
.still-contribute-section :is(input, textarea)::placeholder { color: #675d72; }
.still-trace-form input[type="file"] { overflow: hidden; text-overflow: ellipsis; }
.still-trace-form input::file-selector-button { margin-right: 10px; padding: 4px 10px; font: inherit; font-size: .9rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 20px; cursor: pointer; }
.still-image-tools, .still-editor-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.still-image-tools { margin-top: -12px; }
.still-image-tools button { padding: 4px; min-height: 32px; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.still-trace-form textarea { resize: vertical; }
.still-trace-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.still-trace-form .still-archive-action { justify-self: start; }
.still-field-hint { color: var(--muted-ink); font-size: .875rem; line-height: 1.4; }
.still-contribute-section .still-field-hint { color: #54495e; }
.still-dialog-form-panel > p { margin: 0 0 24px; }
.still-trace-preview { color: #e9e2fa; background: #242326 url('./assets/art/still-grain.jpg') center / 460px; border: 1px solid #807789; border-radius: 10px; padding: clamp(15px, 2vw, 32px); width: 100%; min-width: 0; }
.still-preview-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: .875rem; color: #e9e2fa; }
.still-preview-visual { display: grid; justify-items: center; align-items: center; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid #797381; border-radius: 6px; }
.still-preview-mark { max-width: 48%; max-height: 68%; opacity: .78; }
.still-preview-photo { height: 100%; width: 100%; object-fit: contain; }
.still-trace-preview h3 { margin: 16px 0 6px; letter-spacing: -.045em; line-height: 1.05; font-size: clamp(1.75rem, 3.7vw, 3.3rem); color: #e9e2fa; overflow-wrap: anywhere; }
.still-trace-preview p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; margin: 0; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; color: #e9e2fa; line-height: 1.45; font-size: 1rem; }
.still-preview-author { margin-top: 16px; color: #d6cce1; font-size: .9rem; overflow-wrap: anywhere; }
.still-editor[data-category="sound"] [data-preview-category] { color: #ffa634; }
.still-editor[data-category="objects"] [data-preview-category] { color: #63bee8; }
.still-editor[data-category="pictures"] [data-preview-category] { color: #a1cf62; }
.still-dialog-error { color: #ffd6ae; margin: 0; line-height: 1.4; }
.still-contribute-section .still-dialog-error { color: #852a25; font-size: 1rem; }
.still-archive [hidden] { display: none; }
@media (max-width: 820px) {
  .still-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .still-editor { grid-template-columns: 1fr; }
  .still-editor-actions .still-archive-action { min-height: 44px; }
  .still-trace-preview { max-width: 460px; }
}
@media (max-width: 600px) {
  [data-view="story"] .still-dialog-frame { grid-template-columns: 1fr; }
  .still-dialog-art { height: 190px; }
}
@media (max-width: 440px) {
  .still-trace-row { grid-template-columns: 1fr; }
}
