/* Ale V color contracts:
   #160f14 ground only; #f7edef paper and primary text;
   #69c7c7 editorial coordinates only; #a81448 interface accents only;
   #4ec1ea members conversion actions only. */
:root {
  color-scheme: dark;
  --av-ground: #160f14;
  --av-ground-soft: #21171e;
  --av-paper: #f7edef;
  --av-ink: #160f14;
  --av-secondary: #d9ccd1;
  --av-aqua: #69c7c7;
  --av-action: #a81448;
  --av-members: #4ec1ea;
  --av-members-hover: #35b2df;
  --av-white: #ffffff;
  --av-rule: #594650;
  --av-display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --av-body: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--av-ground);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--av-paper);
  background: var(--av-ground);
  font-family: var(--av-body);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.av-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--av-ink);
  background: var(--av-white);
  transform: translateY(-160%);
}

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

.av-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 20px;
}

.av-mark,
.av-confirm__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--av-white);
  font-family: var(--av-display);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.av-location {
  color: var(--av-white);
  font-size: 12px;
  font-weight: 700;
}

.av-coordinate {
  margin: 0;
  color: var(--av-aqua);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.av-cover {
  position: relative;
  min-height: 640px;
  height: 88svh;
  max-height: 900px;
  overflow: hidden;
  background: var(--av-ground);
}

.av-cover__media,
.av-cover__media picture,
.av-cover__media img,
.av-cover__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.av-cover__media img {
  object-fit: cover;
  object-position: 52% 35%;
}

.av-cover__shade {
  background: rgba(22, 15, 20, 0.34);
}

.av-cover__copy {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 34px;
  left: 20px;
}

.av-cover h1 {
  max-width: 290px;
  margin: 8px 0 26px;
  color: var(--av-white);
  font-family: var(--av-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 0.84;
  text-shadow: 0 2px 24px rgba(22, 15, 20, 0.58);
}

.av-cover h1 span {
  display: block;
}

.av-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 56px;
  border: 2px solid var(--av-members);
  border-radius: 2px;
  color: var(--av-ink);
  background: var(--av-members);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.av-chapter {
  position: relative;
  padding: 72px 20px;
  color: var(--av-ink);
  background: var(--av-paper);
}

.av-chapter h2,
.av-night h2,
.av-social h2,
.av-closer h2,
.av-confirm h1,
.av-dialog h2 {
  margin: 12px 0 0;
  font-family: var(--av-display);
  font-weight: 400;
  line-height: 0.98;
}

.av-chapter h2 {
  font-size: 46px;
}

.av-photo-action {
  position: relative;
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  color: var(--av-white);
  text-decoration: none;
}

.av-photo-action img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
}

.av-photo-action > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 48px;
  padding: 14px 18px;
  color: var(--av-ink);
  background: var(--av-members);
  font-size: 13px;
  font-weight: 800;
}

.av-night {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--av-ground);
}

.av-night__portrait img,
.av-night__color img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.av-night__portrait img {
  object-position: 50% 20%;
}

.av-night__color {
  width: 66%;
  margin: 0 0 0 auto;
}

.av-night__color img {
  object-position: 50% 10%;
}

.av-night__copy {
  padding: 38px 20px;
}

.av-handle {
  margin: 0;
  color: var(--av-aqua);
  font-size: 14px;
  font-weight: 800;
}

.av-social {
  padding: 96px 20px;
  color: var(--av-ink);
  background: var(--av-paper);
}

.av-social__intro {
  margin-bottom: 44px;
}

.av-social h2 {
  max-width: 300px;
  font-size: 46px;
}

.av-social__links {
  border-top: 1px solid #8b707b;
}

.av-social__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border-bottom: 1px solid #8b707b;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.av-social__links a span:last-child {
  color: #6c4c59;
  font-size: 12px;
  font-weight: 600;
}

.av-closer {
  display: flex;
  min-height: 360px;
  padding: 88px 20px;
  flex-direction: column;
  justify-content: center;
  background: var(--av-ground-soft);
}

.av-closer .av-handle {
  margin-bottom: 22px;
}

.av-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px 20px;
  border-top: 1px solid var(--av-rule);
  color: var(--av-secondary);
  background: var(--av-ground);
  font-size: 13px;
}

