:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #172033;
  --muted: #5f6b7f;
  --line: rgba(45, 66, 96, 0.14);
  --accent: #087dff;
  --accent-strong: #0068d8;
  --accent-soft: rgba(8, 125, 255, 0.1);
  --violet-soft: rgba(111, 92, 255, 0.1);
  --success: #147d4d;
  --shadow: 0 22px 60px rgba(35, 58, 92, 0.12);
  --shadow-soft: 0 12px 34px rgba(35, 58, 92, 0.08);
  --radius: 22px;
  --shell: min(1120px, calc(100% - 32px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(50, 144, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 3%, rgba(111, 92, 255, 0.12), transparent 28rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid rgba(8, 125, 255, 0.38);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 5rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.2rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.site-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link,
.language-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.language-link:hover,
.nav-link[aria-current="page"],
.language-link[aria-current="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

main {
  padding: 66px 0 48px;
}

.hero {
  max-width: 900px;
  padding: 16px 0 82px;
}

.hero.home-hero {
  max-width: 920px;
  min-height: 400px;
  display: grid;
  align-content: center;
}

.eyebrow,
.section-eyebrow,
.item-label,
.status-badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 11px;
  border: 1px solid rgba(8, 125, 255, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-lead,
.page-lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.3rem;
}

.hero-intro {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-quote {
  max-width: 680px;
  margin: 30px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid rgba(8, 125, 255, 0.42);
}

.home-quote p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
}

.home-quote cite {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-strong);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(30, 55, 90, 0.08);
}

.button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button:hover {
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.section-block {
  margin-bottom: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.portal-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
}

.portal-index {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 780;
}

.portal-card h3 {
  font-size: 1.45rem;
}

.portal-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.project-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 286px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
}

.project-card.is-static {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.project-icon,
.type-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}

.project-icon {
  object-fit: contain;
}

.project-icon.termdesk {
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(20, 42, 78, 0.18);
}

.project-icon.taffish {
  width: 92px;
  padding: 3px;
}

.type-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 2rem;
  font-weight: 750;
}

.project-card h3 {
  font-size: 1.32rem;
}

.project-card > p:not(.item-label) {
  margin: 0 0 24px;
  color: var(--muted);
}

.project-links {
  margin-top: auto;
}

.project-links a,
.project-status {
  font-size: 0.9rem;
  font-weight: 700;
}

.project-status {
  margin-top: auto;
  color: var(--muted);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.project-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface-strong);
  font-size: 0.85rem;
  font-weight: 720;
  text-decoration: none;
}

.project-action:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.project-action.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

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

.principle-card,
.document-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.principle-card p,
.document-section p {
  margin: 0;
  color: var(--muted);
}


.editorial-purpose {
  max-width: 900px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-purpose .section-heading {
  margin-bottom: 18px;
}

.editorial-purpose > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.status-note {
  padding: 20px 22px;
  border-left: 4px solid var(--success);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(20, 125, 77, 0.08);
}

.status-note h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.25rem;
}

.status-note p {
  margin: 0;
}

.interactive-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface-strong);
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.card-arrow::before {
  content: "\2197";
  font-size: 1.05rem;
  line-height: 1;
}

@media (hover: hover) {
  .interactive-card:hover {
    border-color: rgba(8, 125, 255, 0.48);
    background: var(--surface-strong);
    box-shadow: 0 24px 54px rgba(35, 58, 92, 0.16);
    text-decoration: none;
    transform: translateY(-5px);
  }

  .interactive-card:hover .card-arrow {
    color: #ffffff;
    background: var(--accent);
    transform: rotate(8deg);
  }

  .photo-card:hover img {
    transform: scale(1.025);
  }
}

.photo-stage {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.photo-stage-inner {
  max-width: 620px;
}

.photo-stage h2 {
  font-size: 2rem;
}

.photo-stage p {
  color: var(--muted);
}

.content-feed {
  display: grid;
  max-width: 980px;
  gap: 13px;
}

.content-card {
  position: relative;
  display: grid;
  min-height: 158px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.content-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  grid-column: 1;
}

.content-card--with-cover {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
}

.content-card-cover {
  width: 100%;
  height: 100%;
  min-height: 116px;
  max-height: 150px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.content-card .item-label {
  width: fit-content;
  margin-bottom: 4px;
}

.content-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.24;
}

.content-card p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 7px;
}

.content-card .card-arrow {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
}

