:root {
  --atlas-paper: #e9e7df;
  --atlas-ink: #111719;
  --atlas-cyan: #007f9b;
  --atlas-line: #adb5b3;
  --atlas-dark: #0b1012;
}

body {
  color: var(--atlas-ink);
  background: var(--atlas-paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

.folio-header {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  padding: 1.15rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--atlas-ink);
}

.folio-mark {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
}

.folio-mark img {
  border: 1px solid var(--atlas-ink);
}

.folio-mark span {
  display: grid;
}

.folio-mark b {
  font-size: 1.35rem;
}

.folio-mark small {
  max-width: 34rem;
  color: #445053;
  font: 700 0.68rem/1.35 ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.atlas-sheet {
  width: min(1320px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.atlas-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  grid-template-rows: auto auto auto auto 1fr;
  gap: 0 4rem;
  min-height: 650px;
  padding: clamp(3rem, 8vw, 7rem) 0 3rem;
}

.atlas-title > p,
.atlas-title > h1,
.atlas-title > .app-store-action {
  grid-column: 1;
}

.atlas-title > p:first-child {
  margin: 0 0 1.2rem;
  color: var(--atlas-cyan);
  font: 700 0.72rem/1.3 ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-title h1 {
  align-self: end;
  margin: 0;
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.atlas-subtitle {
  margin: 1.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1;
}

.atlas-intro {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: #394346;
  font-size: 1.12rem;
  line-height: 1.55;
}

.atlas-title .app-store-action {
  margin-top: 1rem;
  margin-left: -10px;
}

.atlas-screen {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  margin: 0;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--atlas-ink);
}

.atlas-screen picture {
  display: block;
}

.atlas-screen img {
  width: 100%;
  height: auto;
}

.atlas-screen figcaption,
.contact-sheet > p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--atlas-ink);
  font: 700 0.66rem/1.3 ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-sheet {
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.6rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  border-top: 1px solid var(--atlas-ink);
  border-bottom: 1px solid var(--atlas-ink);
}

.contact-sheet figure {
  margin: 0;
}

.contact-sheet picture {
  display: block;
}

.contact-sheet img {
  width: 100%;
  height: auto;
}

.contact-sheet > p {
  grid-column: 1 / -1;
  margin: 0;
}

.atlas-index {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.atlas-index aside > p,
.index-entries > h2,
.atlas-bibliography header > p,
.folio-contact header > p,
.field-plate > div > p:first-child {
  margin: 0;
}

.atlas-index aside > p,
.atlas-bibliography header > p,
.folio-contact header > p,
.field-plate > div > p:first-child {
  color: var(--atlas-cyan);
  font: 700 0.7rem/1.3 ui-monospace, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.atlas-index aside ol {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--atlas-line);
}

.atlas-index aside li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-index aside li span {
  color: var(--atlas-cyan);
  font: 700 0.72rem/1.5 ui-monospace, monospace;
}

.index-entries > h2,
.atlas-bibliography h2,
.folio-contact h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.index-entries dl {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--atlas-ink);
}

.index-entries dl > div {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--atlas-line);
}

.index-entries dt {
  font-weight: 700;
}

.index-entries dd {
  margin: 0;
  color: #3c484a;
  line-height: 1.6;
}

.field-plate {
  margin: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--atlas-ink);
  border-bottom: 1px solid var(--atlas-ink);
}

.field-plate > div {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 3rem;
}

.field-plate p:last-child {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.atlas-bibliography,
.folio-contact {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.atlas-bibliography ol {
  margin: 2.5rem 0 1rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--atlas-ink);
}

.atlas-bibliography li {
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-bibliography li a {
  display: grid;
  grid-template-columns: 0.5fr 1fr 46px;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0;
  text-decoration: none;
}

.atlas-bibliography small,
.atlas-bibliography > p {
  color: #536063;
}

.folio-contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 8vw, 8rem);
  border-top: 1px solid var(--atlas-ink);
}

.folio-contact header > p:last-child {
  color: #536063;
  line-height: 1.6;
}

.folio-contact .support-form {
  grid-template-columns: 1fr 1fr;
}

.folio-contact .message-field,
.folio-contact button,
.folio-contact .form-status {
  grid-column: 1 / -1;
}

.folio-contact button {
  color: var(--atlas-paper);
  border-color: var(--atlas-dark);
  background: var(--atlas-dark);
}

.folio-footer {
  padding: 2rem max(1.25rem, calc((100% - 1320px) / 2)) 3rem;
  color: #4d585a;
  border-top: 1px solid var(--atlas-ink);
}

@media (max-width: 800px) {
  .atlas-title {
    /* minmax : la colonne de capture garde un plancher, sinon le texte l'ecrase */
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.62fr);
    gap: 0 1.25rem;
    min-height: auto;
  }

  .atlas-title h1 {
    font-size: clamp(4.4rem, 17vw, 8rem);
  }

  .atlas-index,
  .folio-contact {
    grid-template-columns: 1fr;
  }

  .atlas-index {
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  .folio-header {
    align-items: flex-start;
  }

  .folio-mark small {
    display: none;
  }

  .atlas-title {
    display: flex;
    flex-direction: column;
    padding-top: 2.5rem;
  }

  .atlas-title > p:first-child {
    order: 1;
  }

  .atlas-screen {
    order: 2;
    width: min(74%, 320px);
    margin-top: 0.75rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--atlas-ink);
    border-left: 0;
  }

  .atlas-title h1 {
    order: 3;
    align-self: start;
    margin-top: 2rem;
    font-size: 4.5rem;
  }

  .atlas-subtitle {
    order: 4;
  }

  .atlas-intro {
    order: 5;
  }

  .atlas-title > .app-store-action {
    order: 6;
  }

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

  .index-entries dl > div,
  .field-plate > div,
  .atlas-bibliography li a {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .atlas-bibliography li img {
    display: none;
  }

  .folio-contact .support-form {
    grid-template-columns: 1fr;
  }

  .folio-contact .message-field,
  .folio-contact button,
  .folio-contact .form-status {
    grid-column: auto;
  }
}
.missing-folio {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: stretch;
  min-height: 100vh;
}

.missing-folio header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 7rem);
  border-right: 1px solid var(--atlas-ink);
}

.missing-folio header > p:first-child {
  color: var(--atlas-cyan);
  font: 700 0.7rem/1.3 ui-monospace, monospace;
}

.missing-folio h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.85;
}

.missing-folio figure {
  margin: 0; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); }

.missing-folio figure img { width: auto; max-width: 100%; max-height: 82vh; height: auto; margin-inline: auto; }
