/* ==========================================================================
   ACL: one page, in the manner of a museum exhibition. A photograph of the dawn of
   people; the words set on a parchment plate; the small print on a paper strip.
   ========================================================================== */

:root {
  --parchment: #f4ecdf;
  --ivory: #faf6ee;
  --bronze: #8f6b3e;
  --bronze-soft: rgba(143, 107, 62, 0.35);
  --brown: #5b4636;
  --warm-gray: #7c6f63;
  --charcoal: #2c2622;

  --font-inscription: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-text: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   The page: the photograph fills the screen, only lightly warmed at the very top
   -------------------------------------------------------------------------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 6vh, 72px) 20px 0;
  background:
    linear-gradient(to bottom, rgba(244, 236, 223, 0.55) 0%, rgba(244, 236, 223, 0) 45%),
    var(--photo) center 72% / cover no-repeat,
    var(--parchment);
}

/* --------------------------------------------------------------------------
   The plate: the words, set like an exhibition label
   -------------------------------------------------------------------------- */
.plate {
  width: min(820px, 100%);
  padding: clamp(28px, 5vh, 48px) clamp(24px, 5vw, 64px) clamp(30px, 5vh, 50px);
  background: rgba(248, 243, 234, 0.90);
  border: 1px solid var(--bronze-soft);
  outline: 1px solid rgba(143, 107, 62, 0.16);
  outline-offset: 6px;
  box-shadow: 0 18px 50px rgba(60, 40, 20, 0.12);
}

.title { margin: 0; }

.mark {
  margin: 0;
  font-family: var(--font-inscription);
  font-weight: 500;
  font-size: clamp(50px, 8vh, 84px);
  line-height: 1;
  letter-spacing: 0.32em;
  margin-right: -0.32em;          /* keep the letter-spaced word optically centred */
  color: var(--charcoal);
}

.name {
  margin: clamp(12px, 2vh, 20px) 0 0;
  font-family: var(--font-inscription);
  font-size: clamp(11px, 1.5vh, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.name::before, .name::after {
  content: "";
  width: clamp(24px, 5vw, 56px);
  height: 1px;
  background: var(--bronze-soft);
}

.what {
  max-width: 640px;
  margin: clamp(20px, 3.6vh, 36px) auto 0;
  text-wrap: balance;               /* even lines, no word left alone */
  font-size: clamp(17px, 2.2vh, 19px);
  line-height: 1.7;
  color: var(--brown);
}

.motto {
  margin: clamp(14px, 2.6vh, 26px) auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(23px, 3.4vh, 31px);
  line-height: 1.25;
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   Actions: quiet, bordered, bronze on hover
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(22px, 4vh, 40px);
}

.act {
  font-family: var(--font-inscription);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  background: var(--ivory);
  border: 1px solid var(--bronze-soft);
  border-radius: 2px;
  padding: 14px 24px 13px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.act:hover, .act:focus-visible { border-color: var(--bronze); color: var(--charcoal); background: #fffdf8; }
.act:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.act.primary { background: var(--brown); border-color: var(--brown); color: var(--ivory); }
.act.primary:hover, .act.primary:focus-visible { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }

/* --------------------------------------------------------------------------
   The paper strip at the foot: credibility on the left, the credit on the right
   -------------------------------------------------------------------------- */
.foot {
  margin-top: auto;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 12px clamp(20px, 4vw, 48px);
  background: rgba(222, 231, 240, 0.72);           /* a light, slightly blue veil: the photo shows through */
  border-top: 1px solid rgba(120, 140, 165, 0.30);
}
.marks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--brown);
}
.marks li { padding: 0 12px; position: relative; }
.marks li:first-child { padding-left: 0; }
.marks li + li::before {
  content: "\00B7";
  position: absolute;
  left: -3px;
  color: var(--bronze);
  font-style: normal;
}
.credit {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--brown);
}
.photo-credit { color: var(--warm-gray); font-size: 12px; }

/* --------------------------------------------------------------------------
   Motion: only a soft arrival
   -------------------------------------------------------------------------- */
.plate, .foot { animation: arrive 1.2s var(--ease) both; }
.foot { animation-delay: 0.4s; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   The film, in a quiet frame
   -------------------------------------------------------------------------- */
.film {
  width: min(1000px, 94vw);
  padding: 0;
  border: 1px solid var(--bronze-soft);
  border-radius: 2px;
  background: #1c1714;
  overflow: visible;
}
.film::backdrop { background: rgba(44, 38, 34, 0.82); }
.film video { display: block; width: 100%; height: auto; }
.film-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 238, 0.5);
  background: transparent;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Phones: the plate fills the width, the strip stacks
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .page { padding: 16px 12px 0; background-position: 0 0, 22% 100%, 0 0; }
  .plate { padding: 24px 16px 22px; outline-offset: 4px; }
  .mark { font-size: 48px; }
  .name { margin-top: 10px; gap: 6px; font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }
  .name::before, .name::after { width: 12px; }
  .what { font-size: 16px; line-height: 1.5; margin-top: 14px; }
  .motto { font-size: 21px; margin-top: 10px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .act { justify-content: center; padding: 12px 6px 11px; font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }
  .act.primary { grid-column: 1 / -1; }
  .foot { width: calc(100% + 24px); margin-left: -12px; margin-right: -12px; flex-direction: column; align-items: center;
          text-align: center; gap: 2px; padding: 8px 12px; }
  .marks { justify-content: center; column-gap: 12px; font-size: 14px; }
  .marks li, .marks li:first-child { padding: 0; }
  .marks li + li::before { display: none; }
  .credit { font-size: 12.5px; }
  .photo-credit { display: block; }
}
@media (max-width: 640px) { .photo-credit .sep { display: none; } }
.foot .marks, .foot .credit { color: var(--charcoal); }
.foot .photo-credit { color: #5d5650; }
