:root {
  --paper: #f7f6ef;
  --ink: #243e34;
  --muted: #657269;
  --line: #daddd0;
  --accent: #ede5c8;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ab652f;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 15px;
  background: white;
}
.skip:focus {
  top: 15px;
}
.site-header,
main,
footer {
  max-width: 1280px;
  margin: auto;
  padding-left: 56px;
  padding-right: 56px;
}
.site-header {
  height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 19px;
  letter-spacing: -0.6px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.brand-mark {
  flex: 0 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  color: #7b8850;
}
.site-header nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}
.site-header nav a {
  padding: 12px 0;
}
.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 58px 0 43px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  letter-spacing: -2.8px;
  line-height: 1.1;
}
.search {
  width: 340px;
  border: 1px solid #cbd1c4;
  background: #fffefa;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
}
.search > span {
  font-size: 27px;
  line-height: 20px;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  font-size: 14px;
  outline-offset: 0;
}
.search:focus-within {
  border-color: #879567;
  box-shadow: 0 0 0 3px #87956726;
}
.search input:focus-visible {
  outline: none;
}
.search input::placeholder {
  color: var(--muted);
}
.search button {
  border: 0;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 20px;
}
h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.7px;
}
.section-heading h2 span {
  color: #8b7840;
  font-size: 30px;
  margin-right: 9px;
}
.year-control select {
  padding: 9px 30px 9px 13px;
  border: 1px solid #cbd0b9;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: #fffefa;
  border: 1px solid #e1e3d8;
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #243e3410;
}
.card-image {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  display: block;
  background: #e8e9df;
}
.image-empty {
  display: grid;
  place-items: center;
  background: #e3e6d6;
  color: #879567;
}
.image-empty span {
  font-size: 58px;
  font-weight: 400;
  opacity: 0.6;
}
.card:nth-child(3n + 2) .image-empty {
  background: #f0e4d7;
  color: #ad875f;
}
.card:nth-child(3n) .image-empty {
  background: #dce8e4;
  color: #789c8e;
}
.card-body {
  padding: 23px 23px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card time,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.card h3 {
  font: 400 25px/1.2 var(--serif);
  letter-spacing: -0.55px;
  margin: 13px 0 12px;
}
.impact-link:after {
  content: "";
  position: absolute;
  inset: 0;
}
.card p {
  font-size: 14px;
  line-height: 1.65;
  color: #5e685f;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.project-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 0 0;
  border-top: 1px solid #e5e6dd;
  max-width: 100%;
}
.project-link:hover {
  text-decoration: underline;
}
.project-link span {
  padding-left: 6px;
  color: #788766;
}
.new {
  padding-top: 48px;
  scroll-margin-top: 24px;
}
.count {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 46px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed #ccd1bf;
  border-radius: 8px;
}
.new .empty {
  padding: 64px 18px;
}
footer {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  padding-bottom: 35px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
footer span {
  margin-left: 6px;
}
.detail {
  padding-top: 36px;
}
.back {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 36px;
  color: var(--muted);
}
.back:hover {
  text-decoration: underline;
}
.detail-image {
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  margin: 24px 0;
  border-radius: 12px;
}
.reading {
  max-width: 740px;
  margin: 18px auto 0;
}
.reading h1 {
  font-size: 52px;
  line-height: 1.13;
  margin: 18px 0 25px;
  overflow-wrap: anywhere;
}
.project-pill {
  display: inline-block;
  padding: 10px 15px;
  background: #e9ecde;
  border: 1px solid #d6ddc8;
  border-radius: 30px;
  font-size: 13px;
}
.project-pill:hover {
  background: #dce3cf;
}
.description {
  font-size: 18px;
  line-height: 1.85;
  margin: 32px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.evidence {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 30px;
}
.evidence h2 {
  font-size: 24px;
}
.evidence p,
.evidence li {
  font-size: 14px;
  line-height: 1.8;
}
.evidence p {
  margin-top: 16px;
}
.evidence ol,
.evidence ul {
  padding-left: 20px;
}
.evidence a {
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.related {
  margin-top: 60px;
}
.related > h2 {
  margin-bottom: 24px;
}
@media (max-width: 1000px) {
  .site-header,
  main,
  footer {
    padding-left: 30px;
    padding-right: 30px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card h3 {
    font-size: 24px;
  }
}
@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    height: 88px;
  }
  .brand {
    font-size: 15px;
    gap: 7px;
  }
  .brand-mark {
    font-size: 28px;
  }
  .site-header nav {
    gap: 16px;
    font-size: 12px;
  }
  .page-top {
    align-items: stretch;
    flex-direction: column;
    padding: 35px 0 28px;
    gap: 25px;
  }
  h1 {
    font-size: 52px;
  }
  .search {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  h2 {
    font-size: 28px;
  }
  .new {
    padding-top: 36px;
  }
  .card-body {
    padding: 22px;
  }
  .card h3 {
    font-size: 27px;
  }
  .reading h1 {
    font-size: 39px;
    letter-spacing: -1.5px;
  }
  .description {
    font-size: 17px;
  }
  .detail-image {
    margin-bottom: 28px;
  }
  footer {
    margin-top: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: #879567;
}
.about {
  margin-top: 32px;
}
.about .evidence p {
  font-size: 16px;
  margin-top: 14px;
}

.reactions {
  display: flex;
  gap: 4px;
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.card-title:hover .reactions, .card-title:focus-within .reactions, .reactions:focus-within,
.detail-reactions .reactions { opacity: 1; pointer-events: auto; }
.reactions button {
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

.reactions button:hover { background: #eff0e6; }
.reactions button[aria-pressed="true"] { background: #e1e7d2; border-color: #879567; }
.reactions button:disabled { opacity: .5; cursor: wait; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 35px; max-width: 420px; width: calc(100% - 36px); }
dialog::backdrop { background: #243e3455; }
dialog p { font-size: 14px; line-height: 1.6; margin: 18px 0; }
.dialog-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 25px; cursor: pointer; }
.signin-primary { display: block; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #bfc4bc; border-radius: 8px; padding: 12px 16px; margin-top: 12px; cursor: pointer; font-size: 14px; font-weight: 500; min-height: 46px; }
#signin-title { margin-bottom: 26px; }
.provider-button { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 12px; }
.provider-button span { grid-column: 2; }
.provider-logo { display: block; width: 20px; height: 20px; }
.signin-primary:hover { background: #f5f6f3; border-color: #949c8d; }
.signin-primary:disabled { opacity: .55; cursor: wait; }
#auth-status:empty { display: none; }
.vote-status { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 14px 22px; border-radius: 9px; z-index: 20; width: max-content; max-width: calc(100% - 32px); font-size: 14px; }
@media (hover: none), (pointer: coarse) { .reactions { opacity: 1; pointer-events: auto; } }
@media (max-width: 620px) { .site-header nav { gap: 12px; } }

/* A quiet, immediately usable contribution form. */
.contribute { max-width: 720px; margin: 26px auto 0; }
.contribute h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -1.8px; margin: 0 0 22px; }
.contribution-rules { white-space: pre-line; margin-bottom: 26px; font-size: 13px; line-height: 1.7; }
.contribution-rules summary { cursor: pointer; width: fit-content; }
.contribution-rules summary span { color: var(--muted); margin-left: 12px; }
.contribution-rules ul { padding-left: 20px; margin: 12px 0 0; color: var(--muted); max-width: 590px; }
.contribute form { background: #fffefa; border: 1px solid #e0e2d7; border-radius: 16px; padding: clamp(18px, 4vw, 32px); box-shadow: 0 4px 20px #243e3404; }
.contribute fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-field { margin-bottom: 23px; min-width: 0; }
.contribute label:not(.checkbox-label) { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.contribute input:not([type="checkbox"]), .contribute textarea, .contribute select { display: block; width: 100%; min-width: 0; border: 1px solid #d9ded2; border-radius: 7px; background: #fcfcf7; padding: 12px 13px; font: inherit; font-size: 16px; color: inherit; transition: border-color .15s, background .15s; }
.contribute input::placeholder, .contribute textarea::placeholder { color: #899086; }
.contribute input:focus, .contribute textarea:focus, .contribute select:focus { border-color: #879567; background: #fff; outline: 2px solid #87956733; outline-offset: 1px; }
.contribute textarea { resize: vertical; line-height: 1.65; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 7px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 22px; }
.checkbox-label { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.6; margin: 14px 0 0; }
.checkbox-label input { margin-top: 4px; accent-color: var(--ink); }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 26px; }
#draft-status { color: var(--muted); font-size: 12px; }
.action-button { background: var(--ink); color: #fffefa; border: 1px solid var(--ink); border-radius: 8px; padding: 13px 19px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.action-button span { margin-left: 12px; }
.action-button:hover { background: #365646; }
.action-button:disabled { opacity: .5; cursor: wait; }
.submission-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 17px; }
.text-button { background: none; color: inherit; border: 0; padding: 8px 0; cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
#submission-result { background: #eef0df; border: 1px solid #dce0ca; padding: 24px; border-radius: 12px; margin-top: 24px; line-height: 1.7; overflow-wrap: anywhere; }
#submission-result a, #submission-result button { display: block; margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) {
  .contribute { margin-top: 8px; }
  .contribute form { padding: 22px 18px 18px; }
  .contribution-rules summary span { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer { align-items: flex-start; flex-direction: column-reverse; }
  .form-footer .action-button { width: 100%; }
}
.source-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.source-row input { flex: 1; }
.source-remove { border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 22px; padding: 6px 10px; cursor: pointer; }
.source-remove:hover { background: #f0eee4; color: var(--ink); }
#add-source { font-size: 12px; color: var(--muted); text-decoration: none; }
#add-source:hover { color: var(--ink); }
#add-source:disabled { opacity: .5; cursor: default; }

.blog-post { max-width: 680px; padding-top: 24px; padding-bottom: 48px; }
.blog-post h1 { margin-bottom: 32px; }
.blog-post p { font-size: 18px; line-height: 1.85; margin: 0 0 24px; }
.blog-post h2 { margin: 40px 0 18px; }
.blog-post a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .blog-post { padding-top: 8px; }
  .blog-post p { font-size: 17px; }
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.sort-controls { display: flex; gap: 6px; }
.sort-controls button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
}
.sort-controls button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.sort-controls button:hover { border-color: var(--line); }
.ranking-status { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
#impacts { scroll-margin-top: 24px; }
@media (max-width: 620px) {
  .listing-toolbar { flex-wrap: wrap; gap: 16px; }
  .listing-toolbar .search { flex: 1 1 190px; min-width: 0; }
}

.contribute .contribution-rules { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 650px; margin-bottom: 28px; }
#submission-result.is-success { padding: 44px 28px 28px; text-align: center; background: #f1f3e8; border-color: #d9e0cc; }
.success-check { display: block; width: 64px; height: 64px; margin: 0 auto 22px; }
.success-check circle { fill: #e0e8d2; }
.success-check path { fill: none; stroke: #456344; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
#submission-success h2 { font-size: 30px; margin-bottom: 12px; }
#submission-success p { color: var(--muted); font-size: 15px; }
#submission-success a { display: inline; margin: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#submission-result.is-success > a, #submission-result.is-success > button { margin: 18px auto 0; font-size: 13px; color: var(--muted); }
#image-preview { display: block; max-width: 100%; max-height: 240px; margin-top: 14px; border-radius: 8px; object-fit: contain; }

.card-title { position: relative; }
.card-title .reactions { margin-top: 8px; }
.detail-reactions { margin: 20px 0; }
.reported-date { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* Shared fluid reading layout: detail and contribution pages use the same scale. */
.reading { width: 100%; min-width: 0; }
.reading h1 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.035em; text-wrap: balance; }
.listing-detail { margin-top: clamp(20px, 4vw, 40px); }
.listing-detail .back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; }
.listing-detail .detail-image { max-width: 100%; max-height: clamp(180px, 30vw, 260px); object-fit: contain; }
.description { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.75; }
.evidence a { overflow-wrap: anywhere; }
.source-remove { flex: 0 0 44px; min-height: 44px; }
.reactions button, .action-button, #add-source { min-height: 44px; min-width: 44px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
#submission-result.is-success { padding: clamp(24px, 5vw, 44px) clamp(18px, 4vw, 28px); }
@media (max-width: 620px) {
  .detail { padding-top: 12px; }
  .contribute form { padding: 18px; }
  .contribution-rules { font-size: 15px; }
  .listing-detail { margin-top: 0; }
}

/* Article heading and artwork share one alignment and adapt without separate markup. */
.listing-detail { max-width: 760px; }
.listing-detail .back { gap: 9px; color: var(--muted); font-size: 14px; line-height: 1; text-decoration: none; margin: 0 0 24px; }
.listing-detail .back:hover { color: var(--ink); }
.listing-detail .back span:first-child { font-size: 20px; }
.listing-heading { display: flex; flex-direction: column; align-items: stretch; gap: clamp(24px, 4vw, 32px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.listing-heading h1 { flex: 1; min-width: 0; margin: 0; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.15; text-wrap: pretty; }
.listing-heading .detail-image { flex: 0 0 auto; align-self: center; width: auto; height: auto; max-width: 100%; max-height: clamp(240px, 36vw, 340px); margin: 0; border-radius: 12px; object-fit: contain; }
.listing-detail .description { margin: 28px 0 20px; }
@media (max-width: 480px) {
  .listing-heading h1 { font-size: 30px; }
}
