@font-face {
  font-family: 'Instrument Serif';
  src: url('./instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./dm-sans.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --pine: #153b33;
  --oat: #faf2e3;
  --tomato: #b9352a;
  --basil: #d1e5cb;
  --butter: #f6db9b;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  -webkit-user-select: none;
  user-select: none;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 36% 16%, #244a3e, var(--pine) 63%, #102c26);
  color: var(--oat);
  font: 500 1rem/1.55 var(--body);
}
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--butter);
  outline-offset: 4px;
}
.shell {
  width: min(100% - 2 * clamp(1.25rem, 3.6vw, 3.75rem), 92rem);
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 5.3rem;
  padding-block: .65rem;
  border-bottom: 1px solid rgb(250 242 227 / 52%);
}
.brand {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, .8vw, .7rem);
}
.wordmark {
  display: block;
  width: clamp(4.4rem, 6.8vw, 5.95rem);
  height: auto;
}
.languages {
  display: flex;
  align-items: center;
  gap: clamp(.2rem, .45vw, .45rem);
}
.languages a {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.75rem;
}
.languages a::before {
  content: '';
  position: absolute;
  inset: .3rem 0;
  border-radius: .6rem;
  pointer-events: none;
}
.languages a img {
  position: relative;
  display: block;
  border-radius: .2rem;
}
.languages a:hover::before { background: rgb(250 242 227 / 9%); }
.languages a[aria-current]::before { background: rgb(250 242 227 / 13%); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.35rem, 3.4vw, 3.25rem);
  padding-block: 1.2rem 2.1rem;
}
.hero-copy { padding-block: 2rem; }
.mark {
  display: grid;
  place-items: center;
  width: clamp(2.4rem, 4.1vw, 3.15rem);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tomato);
  color: var(--oat);
  cursor: pointer;
}
.mark:hover { background: #a92e25; }
.mark picture {
  display: block;
  width: 86%;
  aspect-ratio: 1;
}
.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

h1 {
  margin: 0;
  font: 400 clamp(3.5rem, 6.35vw, 6.25rem)/.91 var(--display);
  letter-spacing: -.028em;
}
h1 span { display: block; text-wrap: balance; }
h1 span + span { color: var(--butter); }
html:lang(pt) h1, html:lang(es) h1 { font-size: clamp(3.05rem, 5.7vw, 5.85rem); }

.description {
  max-width: 30rem;
  margin: clamp(1.15rem, 3vw, 2.2rem) 0 0;
  color: var(--basil);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.58;
  text-wrap: pretty;
}
.stage-view { min-width: 0; }
.stage-panel {
  position: relative;
  margin: 0;
  animation: show-stage .48s cubic-bezier(.2, .72, .35, 1) both;
}
@keyframes show-stage {
  from { opacity: .38; transform: translateY(7px); }
}
.hero-art {
  display: block;
  aspect-ratio: 1.38;
  overflow: hidden;
  border: 2px solid rgb(250 242 227 / 89%);
  border-radius: 50% 50% 18px 18px / 48% 48% 18px 18px;
  background: #a07d52;
}
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.stage-panel[data-panel="prep"] img { object-position: 50% 46%; }
.stage-panel[data-panel="share"] img { object-position: 50% 49%; }
.stage-note {
  position: absolute;
  left: clamp(-2.6rem, -2.45vw, -1rem);
  bottom: clamp(.85rem, 2.65vw, 2.55rem);
  width: min(calc(100% - 1.2rem), 20rem);
  display: grid;
  gap: .3rem;
  padding: clamp(.75rem, 1.5vw, 1.35rem);
  color: var(--pine);
  background: var(--oat);
  border-radius: 1.1rem;
  box-shadow: 0 12px 38px #091b1870;
}
.stage-number {
  color: #a52d24;
  font-size: .7rem;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.stage-note strong {
  font: 400 clamp(1.65rem, 2.65vw, 2.6rem)/1 var(--display);
}
.stage-instruction { font-size: .91rem; line-height: 1.4; }

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.55rem, 1.55vw, 1.5rem);
  padding-block: 1.3rem 2rem;
  border-top: 1px solid rgb(246 219 155 / 42%);
}
.stage-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: clamp(6.1rem, 10.2vw, 9.25rem);
  padding: .85rem clamp(.75rem, 2.1vw, 2rem);
  text-decoration: none;
  color: var(--oat);
  background: rgb(9 35 29 / 30%);
  border: 1px solid rgb(250 242 227 / 60%);
  border-radius: .95rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.stage-link:hover { border-color: var(--butter); transform: translateY(-2px); }
.stage-link[aria-current] { background: var(--tomato); border-color: var(--oat); }
.stage-link img {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 63%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent 2%, #000 43%);
}
.stage-label {
  min-width: 0;
  display: grid;
  gap: .16rem;
  font: 400 clamp(1.5rem, 3.18vw, 3.35rem)/.95 var(--display);
}
.step-index {
  color: var(--butter);
  font: 400 clamp(1.1rem, 2.1vw, 2.15rem)/1 var(--display);
  letter-spacing: .035em;
}

@media (max-width: 760px) {
  .site-header { min-height: 4.35rem; }
  .hero { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 1.55rem; padding-bottom: 1.35rem; }
  .hero-copy { padding: 0; }
  h1, html:lang(pt) h1, html:lang(es) h1 { font-size: clamp(2.9rem, 11.6vw, 5.8rem); }
  h1 span { text-wrap: wrap; }
  .description { margin-top: 1rem; }
  .hero-art { aspect-ratio: 1.28; }
  .stage-note { bottom: .6rem; left: .6rem; width: min(84%, 17rem); }
  .stage-instruction { font-size: .78rem; }
  .stages { gap: .4rem; padding-top: .75rem; }
  .stage-link { min-height: 4.65rem; padding: .48rem; border-radius: .6rem; }
  .stage-link img { width: 72%; opacity: .68; mask-image: linear-gradient(to right, transparent 5%, #000 70%); }
  .stage-label { font-size: clamp(1.1rem, 4.65vw, 1.85rem); }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 2rem); }
  .languages a { min-width: 2.05rem; }
  .stage-link { padding: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-panel { animation: none; }
  .stage-link { transition: none; }
  .stage-link:hover { transform: none; }
}
