/* Orvandel Online - the roadmap (/roadmap, written by paginas/build.py from content.json; movement in /roadmap.js).
   A route on a parchment map: one line runs down the page from the first day of development to launch day and on,
   the milestones hang on it on alternate sides, the dates stand in mono. Three states that do not lean on colour
   alone: done = a full mark on a full line; here = the lantern mark with its sign; on the way = a hollow mark on a
   dashed line (and the word "planned"). No boxes around the milestones: only the launch is a block. */

.estrada { background: var(--cor-papel-2); color: var(--cor-tinta); padding: clamp(28px, 4vw, 56px) var(--margem) clamp(72px, 9vw, 140px); margin-top: 2.5rem; overflow: hidden; }
.estrada :focus-visible { outline-color: var(--cor-tinta); }
.estrada p { max-width: none; margin: 0; }

.estrada__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; max-width: 1180px; margin: 0 auto clamp(36px, 5vw, 72px); padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--cor-tinta) 18%, transparent); }
.legenda { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; margin: 0; padding: 0; font-size: 1.02rem; }
.legenda li { display: flex; align-items: center; gap: 10px; }
.estrada__nota { font-family: var(--mono); font-size: 0.76rem; color: var(--cor-tinta-2); }

/* the marks */
.marco__ponto { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--cor-tinta); box-shadow: 0 0 0 6px var(--cor-papel-2); }
.marco--futuro .marco__ponto, .legenda--futuro { background: var(--cor-papel-2); border: 2px dashed var(--cor-tinta); }
.aqui .marco__ponto, .legenda--aqui { width: 26px; height: 26px; background: var(--cor-lanterna); border: 2px solid var(--cor-tinta); box-shadow: 0 0 0 6px var(--cor-papel-2), 0 0 0 7px color-mix(in srgb, var(--cor-tinta) 30%, transparent); }
.legenda .marco__ponto { box-shadow: none; flex: none; }
.legenda .legenda--aqui { width: 18px; height: 18px; }

/* the road */
.estrada__in { position: relative; max-width: 1180px; margin: 0 auto; }
.estrada__rota { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.estrada--viva .estrada__rota { display: block; }
.rota { fill: none; stroke: var(--cor-tinta); stroke-width: 2; stroke-linecap: round; }
.rota--toda { stroke-dasharray: 2 9; opacity: 0.55; }
.rota--feita { stroke-width: 3; }
.estrada__lista { --pista: 150px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; row-gap: clamp(34px, 4.4vw, 64px); }
/* without the script: a plain line down the middle */
.estrada__lista::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dotted color-mix(in srgb, var(--cor-tinta) 55%, transparent); }
.estrada--viva .estrada__lista::before { display: none; }

.marco, .aqui { position: relative; display: grid; grid-template-columns: 1fr var(--pista) 1fr; align-items: start; }
.marco__ponto { grid-column: 2; grid-row: 1; margin-top: 4px; position: relative; z-index: 1; }
.marco--e .marco__ponto { justify-self: start; margin-left: 28px; }
.marco--d .marco__ponto { justify-self: end; margin-right: 28px; }
.marco__corpo { grid-row: 1; position: relative; z-index: 1; max-width: 31rem; }
.marco--e .marco__corpo { grid-column: 1; justify-self: end; }
.marco--d .marco__corpo { grid-column: 3; justify-self: start; }
/* the next one starts while its neighbour across the road is still going: a zigzag, not a list */
.marco--d + .marco--e, .marco--e + .marco--d { margin-top: clamp(-70px, -4vw, -20px); }
/* after a milestone with a picture, the one across the road starts beside the picture */
.marco--alto + .marco { margin-top: clamp(-250px, -17vw, -150px); }
.marco--muito-alto + .marco { margin-top: clamp(-370px, -25vw, -220px); }

.marco__data { display: flex; gap: 12px; align-items: baseline; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.01em; color: var(--cor-tinta-2); }
.marco__estado { font-size: 0.72rem; padding: 1px 8px; border: 1px dashed color-mix(in srgb, var(--cor-tinta) 55%, transparent); border-radius: 999px; }
.marco h3 { font-family: var(--grotesca); font-weight: 700; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.14; letter-spacing: 0; margin: 6px 0 0; }
.marco__corpo > p:not(.marco__data) { margin-top: 8px; font-size: 1.1rem; line-height: 1.5; color: color-mix(in srgb, var(--cor-tinta) 86%, transparent); }
.marco--futuro h3 { font-weight: 400; }

.marco__figura { margin: 16px 0 0; }
.marco__figura img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.marco__figura--faixa img { aspect-ratio: 1100 / 301; border-radius: 12px; }
.marco__figura--faixa { margin-top: 8px; }
/* a creature or an item of the game, loose on the parchment beside the words */
.marco--com-solta .marco__corpo { display: grid; grid-template-columns: 1fr 116px; column-gap: 18px; }
.marco--com-solta .marco__corpo > * { grid-column: 1; }
.marco--com-solta .marco__figura--solta { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; }
.marco__figura--solta img { aspect-ratio: 1; object-fit: contain; border-radius: 0; filter: drop-shadow(0 10px 10px color-mix(in srgb, var(--cor-tinta) 28%, transparent)); }

