/* The film page. Every colour is named once, here; the rules below only use the names.
   One accent colour, outlines instead of shadows, one column below 800 px. */
:root {
  --page: #f5f4ef;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #55554e;
  --line: #85837a;
  --accent: #1e5a3c;
  --on-accent: #ffffff;
  --video-ground: #111110;
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 650;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
}

p {
  margin: 0;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field {
  width: 100%;
  padding: 9px 11px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.field-long {
  min-height: 9.5rem;
  resize: vertical;
}

.button {
  padding: 9px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button-quiet {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  font-weight: 400;
}

.field:focus-visible,
.button:focus-visible,
.picture:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.intro {
  max-width: 72ch;
  margin-top: 14px;
}

.notice {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: 4px;
  font-weight: 600;
}

.reader {
  max-width: 26rem;
  margin-top: 24px;
}

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.film {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--video-ground);
  border-radius: 4px;
}

.missing {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
}

.about {
  margin-bottom: 18px;
}

.save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}

.saved {
  color: var(--muted);
  font-size: 0.92rem;
}

.door {
  max-width: 24rem;
  margin: 12vh auto 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.door-form {
  margin-top: 20px;
}

.door-button {
  margin-top: 16px;
}

.plain-line {
  margin-top: 14px;
}

.link {
  color: var(--accent);
}

@media (min-width: 800px) {
  .film {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px 28px;
    padding: 24px;
  }

  .film-title {
    grid-column: 1 / -1;
  }
}
