@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/anton-latin.woff2") format("woff2");
}

:root {
  --night: #0d0d0d;
  --bone: #f3eee6;
  --paper: #efe7da;
  --ink: #161412;
  --muted: #a39d94;
  --line: #2a2826;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --fade: 22s;
}

* { box-sizing: border-box; }

html {
  background: var(--night);
  color: var(--bone);
  scrollbar-color: #4a4643 var(--night);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #4a4643; border-radius: 10px; border: 2px solid var(--night); }
::-webkit-scrollbar-thumb:hover { background: #6b6661; }

body {
  margin: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: clamp(1rem, 4vh, 3rem) 1.25rem 0;
}
.logo { width: clamp(96px, min(13vw, 17vh), 190px); height: auto; display: block; }
.trade {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(.65rem, 1.4vh, .85rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "closed sheet return";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
  font-size: clamp(1.9rem, min(3.4vw, 6.2vh), 3.4rem);
}
.closed p, .return p { margin: .8rem 0 0; color: #cfc9bf; max-width: 24ch; font-size: clamp(.9rem, 2vh, 1.05rem); }

.closed { grid-area: closed; text-align: right; }
h1 span, h2 span { display: block; white-space: nowrap; }
.closed p { margin-left: auto; }

.return { grid-area: return; text-align: left; }
.return h2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone);
}
@supports not (-webkit-text-stroke: 1px black) {
  .return h2 { color: var(--bone); }
}

.sheet { grid-area: sheet; margin: 0; width: clamp(170px, min(22vw, 36vh), 290px); }
.sheet-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.sheet-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(22, 20, 18, .28);
  border-radius: 12px;
  pointer-events: none;
}
.sheet-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-top-right-radius: 18px;
  background: linear-gradient(225deg, var(--night) 50%, #d8cfc0 50%);
  pointer-events: none;
}
.sheet:hover .sheet-card { transform: rotate(-1deg); }

.rose { width: 100%; height: calc(100% - 4.25rem); display: block; color: var(--ink); }
.ink path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.1s cubic-bezier(.5, 0, .2, 1) forwards;
}
.ink path:nth-child(2) { animation-delay: .12s; }
.ink path:nth-child(3) { animation-delay: .24s; }
.ink path:nth-child(4) { animation-delay: .36s; }
.ink path:nth-child(5) { animation-delay: .48s; }
.ink path:nth-child(6) { animation-delay: .6s; }
.ink path:nth-child(7) { animation-delay: .8s; }
.ink path:nth-child(8) { animation-delay: 1s; }
.ink path:nth-child(9) { animation-delay: 1.1s; }
.ink path:nth-child(10) { animation-delay: 1.15s; }
.ink path:nth-child(11) { animation-delay: 1.25s; }
.ink path:nth-child(12) { animation-delay: 1.3s; }
.ink path:nth-child(13) { animation-delay: 1.35s; }
.ink { animation: fade var(--fade) ease-in 2.6s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade {
  0% { opacity: 1; filter: blur(0); }
  100% { opacity: .16; filter: blur(.6px); }
}

.reink {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  min-height: 44px;
  padding: .65rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}
.reink:hover { background: #000; }
.reink:active { transform: translateX(-50%) scale(.96); }
.reink:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

.sheet figcaption {
  margin-top: clamp(1.4rem, 4vh, 2.5rem);
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: clamp(.75rem, 2vh, 1.25rem) clamp(1.25rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot a { color: var(--bone); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas: "closed" "sheet" "return";
    row-gap: clamp(.9rem, 2.6svh, 2rem);
    align-content: space-evenly;
    justify-items: center;
  }
  .closed, .return { text-align: center; }
  h1 span, h2 span { display: inline; }
  .closed p, .return p { margin-left: auto; margin-right: auto; }
  .stage { padding-top: clamp(.5rem, 2svh, 1.5rem); padding-bottom: clamp(.5rem, 2svh, 1.5rem); }
  .sheet { width: min(52vw, 25svh, 250px); }
  .closed p, .return p { max-width: 34ch; font-size: clamp(.85rem, 2.2svh, 1rem); margin-top: .5rem; }
  h1, h2 { font-size: clamp(1.5rem, min(8.5vw, 4.4svh), 2.4rem); }
  .logo { width: min(32vw, 12svh); }
  .sheet figcaption { margin-top: clamp(.9rem, 2.4svh, 1.5rem); font-size: .75rem; white-space: nowrap; width: max-content; position: relative; left: 50%; transform: translateX(-50%); }
  .reink { padding: .55rem 1.1rem; font-size: .9rem; bottom: 1.1rem; }
  .foot { flex-direction: column; align-items: center; text-align: center; gap: .15rem; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ink, .ink path { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .sheet-card, .reink { transition: none; }
}