/* a phase: a sign across the road */
.fase { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; padding-top: clamp(20px, 3vw, 44px); }
.fase:first-child { padding-top: 0; }
.fase div { background: var(--cor-papel-2); padding: 10px 30px 14px; }
.fase h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); letter-spacing: -0.01em; line-height: 1; }
.fase p { margin-top: 8px; font-size: 1.12rem; color: var(--cor-tinta-2); }

/* here */
.aqui .marco__ponto { justify-self: center; margin: 0; }
.aqui__texto { grid-column: 3; grid-row: 1; justify-self: start; align-self: center; display: flex; align-items: baseline; gap: 12px; margin-left: -34px !important; padding: 7px 18px 8px; border-radius: 999px; background: var(--cor-tinta); color: var(--cor-papel); position: relative; z-index: 1; }
.aqui__texto b { font-size: 1.12rem; }
.aqui__texto time { font-family: var(--mono); font-size: 0.78rem; color: color-mix(in srgb, var(--cor-papel) 74%, transparent); }

/* launch day: the one block of the road */
.marco--lancamento { grid-template-columns: 1fr; justify-items: center; row-gap: 18px; margin-top: clamp(8px, 2vw, 28px); }
.marco--lancamento .marco__ponto { grid-column: 1; grid-row: 1; width: 34px; height: 34px; margin: 0; background: var(--cor-lanterna); border: 3px solid var(--cor-tinta); box-shadow: 0 0 0 6px var(--cor-papel-2), 0 0 0 8px var(--cor-tinta); }
.marco--lancamento.marco--futuro .marco__ponto { border-style: solid; }
.lancamento { grid-column: 1; grid-row: 2; justify-self: stretch; max-width: none; display: grid; grid-template-columns: 1fr minmax(0, 0.9fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 4.4vw, 64px); border-radius: 26px; background: var(--cor-tinta); color: var(--cor-papel); overflow: hidden; }
.lancamento .marco__data { color: color-mix(in srgb, var(--cor-papel) 74%, transparent); font-size: 0.9rem; }
.lancamento .marco__estado { border-color: color-mix(in srgb, var(--cor-papel) 50%, transparent); }
.lancamento h3 { font-family: var(--marca); font-weight: 900; font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 0.96; letter-spacing: -0.015em; margin: 10px 0 0; white-space: nowrap; }
.lancamento__texto > p:not(.marco__data) { margin-top: 16px; font-size: 1.25rem; color: color-mix(in srgb, var(--cor-papel) 86%, transparent); max-width: 30ch; }
.lancamento__texto .lancamento__conta { font-family: var(--mono); font-size: 0.95rem; color: var(--cor-lanterna); }
.lancamento .botao { margin-top: 26px; }
.lancamento__ilha { width: 112%; max-width: none; height: auto; margin: -4% -8% -6% 0; }
.lancamento :focus-visible { outline-color: var(--cor-papel); }

/* the milestones come in as the road reaches them (only with the script, and never with reduced motion) */
.estrada--anima .marco__corpo, .estrada--anima .fase div, .estrada--anima .aqui__texto { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--suave), transform 0.7s var(--suave); }
.estrada--anima .visto .marco__corpo, .estrada--anima .fase.visto div, .estrada--anima .visto .aqui__texto { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .estrada__lista { --pista: 40px; row-gap: 34px; }
  .estrada__lista::before { left: 19px; }
  .marco, .aqui { grid-template-columns: var(--pista) 1fr; }
  .marco__ponto, .marco--e .marco__ponto, .marco--d .marco__ponto { grid-column: 1; justify-self: center; margin: 5px 0 0; }
  .marco--e .marco__ponto { transform: translateX(-5px); }
  .marco--d .marco__ponto { transform: translateX(5px); }
  .marco--e .marco__corpo, .marco--d .marco__corpo { grid-column: 2; justify-self: start; max-width: none; }
  .marco--d + .marco--e, .marco--e + .marco--d, .marco--alto + .marco, .marco--muito-alto + .marco { margin-top: 0; }
  .fase { justify-items: start; text-align: left; padding-left: var(--pista); }
  .fase div { padding: 0; background: none; }
  .aqui .marco__ponto { grid-column: 1; margin: 0; }
  .aqui__texto { grid-column: 2; margin-left: 2px !important; }
  .marco--lancamento { grid-template-columns: var(--pista) 1fr; justify-items: start; }
  .marco--lancamento .marco__ponto { justify-self: center; width: 28px; height: 28px; }
  .lancamento { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; border-radius: 20px; }
  .lancamento__ilha { width: 100%; margin: 0; }
  .marco--com-solta .marco__corpo { grid-template-columns: 1fr 84px; column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .estrada--anima .marco__corpo, .estrada--anima .fase div, .estrada--anima .aqui__texto { opacity: 1; transform: none; transition: none; }
}