.av-logout button {
  min-width: 108px;
  min-height: 44px;
  border: 1px solid #8c7881;
  border-radius: 0;
  color: var(--av-secondary);
  background: transparent;
  cursor: pointer;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .reveal-pending {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal-visible {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease, transform 520ms ease;
}

.av-page.js-ready .av-cover__media img {
  animation: av-cover-settle 760ms ease-out both;
}

.av-page.js-ready .av-cover h1 {
  animation: av-name-wipe 580ms ease-out both;
}

.av-confirm {
  min-height: 100svh;
  color: var(--av-paper);
  background: var(--av-ground);
}

.av-confirm__main {
  width: min(100% - 40px, 560px);
  margin: 0 auto;
  padding: 40px 0 72px;
}

.av-confirm__mark {
  margin-bottom: 92px;
}

.av-confirm h1 {
  max-width: 520px;
  margin-top: 18px;
  font-size: 54px;
}

.av-confirm__note {
  margin: 22px 0 36px;
  color: var(--av-secondary);
}

.av-confirm__error {
  padding: 12px;
  border-left: 4px solid var(--av-aqua);
  color: var(--av-white);
  background: #2a1b23;
}

.av-confirm__form label {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 52px;
  padding: 14px 0;
  border-top: 1px solid var(--av-rule);
  border-bottom: 1px solid var(--av-rule);
  cursor: pointer;
}

.av-confirm__form input[type="checkbox"] {
  width: 44px;
  height: 44px;
  margin: 0;
  accent-color: var(--av-action);
}

.av-confirm__form button {
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  border: 2px solid var(--av-members);
  border-radius: 2px;
  color: var(--av-ink);
  background: var(--av-members);
  font-weight: 800;
  cursor: pointer;
}

.av-confirm__form > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--av-secondary);
}

.av-dialog {
  width: min(100% - 32px, 520px);
  padding: 0;
  border: 1px solid var(--av-rule);
  color: var(--av-paper);
  background: var(--av-ground);
}

.av-dialog::backdrop {
  background: rgba(10, 6, 9, 0.82);
}

.av-dialog__inner {
  padding: 36px;
}

.av-dialog h2 {
  margin-bottom: 28px;
  font-size: 42px;
}

.av-action:focus-visible,
.av-mark:focus-visible,
.av-confirm__mark:focus-visible,
.av-photo-action:focus-visible,
.av-social__links a:focus-visible,
.av-logout button:focus-visible,
.av-confirm__form input:focus-visible,
.av-confirm__form button:focus-visible,
.av-confirm__form a:focus-visible {
  outline: 3px solid var(--av-white);
  outline-offset: 4px;
}

.av-social__links a:focus-visible,
.av-confirm__form input:focus-visible {
  outline-color: var(--av-ink);
}

.av-photo-action:focus-visible {
  outline-color: var(--av-members);
}

.av-action:active,
.av-confirm__form button:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes av-cover-settle {
  from { transform: scale(1.025); }
  to { transform: scale(1); }
}

@keyframes av-name-wipe {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@media (hover: hover) {
  .av-action:hover,
  .av-confirm__form button:hover {
    background: var(--av-members-hover);
    border-color: var(--av-members-hover);
  }

  .av-social__links a:hover {
    color: #6e1839;
  }

  .av-logout button:hover {
    color: var(--av-white);
    border-color: var(--av-white);
  }
}

@media (min-width: 768px) {
  .av-header {
    min-height: 92px;
    padding: 22px 36px;
  }

  .av-cover {
    min-height: 700px;
  }

  .av-cover__media {
    left: auto;
    width: 68%;
  }

  .av-cover__media img {
    object-fit: cover;
    object-position: 50% 28%;
  }

  .av-cover__shade {
    background: rgba(22, 15, 20, 0.12);
  }

  .av-cover__copy {
    right: auto;
    bottom: 56px;
    left: 36px;
    width: 58%;
  }

  .av-cover h1 {
    max-width: 540px;
    font-size: 116px;
  }

  .av-cover h1 span {
    display: inline;
  }

  .av-intro {
    max-width: 340px;
    font-size: 26px;
  }

  .av-chapter {
    min-height: 820px;
    padding: 120px 7vw;
  }

  .av-photo-action {
    width: min(100%, 680px);
  }

  .av-night {
    grid-template-columns: 54% 46%;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .av-night__portrait {
    grid-row: 1 / span 2;
  }

  .av-night__copy {
    padding: 64px 8vw;
  }

  .av-night__color {
    width: 62%;
    margin: 0 8vw 0 auto;
  }

  .av-social {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8vw;
    padding: 130px 7vw;
  }

  .av-social__intro {
    margin: 0;
  }

  .av-social h2 {
    font-size: 64px;
  }

  .av-closer {
    min-height: 430px;
    padding: 110px 7vw;
  }

  .av-footer {
    padding: 20px 7vw;
  }

  .av-confirm__main {
    padding-top: 64px;
  }
}

@media (min-width: 1200px) {
  .av-cover h1 {
    font-size: 144px;
  }

  .av-social h2 {
    font-size: 76px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .av-action,
  .av-photo-action,
  .av-confirm__form button,
  .av-mark,
  .av-confirm__mark,
  .av-logout button {
    border: 2px solid ButtonText;
  }
}
