:root {
  color-scheme: light;
  --ink: #14211f;
  --muted: #546460;
  --paper: #f7f6ef;
  --panel: #fffdf8;
  --line: rgba(20, 33, 31, 0.16);
  --green: #1f7a5b;
  --gold: #b87014;
  --red: #b74336;
  --focus: #2166a5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: #fff;
}

.skip:focus {
  top: 12px;
}

.banner,
.top,
.nav,
main,
footer {
  width: min(72rem, 100%);
  margin-inline: auto;
}

.banner {
  padding: 10px 16px;
  background: #f8e8d8;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand small,
.note,
.chip,
.empty,
.ad-label {
  color: var(--muted);
}

.chip {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 16px 12px;
}

.nav a,
.button,
.tabs button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.nav a[aria-current="page"],
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

main {
  padding: 8px 16px 48px;
}

.view h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.facts div,
.panel,
.ad,
.card {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.panel pre {
  overflow: auto;
  white-space: pre-wrap;
}

.row,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.feed {
  display: grid;
  gap: 14px;
  max-width: 28rem;
}

.poster {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  border: 1px solid var(--line);
}

.poster.a { background: linear-gradient(160deg, #1f7a5b, #14211f); }
.poster.b { background: linear-gradient(160deg, #2166a5, #14211f); }
.poster.c { background: linear-gradient(160deg, #b87014, #14211f); }
.poster.explicit {
  background: linear-gradient(160deg, #b74336, #14211f);
}

.card.hidden-explicit {
  display: none;
}

.card.blurred-explicit .poster {
  filter: blur(14px);
}

.card.blurred-explicit .warn {
  font-weight: 700;
}

form {
  display: grid;
  gap: 10px;
  max-width: 32rem;
}

label,
legend {
  font-weight: 650;
}

input[type="file"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  font: inherit;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.meter {
  height: 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
  background: #fff;
}

.meter-fill {
  width: 12%;
  height: 100%;
  background: var(--green);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  color: inherit;
  font-weight: 700;
}

.lede-sm {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 750;
}

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

  .button.primary,
  form .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster.explicit,
  .card.blurred-explicit .poster {
    filter: none;
  }
}
