/* Landing page "Idle Cube: Guilds". The page opens like the game's title screen (the harbour village, the word mark, the
   green start button) and then shows real screens of the game, each in a plate like a game window. */

/* ---------- hero: the title screen ---------- */
.hero { position: relative; display: grid; min-height: max(560px, min(100svh, 56.25vw + 120px)); padding: var(--gutter); overflow: hidden; }
.hero__art { position: absolute; inset: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.lang { position: absolute; top: var(--gutter); right: var(--gutter); z-index: 2; }
.lang__link {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 8px; background: var(--plate); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 2px var(--edge), 0 4px 0 rgb(0 0 0 / 0.35);
}
.lang__link:hover { background: var(--plate-3); }

.hero__brand { position: relative; z-index: 1; align-self: start; justify-self: start; display: grid; justify-items: center; gap: 12px; margin-top: clamp(8px, 3vh, 40px); }
.hero__icon { width: clamp(88px, 9vw, 144px); }
/* the word mark is drawn on a pixel raster: crisp at whole multiples (152 → 304, 456, 608) */
.hero__logo img { width: 304px; max-width: none; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgb(20 26 51 / 0.35)); }
@media (min-width: 560px) { .hero__logo img { width: 456px; } }
@media (min-width: 1100px) and (min-height: 760px) { .hero__logo img { width: 608px; } }
.hero__tagline {
  padding: 8px 18px; border-radius: 8px; background: var(--plate); box-shadow: 0 4px 0 rgb(0 0 0 / 0.35);
  font: 700 clamp(17px, 1.6vw, 22px)/1.3 var(--text); text-align: center;
}

.hero__plate {
  position: relative; z-index: 1; align-self: end; justify-self: end; display: grid; gap: 16px; width: min(100%, 470px); margin-top: 32px;
  padding: 24px 26px 26px; border-radius: var(--radius); background: var(--plate);
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 rgb(255 255 255 / 0.07), 0 6px 0 rgb(0 0 0 / 0.35);
}
.hero__lead { font-size: 18px; line-height: 1.5; }
.hero__note { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- sections ---------- */
main { display: grid; gap: clamp(56px, 9vw, 120px); padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(64px, 9vw, 128px); }
main h2 { font: 400 clamp(28px, 3.1vw, 42px)/1.12 var(--title); letter-spacing: 0.01em; text-wrap: balance; }
main p { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 38ch; }

/* a screen of the game in a plate, like a game window */
.shot {
  padding: clamp(6px, 0.8vw, 10px); border-radius: 12px; background: var(--plate-2);
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 rgb(255 255 255 / 0.07), 0 6px 0 rgb(0 0 0 / 0.4);
}
.shot img { width: 100%; border-radius: 6px; }

.feature { display: grid; gap: 20px 56px; align-items: center; width: 100%; max-width: 1320px; margin: 0 auto; }
.feature__text { display: grid; gap: 14px; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); }
  .feature:nth-of-type(even) { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.75fr); }
  .feature:nth-of-type(even) .feature__text { order: -1; justify-self: end; }
}

/* items: the backpack beside the market, the text above both */
.items { display: grid; gap: 20px 28px; width: 100%; max-width: 1320px; margin: 0 auto; }
.items__text { display: grid; gap: 14px; }
@media (min-width: 1000px) {
  .items { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: end; }
  .items__text { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: end; column-gap: 28px; margin-bottom: 8px; }
}

/* scenes: four places, the skill's name on a small plaque in the corner (as in the game's stage) */
.scenes { display: grid; gap: 28px; width: 100%; max-width: 1320px; margin: 0 auto; }
.scenes__text { display: grid; gap: 14px; }
.scenes__list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .scenes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scene { position: relative; overflow: hidden; border-radius: 12px; background: var(--plate-2); box-shadow: inset 0 0 0 2px var(--edge), 0 6px 0 rgb(0 0 0 / 0.4); }
.scene img { width: 100%; aspect-ratio: 926 / 524; object-fit: cover; }
.scene figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 6px; background: var(--plate);
  box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 rgb(0 0 0 / 0.4); font-weight: 700; font-size: 15px;
}

/* the end: once more the start button */
.end {
  display: grid; justify-items: start; gap: 18px; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius); background: var(--plate);
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 3px 0 rgb(255 255 255 / 0.07), 0 6px 0 rgb(0 0 0 / 0.4);
}
.end .actions { margin-top: 6px; }

/* ---------- held upright (phones): the picture on top, the brand over the sky, the plate below ---------- */
@media (orientation: portrait) and (max-width: 999px) {
  .hero { min-height: 0; padding: 0; display: block; }
  .hero__art { position: relative; inset: auto; height: min(78svh, 133vw); }
  .hero__art img { object-position: 50% 50%; }
  .lang { top: 16px; right: 16px; }
  .hero__brand { position: absolute; top: 64px; left: 16px; right: 16px; margin: 0 auto; }
  .hero__icon { width: 80px; }
  .hero__plate { width: auto; margin: -72px 16px 0; padding: 20px; }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- low screens held sideways (phones, 844 × 390): brand left, plate right, the start button on the first screen ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: 100svh; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 24px; padding: 16px 24px; }
  .hero__brand { align-self: center; justify-self: center; margin: 0; gap: 10px; }
  .hero__icon { width: 64px; }
  .hero__logo img { width: 304px; }
  .hero__plate { align-self: center; justify-self: end; margin: 44px 0 0; padding: 18px 20px; gap: 12px; }
  .hero__lead { font-size: 16px; }
  .hero__note { font-size: 14px; }
  .lang { top: 12px; right: 24px; }
}
