@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1a3300;
  --paper: #fcfaf5;
  --yellow: #ffe95c;
  --mint: #d5f5c2;
  --muted: #56624d;
  --line: #d8dacf;
  --quiet: #f2f2e9;
  --radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.frame,
.header-inner {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand img {
  border-radius: 10px;
}
.header-context {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease-out;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover:not(:disabled) {
  background: #304d16;
}
.primary:active:not(:disabled) {
  background: #142600;
}
#copy-link {
  margin-left: auto;
  min-width: 126px;
}
.copy-feedback {
  position: relative;
}
#copy-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
#copy-status:not(:empty) {
  padding: 16px 0 0;
}
#copy-fallback {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 640px;
}
#copy-fallback label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
#copy-fallback input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
#copy-fallback p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
main {
  min-height: calc(100svh - 210px);
}
h1 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.review-heading > div {
  min-width: 0;
}
.review-page {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.review-page a {
  display: inline;
}
.review-page svg {
  margin-left: 6px;
}
.publication {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.review-summary {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  text-align: right;
  color: var(--muted);
}
.review-summary strong {
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}
.review-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 48px;
  padding-top: 32px;
  align-items: start;
}
.review-sidebar {
  position: sticky;
  top: 24px;
}
.review-sidebar h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 16px;
}
.review-sidebar ol {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 45svh;
  overflow-y: auto;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.review-sidebar li + li {
  margin-top: 4px;
}
.review-sidebar button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.review-sidebar button > span:nth-child(2) {
  overflow-wrap: anywhere;
}
.review-sidebar button:hover {
  background: var(--quiet);
  color: var(--ink);
}
.review-sidebar button[aria-current] {
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
}
.nav-number {
  font-variant-numeric: tabular-nums;
  flex: 0 0 16px;
  font-size: 12px;
}
.status-dot {
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
  align-self: center;
  background: var(--muted);
}
.status-dot.ready {
  background: var(--ink);
}
.status-dot.check {
  background: #8a640a;
}
.review-guide {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.review-guide h2 {
  margin-bottom: 8px;
}
.review-guide p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 0;
}
.review-content {
  min-width: 0;
}
.feedback-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 24px;
  scroll-margin-top: 24px;
  overflow-wrap: anywhere;
}
.feedback-card:focus {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 0;
}
.card-heading > div {
  min-width: 0;
  flex: 1;
}
.item-number {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--quiet);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card-heading h2 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.target {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.status {
  display: inline-flex;
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.status.ready {
  background: var(--mint);
  color: var(--ink);
}
.status.check {
  background: #fff0ba;
  color: #634700;
}
.status.neutral {
  background: var(--quiet);
  color: var(--muted);
}
.card-body {
  padding: 24px 24px 24px 64px;
}
.label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.detail p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  max-width: 70ch;
}
.detail + .detail {
  margin-top: 24px;
}
.decision {
  margin-top: 20px;
  padding: 16px;
  border-radius: 6px;
  background: #fff6d8;
}
.decision.neutral {
  background: var(--quiet);
}
.decision .label {
  color: var(--ink);
}
.decision p {
  font-size: 14px;
}
.constraints {
  margin-top: 24px;
}
.constraints ul {
  padding-left: 20px;
  margin: 0;
}
.constraints li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 4px;
}
.constraints li + li {
  margin-top: 6px;
}
.source-page {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.source-page svg {
  margin-left: 5px;
}
.supporting {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
}
.supporting summary {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  min-height: 32px;
  padding: 4px 0;
}
.supporting summary:hover {
  color: var(--muted);
}
.supporting summary span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}
.supporting-body {
  margin-top: 20px;
}
.supporting-body .detail p {
  font-size: 14px;
}
blockquote {
  margin: 24px 0 0;
  padding: 0;
}
blockquote p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}
blockquote .detail {
  margin-top: 16px;
}
.evidence {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.evidence figure {
  margin: 0;
}
.evidence figure > a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--quiet);
}
.evidence img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}
.evidence figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}
.evidence figcaption svg {
  width: 12px;
  height: 12px;
}
.attachment-missing,
.evidence-notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--quiet);
  margin: 0 0 24px;
}
.attachment-missing {
  margin: 0;
}
.end-note {
  margin: 32px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 32px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.notice {
  padding: 72px 0 48px;
  max-width: 600px;
  margin-inline: auto;
}
.notice h1 {
  font-size: 40px;
}
.notice p {
  line-height: 1.65;
  font-size: 16px;
  margin: 20px 0 0;
  max-width: 52ch;
}
.notice .notice-hint {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.notice .button {
  margin-top: 24px;
}
.loading {
  padding-top: 48px;
}
.loading h1 {
  font-size: 40px;
}
.loading > p {
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 14px;
}
.loading-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 48px;
  margin-top: 48px;
}
.loading-index,
.loading-content {
  display: grid;
  align-content: start;
  gap: 16px;
}
.loading-content {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  min-height: 280px;
}
.loading-layout span {
  display: block;
  background: var(--quiet);
  height: 16px;
  border-radius: 4px;
  animation: breathe 1.8s ease-in-out infinite alternate;
}
.loading-content span:first-child {
  width: 60%;
  height: 24px;
  margin-bottom: 20px;
}
.loading-content span:last-child {
  width: 75%;
}
@keyframes breathe {
  to {
    opacity: 0.4;
  }
}
.mobile-jump {
  display: none;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  z-index: 5;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-width: 1000px) {
  .review-layout {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 24px;
  }
  .card-heading {
    flex-wrap: wrap;
  }
  .card-heading .status {
    margin-left: 40px;
  }
  .card-heading > div {
    flex-basis: calc(100% - 40px);
  }
  .card-body {
    padding-left: 24px;
  }
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .frame,
  .header-inner {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 80px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
    gap: 10px;
  }
  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .header-context {
    display: none;
  }
  .review-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .review-summary {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
  }
  .review-summary strong {
    font-size: 14px;
  }
  .review-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
  }
  .review-content {
    width: 100%;
    order: 0;
  }
  .review-sidebar {
    position: static;
    order: 1;
    width: 100%;
  }
  .review-sidebar nav {
    display: none;
  }
  .review-guide {
    margin-top: 0;
    padding-top: 24px;
  }
  .review-guide p {
    max-width: 64ch;
  }
  .mobile-jump {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
  }
  .mobile-jump label {
    font-size: 12px;
    color: var(--muted);
  }
  .mobile-jump select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    padding: 10px 12px;
    font-size: 14px;
  }
  .card-heading {
    padding: 20px 20px 0;
  }
  .card-body {
    padding: 20px;
  }
  .card-heading h2 {
    font-size: 18px;
  }
  .loading-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }
  .loading-index {
    display: none;
  }
  .site-footer {
    margin-top: 32px;
  }
  .notice {
    padding-top: 48px;
  }
  .notice h1,
  .loading h1 {
    font-size: 40px;
  }
}
@media (max-width: 400px) {
  .frame,
  .header-inner {
    width: calc(100% - 32px);
  }
  .brand span {
    max-width: 100px;
    line-height: 1.25;
  }
  #copy-link {
    min-width: 112px;
    padding-inline: 12px;
  }
  .review-heading h1 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .copy-feedback,
  .review-sidebar,
  .mobile-jump,
  .skip-link {
    display: none;
  }
  .frame {
    width: 100%;
  }
  .review-layout {
    display: block;
  }
  .feedback-card {
    break-inside: avoid;
  }
  .site-footer {
    margin-top: 24px;
  }
}
/* State illustrations use the same paper, marker and ink as the review. */
.state-art {
  display: block;
  width: 240px;
  height: 160px;
  overflow: visible;
  margin: 0 0 24px;
}
.state-art .paper-unsure {
  display: none;
}
.state-art .front-note {
  transform-origin: 140px 90px;
}
.state-art .back-note {
  transform-origin: 96px 90px;
}
.state-art .paper-pointer {
  transform-origin: 180px 103px;
}
.is-loading .front-note {
  animation: paper-settle 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.is-loading .paper-pointer {
  animation: pointer-place 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.is-loading .paper-eyes {
  transform-origin: 136px 78px;
  animation: paper-blink 4.2s ease-in-out infinite;
}
.is-error .paper-smile,
.is-unavailable .paper-smile,
.is-incomplete .paper-smile {
  display: none;
}
.is-error .paper-unsure,
.is-unavailable .paper-unsure,
.is-incomplete .paper-unsure {
  display: block;
}
.is-error .paper-pointer {
  animation: pointer-hiccup 600ms ease-out 1;
  transform: rotate(15deg);
}
.is-incomplete .back-note {
  transform: translateX(-16px) rotate(-6deg);
}
.is-incomplete .paper-pointer {
  transform: translate(8px, 8px) rotate(10deg);
}
.is-unavailable .front-note {
  transform: rotate(7deg);
}
.is-unavailable .paper-pointer,
.is-unavailable .paper-spark {
  display: none;
}
.is-empty .paper-lines,
.is-empty .back-note {
  display: none;
}
.is-empty .paper-spark {
  animation: spark-arrive 500ms ease-out 1;
}
.notice,
.loading {
  text-align: center;
}
.notice .state-art,
.loading .state-art {
  margin-inline: auto;
}
.notice p {
  margin-inline: auto;
}
.loading-layout {
  text-align: left;
}
.loading {
  padding-top: 32px;
}
.loading .state-art {
  margin-bottom: 16px;
}
.loading h1 {
  font-size: 40px;
}
.notice {
  padding-top: 48px;
}
.button {
  transition:
    background-color 160ms ease-out,
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.button:active:not(:disabled) {
  transform: scale(0.97);
}
.is-copied {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}
.is-copied svg {
  animation: copy-confirm 240ms ease-out;
}
#copy-status:not(:empty) {
  animation: status-in 180ms ease-out;
}
@keyframes paper-settle {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}
@keyframes pointer-place {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-7px, -5px);
  }
}
@keyframes paper-blink {
  0%,
  43%,
  47%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.15);
  }
}
@keyframes pointer-hiccup {
  from {
    transform: translate(8px, -6px) rotate(-8deg);
  }
  to {
    transform: rotate(15deg);
  }
}
@keyframes spark-arrive {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes copy-confirm {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .state-art *,
  .button,
  #copy-status {
    animation: none !important;
    transition: none !important;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
}
.review-sidebar {
  top: 120px;
}
.feedback-card {
  scroll-margin-top: 120px;
}
.evidence figure > a {
  aspect-ratio: 16 / 10;
}
.evidence img {
  height: 100%;
  max-height: none;
  object-fit: contain;
}
#evidence-dialog {
  width: min(1280px, calc(100vw - 64px));
  max-height: calc(100svh - 64px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
}
#evidence-dialog::backdrop {
  background: rgb(15 28 5 / 0.72);
}
#evidence-dialog[open] {
  animation: evidence-enter 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.lightbox-heading h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0;
}
.lightbox-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}
.close-evidence {
  background: var(--paper);
  color: var(--ink);
  width: 44px;
  padding: 10px;
  flex-shrink: 0;
}
.close-evidence:hover {
  background: var(--quiet);
}
.lightbox-image {
  background: var(--quiet);
  border-radius: 6px;
}
.lightbox-image img {
  display: block;
  height: auto;
  max-height: 65svh;
  max-width: 100%;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}
#evidence-original {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
}
.lightbox-error {
  padding: 32px 16px;
  font-size: 14px;
  line-height: 1.6;
}
body:has(#evidence-dialog[open]) {
  overflow: hidden;
}
@keyframes evidence-enter {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 760px) {
  #evidence-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    padding: 16px;
  }
  .feedback-card {
    scroll-margin-top: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #evidence-dialog[open] {
    animation: none;
  }
}
