:root {
  --paper: #f1eee6;
  --paper-deep: #e6e1d6;
  --ink: #151512;
  --muted: #68665f;
  --line: #b9b4aa;
  --acid: #d8ff52;
  --signal: #ef5a35;
  --focus: #1957ff;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.wordmark span {
  color: var(--signal);
}

.header-meta {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  min-height: 560px;
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px);
  border-right: 1px solid var(--ink);
}

.eyebrow,
.category-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 920px;
  margin: 72px 0 0;
  font-size: clamp(70px, 11vw, 178px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 72px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--acid);
}

.hero-aside > p {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.library-count {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.library-count strong {
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.library-count span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.library {
  padding: clamp(52px, 8vw, 110px) clamp(20px, 4vw, 64px);
}

.library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.library-toolbar h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.search-field {
  display: grid;
  width: min(100%, 390px);
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.search-field input::placeholder {
  color: #77746c;
}

.filter-groups {
  padding: 12px 0 34px;
}

.filter-group {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.filter-label {
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.category-filters button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.category-filters button:hover,
.category-filters button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.design-card {
  grid-column: span 4;
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  padding: 12px 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.preview-artwork {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #d5d1c8;
}

.preview-generated,
.preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-image {
  z-index: 3;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.preview-image.is-loaded {
  opacity: 1;
}

.source-badge {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.source-badge-static {
  position: static;
}

.preview-generated {
  overflow: hidden;
}

.design-card .preview-artwork::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 8px solid var(--acid);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.design-card:hover .preview-artwork::after,
.design-card:focus-within .preview-artwork::after {
  opacity: 1;
}

.preview-dither {
  background: #eeece4;
}

.preview-dither .preview-generated {
  background-image:
    radial-gradient(#171714 0.8px, transparent 0.8px),
    linear-gradient(90deg, transparent 49.7%, #171714 50%, transparent 50.3%);
  background-size: 5px 5px, 100% 100%;
}

.dither-code,
.dither-caption {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.8vw, 11px);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.dither-code {
  top: 7%;
  left: 6%;
}

.dither-caption {
  right: 5%;
  bottom: 5%;
  padding: 4px;
  background: #eeece4;
}

.dither-title {
  position: absolute;
  z-index: 2;
  top: 24%;
  left: 6%;
  font-size: clamp(38px, 5.2vw, 80px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.76;
}

.dither-orb {
  position: absolute;
  right: -7%;
  bottom: -12%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 20px 12px 0 #eeece4;
}

.preview-cinematic {
  background: #254148;
  color: #f2d793;
}

.preview-cinematic .preview-generated {
  background:
    linear-gradient(164deg, transparent 0 62%, rgba(14, 26, 28, 0.92) 62%),
    #254148;
}

.cinematic-kicker {
  position: absolute;
  top: 6%;
  left: 6%;
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.8vw, 11px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cinematic-sun {
  position: absolute;
  top: 18%;
  right: 17%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2d793;
}

.cinematic-horizon {
  position: absolute;
  right: -5%;
  bottom: 20%;
  width: 80%;
  height: 26%;
  border-top: 1px solid #f2d793;
  transform: rotate(-10deg);
}

.cinematic-title {
  position: absolute;
  bottom: 8%;
  left: 6%;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.7vw, 86px);
  letter-spacing: -0.07em;
  line-height: 0.75;
}

.preview-editorial {
  background: #e65332;
  color: #17204d;
}

.preview-editorial .preview-generated {
  background:
    linear-gradient(90deg, transparent 49.7%, #17204d 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 64.7%, #17204d 65%, transparent 65.3%),
    #e65332;
}

.editorial-issue,
.editorial-index {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.8vw, 11px);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.editorial-issue {
  top: 6%;
  right: 5%;
}

.editorial-index {
  right: 5%;
  bottom: 5%;
}

.editorial-title {
  position: absolute;
  top: 9%;
  left: 5%;
  font-size: clamp(35px, 4.7vw, 72px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.76;
}

.editorial-rule {
  position: absolute;
  right: 9%;
  bottom: 17%;
  width: 28%;
  height: 28%;
  border: 12px solid #17204d;
  border-radius: 50%;
}

.card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0 14px;
}

.card-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.view-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.card-keywords {
  padding-bottom: 30px;
}

.state-message {
  min-height: 180px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}

.state-error {
  color: #9b2818;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  padding: 20px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > span:last-child {
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(17, 17, 14, 0.76);
  backdrop-filter: blur(5px);
}

.detail-modal {
  display: grid;
  width: min(1480px, 100%);
  height: calc(100vh - 36px);
  max-width: 1480px;
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
  animation: modal-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-header {
  position: relative;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.modal-header > div {
  display: flex;
  gap: 18px;
}

.modal-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.text-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.text-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.modal-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

.modal-visual {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid var(--ink);
  background: var(--paper-deep);
}

.preview-large {
  position: relative;
  top: auto;
  min-height: 240px;
  flex: 1 1 0;
  aspect-ratio: auto;
}

.modal-visual.has-capture-frames .preview-large {
  min-height: 280px;
}

.preview-large .preview-image {
  object-fit: contain;
}

.preview-large {
  background: var(--paper);
}

.preview-large .preview-generated {
  display: none;
}

.source-video-shell {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #090a0c;
}

.source-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-frame-image {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease;
}

.source-frame-image.is-loaded {
  opacity: 1;
}

.modal-visual > .source-video-shell {
  min-height: 240px;
  flex: 1 1 0;
  aspect-ratio: auto;
}

.source-provenance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.source-provenance > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.source-provenance strong {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-links {
  justify-content: flex-end;
}

.source-link {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.source-link:hover,
.source-link:focus-visible {
  background: var(--acid);
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.capture-frames {
  flex: 0 0 auto;
  margin-top: 18px;
}

.capture-frames h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.capture-frame-strip {
  display: grid;
  grid-auto-columns: minmax(112px, 24%);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.capture-frame-trigger {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #d5d1c8;
  cursor: pointer;
  scroll-snap-align: start;
  transition: box-shadow 160ms ease;
}

.capture-frame-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-frame-trigger:hover,
.capture-frame-trigger.is-active {
  box-shadow: inset 0 0 0 4px var(--acid);
}

.capture-frame-trigger:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: -4px;
}

.capture-frame-index {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
}

.image-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.modal-content {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 54px);
}

.title-block {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ink);
}

.category-label {
  display: inline-block;
  margin-bottom: 26px;
  padding: 6px 9px;
  background: var(--acid);
}

.title-block h2 {
  margin: 0 0 20px;
  font-size: clamp(52px, 7vw, 102px);
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.title-block p,
.detail-section p {
  max-width: 62ch;
  margin: 0;
  color: #3d3c37;
  font-size: 16px;
  line-height: 1.6;
}

.detail-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.guardrail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-section li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}

.detail-section li::before {
  position: absolute;
  left: 0;
  content: "—";
}

.guardrail-always h3 {
  color: #287235;
}

.guardrail-never h3 {
  color: #a42c1b;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 32px;
}

.copy-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.copy-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.copy-button-primary {
  background: var(--acid);
}

.copy-button-wide {
  grid-column: 1 / -1;
}

.design-document {
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: #f7f3e9;
}

.design-document[hidden] {
  display: none;
}

.design-document-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--ink);
}

.design-document-header h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.design-document-copy {
  width: auto;
  min-height: 44px;
}

.design-document-status {
  margin: 0;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.design-document-error {
  color: #a42c1b;
}

.design-document > code {
  display: block;
  margin: -12px 24px 24px;
  overflow-wrap: anywhere;
}

.design-markdown {
  padding: clamp(22px, 4vw, 42px);
}

.design-frontmatter {
  margin-bottom: 36px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.design-frontmatter summary {
  min-height: 44px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.design-frontmatter pre {
  max-height: 420px;
  margin: 0;
  padding: 18px 16px;
  overflow: auto;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre;
}

.design-markdown h3 {
  max-width: 12ch;
  margin: 0 0 36px;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.design-markdown h4 {
  margin: 48px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.design-markdown h5 {
  margin: 28px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.design-markdown p {
  max-width: 70ch;
  margin: 0 0 16px;
  color: #34332e;
  font-size: 15px;
  line-height: 1.65;
}

.design-markdown ul {
  display: grid;
  max-width: 68ch;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 20px;
}

.design-markdown li {
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.55;
}

.design-markdown code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-copy {
    min-height: 500px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hero-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .design-card {
    grid-column: span 6;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .detail-modal {
    display: block;
    height: auto;
    overflow: auto;
  }

  .modal-header {
    position: sticky;
  }

  .modal-visual {
    display: block;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .preview-large {
    position: relative;
    top: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .modal-visual.has-capture-frames .preview-large,
  .modal-visual > .source-video-shell {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .modal-content {
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 62px;
  }

  .header-meta span:first-child {
    display: none;
  }

  .hero-copy {
    min-height: 410px;
  }

  .hero h1 {
    margin-top: 56px;
    font-size: clamp(62px, 21vw, 104px);
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

  .filter-label {
    padding-top: 18px;
  }

  .design-card {
    grid-column: 1 / -1;
  }

  .modal-backdrop {
    padding: 0;
  }

  .detail-modal {
    height: 100vh;
    max-height: 100vh;
    border: 0;
  }

  .modal-visual {
    padding: 12px;
  }

  .source-provenance {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .capture-frame-strip {
    grid-auto-columns: 72%;
  }

  .modal-content {
    padding: 28px 20px 36px;
  }

  .guardrail-grid,
  .modal-actions {
    grid-template-columns: 1fr;
  }

  .copy-button-wide {
    grid-column: auto;
  }

  .design-document-header {
    align-items: stretch;
    flex-direction: column;
  }

  .design-document-copy {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer p,
  footer > span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
