:root {
  /* MDQ Cloud's concrete light surface with its Gruvbox-derived accents. */
  --ivory: #e3e5e0;
  --paper: #eff0ec;
  --ink: #1b211e;
  --quiet: #4f5751;
  --line: #7d837c;
  --ochre: #af3a03;
  --teal: #2b5754;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

a:hover { color: var(--ochre); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 5px; }

.skip {
  position: fixed;
  z-index: 5;
  top: -80px;
  left: 24px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus { top: 16px; }

.site-head,
main,
footer {
  width: min(100% - 80px, 1320px);
  margin-inline: auto;
}

.site-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 190px;
  height: auto;
}

.brand-artifact { color: var(--ochre); }
.brand-ured { color: var(--teal); }
.brand-name { white-space: nowrap; }

.paper-head {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 2.5vw, 36px) 0 clamp(22px, 2.5vw, 32px);
  text-align: center;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 3.65vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.author-block p { margin-bottom: 0; }
.author-name a { text-decoration: none; }

.author-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.affiliations {
  color: var(--quiet);
  font-size: 16px;
  line-height: 1.5;
}

.process-figure {
  width: min(1180px, 100%);
  margin: 0 auto clamp(18px, 2vw, 28px);
}

/* Show source rows 180–820, trimming transparent padding below the image labels.
   Keep the academic caption in normal flow immediately below the artwork. */
.process-figure picture {
  display: block;
  position: relative;
  aspect-ratio: 1672 / 640;
  overflow: hidden;
}

.process-figure img {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: auto;
  /* Lift the 180px transparent source margin out of the 640px viewport. */
  transform: translateY(-19.13%);
}

.abstract {
  width: min(1180px, 100%);
  margin: 0 auto clamp(54px, 7vw, 82px);
}

.abstract h2 {
  margin: 0 0 4px;
  break-after: avoid;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .015em;
  text-align: left;
  text-transform: uppercase;
}

.abstract-copy {
  columns: 2;
  column-gap: clamp(36px, 4vw, 54px);
  font-size: 16.5px;
  line-height: 1.5;
  /* Justified like a paper column; hyphenation keeps the word gaps even. */
  text-align: justify;
  hyphens: auto;
  hyphenate-limit-chars: 8 4 3;
  orphans: 3;
  widows: 3;
}

.abstract-copy p { margin-bottom: 0; }

footer {
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-head,
  main,
  footer { width: min(100% - 40px, 1320px); }

  .site-head { min-height: 50px; }
  .wordmark { font-size: 19px; }

  .paper-head { padding: 17px 0 20px; }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.12;
  }

  .author-name { font-size: 18px; }
  .affiliations { font-size: 14px; }

  .process-figure {
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
    margin-bottom: 24px;
  }

  .abstract {
    margin-bottom: 54px;
  }

  .abstract h2 { margin-bottom: 8px; }

  .abstract-copy {
    columns: 1;
    font-size: 16px;
    line-height: 1.62;
    text-align: left;
  }
}

/* Continue the existing academic-paper layout into the requested Introduction. */
.abstract { margin-bottom: clamp(30px, 4vw, 48px); }
.introduction { width: min(1180px, 100%); margin: 0 auto clamp(54px, 7vw, 82px); }
.introduction h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.introduction-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(36px, 4vw, 54px); font-size: 16.5px; line-height: 1.5; text-align: justify; hyphens: auto; orphans: 3; widows: 3; }
.introduction-copy p { margin-bottom: 18px; }
.mission-wordmark { margin: 26px 0; break-inside: avoid; }
.mission-wordmark img { display: block; width: min(100%, 360px); height: auto; }
.process-figure figcaption, .mission-wordmark figcaption { margin-top: 10px; color: var(--quiet); font-size: 14px; line-height: 1.5; text-align: left; }
.process-figure figcaption { text-align: center; padding: 0 12px; }
@media (max-width: 760px) {
  .introduction-copy { grid-template-columns: 1fr; font-size: 16px; line-height: 1.62; text-align: left; }
  .mission-wordmark { margin-top: 28px; }
}

@media print { .process-figure img { content: url('/media/artifactured-process.png'); } }