.content-card--with-cover .card-arrow {
  grid-column: 3;
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 9px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.content-meta span + span::before {
  content: "\00b7";
  margin-right: 18px;
}

.content-byline {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.content-byline--compact {
  flex: 0 0 auto;
  gap: 7px;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.content-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-author > span:last-child {
  display: grid;
  gap: 2px;
}

.content-author strong {
  font-size: 0.92rem;
}

.content-author small {
  color: var(--muted);
  font-size: 0.78rem;
}

.content-author-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.content-author-avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.content-byline--compact .content-author-avatar {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

.content-author-name {
  color: var(--text);
  font-weight: 600;
}

.content-author-more {
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #ffffff;
  background: #1b2130;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-card-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(transparent, rgba(8, 12, 20, 0.84));
}

.photo-card-caption h2 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.photo-card-caption .content-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
}

.photo-dialog {
  width: min(1080px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.photo-dialog::backdrop {
  background: rgba(7, 11, 19, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-open {
  overflow: hidden;
}

.photo-dialog-shell {
  position: relative;
  padding: 18px;
}

.photo-dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface-strong);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-button:focus-visible {
  outline: 3px solid rgba(8, 125, 255, 0.38);
  outline-offset: 3px;
}

.photo-dialog-figure {
  display: grid;
  min-height: 360px;
  margin: 0;
  place-items: center;
}

.photo-dialog-figure img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.photo-dialog-figure figcaption,
.photo-detail-grid figcaption {
  width: 100%;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.photo-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px 0;
}

.photo-dialog-description {
  max-width: 780px;
  padding: 24px 4px 10px;
}

.photo-dialog-description h2 {
  margin-bottom: 10px;
}

.photo-dialog-description > p {
  color: var(--muted);
}

.content-detail {
  max-width: 920px;
  min-height: 60vh;
  margin: 0 auto;
}

.content-detail-header {
  padding: 14px 0 58px;
}

.content-detail-header .eyebrow {
  text-decoration: none;
}

.detail-meta {
  margin-top: 14px;
}

.article-body {
  max-width: 760px;
  padding-bottom: 72px;
  font-size: 1.08rem;
}

.article-cover {
  display: grid;
  margin: 0 0 52px;
  place-items: center;
}

.article-cover img {
  width: 100%;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  object-fit: contain;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 2.2em;
}

.article-body p,
.article-body li {
  color: var(--text);
}

.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.article-body pre {
  max-width: 100%;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.photo-detail-grid {
  display: grid;
  gap: 34px;
  padding-bottom: 72px;
}

.photo-detail-grid figure {
  margin: 0;
}

.photo-detail-grid img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: rgba(12, 17, 28, 0.06);
}

.content-loading {
  color: var(--muted);
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: 54px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.prose-grid:last-child {
  border-bottom: 1px solid var(--line);
}

.prose-grid h2 {
  font-size: 1.65rem;
}

.prose-grid > .section-eyebrow {
  width: fit-content;
  align-self: start;
  justify-self: start;
}

.prose-grid p {
  color: var(--muted);
}

.context-lines {
  display: grid;
  gap: 12px;
  margin: 24px 0 18px;
}

.context-lines p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.context-lines p > span:first-child {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 720;
}

.context-note {
  max-width: 720px;
}

.context-details {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.context-details summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-email {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 740;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.quiet-quotes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quiet-quotes p {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.quiet-quotes cite {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.document-stack {
  display: grid;
  max-width: 860px;
  gap: 16px;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141d;
    --surface: rgba(29, 35, 48, 0.88);
    --surface-strong: #252c3a;
    --text: #f2f5fb;
    --muted: #aeb7c8;
    --line: rgba(196, 210, 236, 0.14);
    --accent: #3b9cff;
    --accent-strong: #1887f8;
    --accent-soft: rgba(59, 156, 255, 0.14);
    --violet-soft: rgba(130, 111, 255, 0.12);
    --success: #53cf91;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.18);
  }

  .site-header {
    background: rgba(16, 20, 29, 0.82);
  }
}

@media (max-width: 1000px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto;
    gap: 10px 16px;
    padding: 12px 0;
  }

  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .language-switch {
    justify-self: end;
  }

  .project-grid,
  .project-grid.two-up,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

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

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :root {
    --shell: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-link {
    min-width: 0;
    padding: 6px 4px;
    font-size: 0.78rem;
  }

  .language-link {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  main {
    padding-top: 46px;
  }

  .hero,
  .hero.home-hero {
    min-height: 0;
    padding: 10px 0 62px;
  }

  .hero-lead,
  .page-lead {
    font-size: 1.12rem;
  }

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

  .section-block {
    margin-bottom: 64px;
  }

  .portal-card,
  .project-card,
  .principle-card,
  .document-section,
  .photo-stage {
    padding: 22px;
  }

  .portal-card {
    min-height: 190px;
  }

  .context-lines p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .quiet-quotes p {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-stage {
    min-height: 320px;
  }

  .content-card {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .content-card--with-cover {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .content-card-cover {
    width: 104px;
    height: 92px;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .content-card-copy {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .content-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-card .card-arrow {
    grid-column: 1;
    grid-row: auto;
  }

  .content-card--with-cover .card-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .content-meta span + span::before {
    margin-right: 9px;
  }

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

  .photo-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
  }

  .photo-dialog-shell {
    padding: 12px;
  }

  .photo-dialog-figure {
    min-height: 240px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .interactive-card,
  .card-arrow,
  .photo-card img {
    transition: none;
  }
}
