/* Plata Exchange — landing
   Palette is sampled from the logo: paper, ink, and the greys of the chrome ribbon. */
:root {
  --paper: #f3f0eb;
  --ink: #0e0e0e;
  --graphite: #4b4c50;
  --silver: #9a9ca1;
  --mist: #dbd6cf;
  --chrome: linear-gradient(118deg, #1b1c1f 0%, #5d6066 24%, #a9acb1 42%, #55585e 56%, #17181a 76%, #7c7f85 100%);
  --display: "Prata", "Bodoni 72", "Didot", "Times New Roman", serif;
  --text: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --page: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999rem; top: 0; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Top bar */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.top__name { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.125rem; letter-spacing: 0.02em; text-decoration: none; }
.top__name img { display: block; width: 1.75rem; height: 1.75rem; }
.lang { display: flex; gap: 1.25rem; font-size: 1rem; }
.lang a { text-decoration: none; color: var(--graphite); padding: 0.25rem 0; }
.lang a[aria-current="true"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.lang a:hover { color: var(--ink); }

/* Hero: the logo is the headline */
.hero { text-align: center; padding: clamp(0.5rem, 3vw, 2rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.mark {
  position: relative;
  width: min(100%, 55rem);
  aspect-ratio: 960 / 581;
  margin: 0 auto;
  background: var(--logo) center / contain no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
  overflow: hidden;
}
.mark::after {
  content: "";
  position: absolute;
  inset: -10% auto -10% 0;
  width: 34%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  mix-blend-mode: overlay;
  transform: translateX(-120%) skewX(-12deg);
  animation: sheen 1.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s 1 both;
}
@keyframes sheen { to { transform: translateX(420%) skewX(-12deg); } }

.hero__say {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.5rem);
  line-height: 1.25;
  max-width: 24em;
  margin: clamp(0.5rem, 2vw, 1.5rem) auto 0;
  text-wrap: balance;
}
.hero__act { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center; margin-top: 2.25rem; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }

/* Sections: title on the left, content on the right */
.part { border-top: 1px solid var(--mist); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.part__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.part h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; margin: 0; text-wrap: balance; }
.part p { margin: 0 0 1.1em; max-width: 36em; }
.part p:last-child { margin-bottom: 0; }
.lead { font-size: 1.3125rem; line-height: 1.5; }
.quiet { color: var(--graphite); font-size: 1rem; }

/* Record */
.record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0 0 2rem; padding: 0; }
.record div { margin: 0; }
.record dt { order: 2; color: var(--graphite); font-size: 1rem; line-height: 1.4; margin-top: 0.5rem; max-width: 14em; }
.record dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  line-height: 1;
  white-space: nowrap;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.record div { display: flex; flex-direction: column; }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0 1rem; padding: 1.6rem 0; border-top: 1px solid var(--mist); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 3.25rem;
  line-height: 0.95;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3 { font-family: var(--text); font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.4rem; }
.steps p { margin: 0; }

/* Safety rules */
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { position: relative; padding-left: 2.5rem; margin-bottom: 1.15rem; max-width: 36em; }
.rules li:last-child { margin-bottom: 0; }
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.4rem;
  height: 0.7rem;
  border: 1.5px solid var(--silver);
  border-radius: 50%;
  transform: rotate(-24deg);
}

/* Not found */
.lost { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.lost h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.lost p { margin: 0 auto 2rem; max-width: 30em; color: var(--graphite); }
.lost__links { display: flex; justify-content: center; gap: 1rem 2rem; flex-wrap: wrap; }

/* Closing */
.close { border-top: 1px solid var(--mist); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.close p { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); line-height: 1.25; margin: 0 auto 2rem; max-width: 22em; text-wrap: balance; }

.foot { border-top: 1px solid var(--mist); padding: 2rem 0 3rem; color: var(--graphite); font-size: 0.9375rem; line-height: 1.55; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.foot p { margin: 0; max-width: 40em; }

@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .part__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .record { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .steps li { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .steps li::before { font-size: 2.6rem; }
  .lead { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark::after { animation: none; display: none; }
  .btn { transition: none; }
}
