:root {
  color-scheme: light;
  --cream: #eedcc4;
  --ink: #201b17;
  --muted: #786b60;
  --mint: #abc9c2;
  --coral: #b95842;
  --line: rgba(32, 27, 23, .22);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

.photo-wrap {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(64vw, 100vh);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 8%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 8%, #000 24%);
}

.ape {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translate3d(var(--ape-x, 0), var(--ape-y, 0), 0) scale(1.025);
  transition: transform 220ms ease-out;
}

.content {
  width: min(720px, 56vw);
  min-height: 100dvh;
  padding: clamp(30px, 5.5vh, 72px) clamp(28px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.status {
  margin-bottom: clamp(28px, 4vh, 52px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status i {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: #5f9b75;
  box-shadow: 0 0 0 5px rgba(95, 155, 117, .14);
  animation: breathe 2.8s ease-in-out infinite;
}

h1 {
  margin: 0;
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(4.1rem, 7.5vw, 9rem);
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

h1 span:first-child {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .11vw, 2px) var(--ink);
}

h1 span:last-child {
  position: relative;
  z-index: 0;
}

h1 span:last-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.01em;
  right: -.04em;
  bottom: .01em;
  height: .18em;
  background: var(--mint);
  transform: rotate(-1deg);
  opacity: .82;
}

.meta-row {
  width: min(100%, 570px);
  margin: clamp(25px, 3.6vh, 42px) 0 0;
  padding-top: 17px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.meta-row strong {
  padding: 7px 11px 6px;
  flex: 0 0 auto;
  color: var(--cream);
  background: var(--ink);
  font-size: .8rem;
  letter-spacing: .09em;
}

.meta-row p,
.note {
  margin: 0;
  color: var(--muted);
}

.meta-row p {
  font-size: clamp(.85rem, 1vw, 1rem);
  font-weight: 700;
}

.note {
  width: min(100%, 480px);
  margin-top: 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
}

.contract {
  width: min(100%, 570px);
  margin-top: clamp(22px, 3.3vh, 36px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contract > span {
  flex: 0 0 auto;
  color: var(--coral);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.contract code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  width: min(100%, 570px);
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.button {
  min-height: 52px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button.primary {
  min-width: 154px;
  color: var(--cream);
  background: var(--ink);
}

.button.secondary {
  min-width: 118px;
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.button.ghost {
  min-width: 108px;
}

.button.icon {
  width: 52px;
  padding: 0;
}

.button:not(.is-disabled):not(:disabled):hover,
.button:not(.is-disabled):not(:disabled):focus-visible {
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 7px 0 rgba(32, 27, 23, .1);
}

.button:not(.is-disabled):not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}

.button.is-disabled,
.button:disabled {
  cursor: default;
  opacity: .38;
}

.corner-mark {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(32, 27, 23, .46);
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.corner-mark i {
  width: 34px;
  height: 1px;
  background: currentColor;
}

@keyframes breathe {
  0%, 100% { transform: scale(.9); opacity: .65; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .photo-wrap {
    position: relative;
    order: 0;
    width: 100%;
    height: min(57svh, 620px);
    flex: 0 0 auto;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 18%, #000 100%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 18%, #000 100%);
  }

  .ape {
    object-fit: contain;
    object-position: center top;
    transform: none !important;
  }

  .content {
    order: 1;
    width: 100%;
    min-height: auto;
    margin-top: -7svh;
    padding: 0 20px max(34px, env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
  }

  .status {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(3.5rem, 16.5vw, 6.4rem);
    line-height: .82;
  }

  .meta-row {
    margin-top: 22px;
  }

  .corner-mark {
    display: none;
  }
}

@media (max-width: 520px) {
  .photo-wrap {
    height: 52svh;
  }

  .content {
    margin-top: -4svh;
  }

  .meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    width: 100%;
    min-width: 0 !important;
  }

  .button.primary {
    grid-column: 1 / -1;
  }

  .button.icon {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
