:root {
  --ink: #171717;
  --paper: #f5f2eb;
  --surface: #fffdf8;
  --muted: #68645d;
  --line: #d8d1c5;
  --accent: #8f2525;
  --accent-dark: #681a1a;
  --max-width: 1160px;
  --radius: 0.35rem;
  --shadow: 0 18px 50px rgb(37 29 22 / 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

cite {
  font-style: italic;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle span[aria-hidden="true"] {
  display: block;
  height: 2px;
  margin: 0.27rem 0;
  background: var(--ink);
}

/* Shared labels and links */

.eyebrow,
.card-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: #403d38;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.text-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.card-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}

/* Home-page hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: calc(100vh - 4.75rem);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-art figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Home-page work section */

.work-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.work-card {
  text-decoration: none;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.work-card > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.work-card--featured {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.work-card--featured .card-kicker,
.work-card--featured .text-link {
  color: #e3aaa3;
}

.work-card--image img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

#writing > img {
  object-fit: contain;
  background: #111;
}

.card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.card-copy p {
  max-width: 40rem;
}

.card-copy .text-link {
  margin-top: auto;
  padding-top: 1.4rem;
}

.work-card .card-meta {
  color: #bdb7ae;
}

/* About section */

.about-section {
  display: grid;
  grid-template-columns: minmax(200px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.about-photo {
  width: 100%;
  max-width: 22rem;
  justify-self: center;

  border: 1px solid var(--line);
}

.about-copy p:not(.eyebrow) {
  max-width: 44rem;
  font-size: 1.1rem;
}

.photo-note {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem !important;
}

/* Interior page introductions */

.page-intro {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.page-intro h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
}

/* Shared interior-page sections */

.portfolio-section {
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.portfolio-section > .shell {
  display: grid;
  gap: 2rem;
}

/* Reusable card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card {
  display: flex;
  min-height: 330px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.content-card h2 {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.content-card h2 a,
.content-card h3 a {
  color: inherit;
  text-decoration: none;
}

.content-card h2 a:hover,
.content-card h2 a:focus-visible,
.content-card h3 a:hover,
.content-card h3 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.content-card .text-link {
  margin-top: auto;
  padding-top: 1rem;
}

.content-card--featured {
  grid-column: 1 / -1;
}

/* Larger feature blocks */

.portfolio-feature {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portfolio-feature__copy {
  max-width: 760px;
}

.portfolio-feature h2 {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Reusable title lists */

.title-list {
  margin: 0;
  padding-left: 1.2rem;
}

.title-list li {
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

/* Compact article lists */

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.article-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-card h3 {
  margin: 0.2rem 0 0.65rem;
  font-size: 1.2rem;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.article-date {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  color: #d8d2c8;
  background: var(--ink);
}

.footer-inner {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: white;
}

.video_right {
    float: right;
    width: min(42%, 420px);
    margin: 0 0 1.25rem 1.5rem;
}

.video_right video {
    display: block;
    width: 100%;
    height: auto;
}

.video_right figcaption {
    margin-top: .4rem;
    text-align: center;
    font-size: .9rem;
    line-height: 1.35;
}

.image_right {
    float: right;
    width: min(220px, 35%);
    margin: 0 0 1.5rem 2rem;
}

.image_left {
    float: left;
    max-width: 35%;
    height: auto;
    margin: 0 20px 15px 0;
    border-radius: 4px;
}

.image_right img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.image_right figcaption,
.image_left figcaption {
    margin-top: .5rem;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

@media (max-width: 700px) {
    .video_right,
    .image_right,
    .image_left {
        float: none;
        width: 100%;
        max-width: 520px;
        margin: 1.25rem auto;
    }
}


/* Responsive layout */

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .hero,
  .about-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-art {
    max-width: 34rem;
  }

  .work-grid,
  .card-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

  .content-card--featured {
    grid-column: auto;
  }

  .content-card {
    min-height: auto;
  }

  .about-photo {
    max-width: 16rem;
    justify-self: start;
  }
}

.essay {
    max-width: 900px;
    margin: 0 auto;
}

.essay h2 {
    margin-top: 3rem;
}

.essay p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.essay ol {
    margin-bottom: 3rem;
}

.essay li {
    margin-bottom: .4rem;
}

.essay section {
  scroll-margin-top: 6rem;
}

.essay-float-right {
    float: right;
    width: 220px;
    margin: 0 0 1.5rem 2rem;
}

.math-letter {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 220px;
    height: 220px;

    border: 2px solid #222;
    font-family: Georgia, serif;
    font-size: 180px;
    line-height: 1;
}

.essay-float-right figcaption {
    margin-top: .5rem;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}
.math-letter{

	
	
    font-style: italic;
	  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border: 2px solid var(--ink);
  font-size: 8rem;
  line-height: 1;
}

.root-number {
    
    padding-left: .05em;
}

/* Film and television projects */

.screen-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* Used when the image appears before the text in the HTML. */
.screen-project--image-left {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.screen-project__copy,
.screen-project__image {
  min-width: 0;
}

.screen-project__copy {
  max-width: none;
}

.screen-project__image {
  width: 100%;
  margin: 0;
}

.screen-project__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.project-logline {
  font-size: 1.08rem;
  line-height: 1.7;
}


/* Festival laurels */

.festival-laurels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.festival-laurels img {
  width: 100%;
  max-width: 125px;
  max-height: 80px;
  margin-inline: auto;
  object-fit: contain;
}


/* Responsive film and television layout */

@media (max-width: 800px) {
  .screen-project,
  .screen-project--image-left {
    grid-template-columns: 1fr;
  }

  .screen-project__image {
    width: min(100%, 32rem);
    margin-inline: auto;
  }

  /*
    On a phone, place the Freud image after the Just a Cigar copy
    even though it comes first in the HTML.
  */
  .screen-project--image-left .screen-project__copy {
    order: 1;
  }

  .screen-project--image-left .screen-project__image {
    order: 2;
  }

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

.km-article blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border-left: 4px solid var(--accent);
}

.km-article blockquote p {
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
  font-style: italic;
}

.km-article blockquote footer {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.km-article blockquote footer::before {
  content: "— ";
}


/* Reusable image gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: var(--surface);
}

.gallery-caption {
  padding: 1rem 1.25rem;
}

.gallery-caption h2,
.gallery-caption h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.gallery-caption p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}


/* Reusable lightbox */

.lightbox-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: white;
  background: transparent;
  border: 0;
}

.lightbox-dialog::backdrop {
  background: rgb(0 0 0 / 0.9);
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1rem;
}

.lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  cursor: zoom-in;
}

.lightbox-stage.is-zoomed {
  display: block;
}

.lightbox-image.is-zoomed {
  max-width: none;
  max-height: none;
  margin: 0;
  cursor: zoom-out;
}

.lightbox-caption {
  grid-column: 2;
  grid-row: 2;
  margin: 0.75rem auto 0;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-previous,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: white;
  background: rgb(0 0 0 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-previous:hover,
.lightbox-previous:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  background: rgb(0 0 0 / 0.8);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-previous {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.lightbox-previous[hidden],
.lightbox-next[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}


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

  .gallery-item img {
    height: auto;
    max-height: 70vh;
  }
}


@media (max-width: 600px) {
  .lightbox-content {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    padding: 0.5rem;
  }

  .lightbox-close,
  .lightbox-previous,
  .lightbox-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .lightbox-previous {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .lightbox-image {
    max-height: calc(100vh - 6rem);
  }
}

@media (max-width: 420px) {
  .festival-laurels {
    gap: 1rem;
  }

  .festival-laurels img {
    max-width: 110px;
    max-height: 70px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

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

/* History archive and articles */

.history-archive {
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.history-archive__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.history-archive__heading h2 {
  margin-bottom: 0;
}

.history-count {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.history-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-control {
  display: grid;
  gap: 0.4rem;
}

.history-control label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-control input,
.history-control select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.history-control input:focus-visible,
.history-control select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.history-reset {
  min-height: 2.8rem;
  padding: 0.65rem 0.9rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.history-reset:hover,
.history-reset:focus-visible {
  color: white;
  background: var(--accent);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.history-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-card__media {
  display: block;
  overflow: hidden;
  background: #ddd7cd;
}

.history-card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.history-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 250px;
  padding: 2rem;
  color: var(--accent);
  background: linear-gradient(135deg, var(--surface), #e7dfd2);
  font-size: 1.35rem;
  font-style: italic;
  text-align: center;
}

.history-card:hover .history-card__image {
  transform: scale(1.025);
}

.history-card__copy {
  padding: 1.35rem;
}

.history-card h3 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.history-card h3 a {
  text-decoration: none;
}

.history-card h3 a:hover,
.history-card h3 a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.history-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.history-card__topics li {
  padding: 0.25rem 0.5rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.history-empty,
.history-error {
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
}

.history-article {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.history-article__header {
  max-width: 900px;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.history-article__header h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.history-article__date {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.history-article__body {
  max-width: 760px;
}

.history-article__body p,
.history-article__body blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
}

.history-article__body blockquote {
  padding-left: 1.35rem;
  margin: 2rem 0;
  color: #403d38;
  border-left: 3px solid var(--accent);
  font-style: italic;
}

.history-article__media {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1.5rem;
}

.history-article__figure {
  margin: 0;
}

.history-article__figure img,
.history-article__figure video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.history-article__figure figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
  text-align: center;
}

.history-article__figure .image-credit,
.history-article__figure .image-caption {
  display: block;
}

.history-article__figure .image-caption {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.history-article__video-frame {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.history-article__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.history-article__back {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

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

  .history-control--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .history-grid,
  .history-article__layout {
    grid-template-columns: 1fr;
  }

  .history-article__media {
    position: static;
    grid-row: 1;
    max-width: 34rem;
  }
}

@media (max-width: 560px) {
  .history-archive__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .history-controls {
    grid-template-columns: 1fr;
  }

  .history-control--search {
    grid-column: auto;
  }

  .history-card__image {
    height: 210px;
  }
}

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

  .history-card__image {
    transition: none;
  }
}
