/* English home page redesign (4 December 2026; local preview, not deployed).
   Loaded only by public/index.html, after theme.css; every rule is scoped to main.hp, so no other page changes.
   Type: --display uses "Palace Display" (Source Serif, already self-hosted in style.css) until Chase picks a display
   face. Put the chosen family first in --display once its files are in /assets/fonts/ with an @font-face here. */
.sw .hp {
  --display: "Palace Display", Georgia, "Times New Roman", serif;
  --text: "Palace Text", "Helvetica Neue", Arial, sans-serif;
  --ivory: #f4eee4;
  --dim: #b9b2a8;
  --hair: rgba(244, 238, 228, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--ivory);
  font-family: var(--text);
}
.sw .hp h1, .sw .hp h2, .sw .hp h3 { font-family: var(--display) !important; font-weight: 400 !important; letter-spacing: -.005em; }
.sw .hp h1 em, .sw .hp h2 em { font-style: italic; }
.sw .hp .eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.sw .hp .fine { margin: 22px 0 0; color: var(--dim); font-size: 13px; }
.hp-section { padding: clamp(64px, 8vw, 120px) 6%; border-top: 1px solid var(--hair); }
.hp-section h2 { margin: 0 0 clamp(28px, 3.5vw, 48px); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; max-width: 16ch; }

/* Tags: every picture says what it is */
.hp-tag {
  display: inline-block; margin-right: 10px; padding: 4px 8px 3px; border-radius: 4px;
  background: rgba(var(--acc-rgb), .9); color: #061413;
  font: 700 10px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; vertical-align: 1px;
}
.hp-tag-concept { background: rgba(244, 238, 228, .86); color: #141210; }

/* Hero: the game itself, framed like a screen */
.hp-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 4vw, 72px); min-height: min(calc(100vh - 76px), 900px);
  padding: clamp(40px, 6vw, 88px) 6% clamp(56px, 6vw, 96px);
  background: radial-gradient(900px 600px at 78% 50%, rgba(214, 150, 90, .16), transparent 65%);
}
.hp-hero h1 { margin: 0; font-size: clamp(64px, 8.4vw, 136px); line-height: .9; }
.hp-lede { margin: 24px 0 32px; max-width: 30ch; color: var(--ivory); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.hp .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-adult { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--ivory); font-size: 14px; }
.hp-badge {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1px solid var(--ivory);
  border-radius: 4px; font: 700 11px/1 var(--text); letter-spacing: .06em;
}
.hp-platforms { margin: 10px 0 0; color: var(--dim); font-size: 13px; letter-spacing: .04em; }
.hp-screen { position: relative; margin: 0; }
.hp-frame {
  overflow: hidden; border-radius: 14px; border: 1px solid rgba(244, 238, 228, .16);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(244, 238, 228, .03);
}
.hp-frame img, .hp-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hp-screen figcaption, .hp-shot figcaption { margin-top: 12px; color: var(--dim); font-size: 13px; }

/* Tonight */
.hp-tonight-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.hp-tonight-list li { padding-top: 22px; border-top: 1px solid rgba(var(--acc-rgb), .45); }
.hp-num { display: block; margin-bottom: 14px; color: var(--acc-2); font: italic 400 22px/1 var(--display); }
.hp-tonight-list h3 { margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 32px); }
.hp-tonight-list p, .hp-dev-list p, .hp-flow p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.55; }

/* In-game screenshots */
.hp-shots { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.hp-shot { margin: 0; min-width: 0; }
.hp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--hair); }
.hp-shot-lead { grid-row: span 2; }
.hp-shot-lead img { height: calc(100% - 32px); min-height: 0; }

/* Download flow */
.hp-get h2 { margin-bottom: 14px; }
.hp-why { margin: 0 0 40px; color: var(--dim); font-size: 16px; }
.hp-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: none; }
.hp-flow::before { content: ""; position: absolute; top: 19px; left: 20px; right: 33%; height: 1px; background: linear-gradient(90deg, var(--acc), rgba(var(--acc-rgb), .2)); }
.hp-flow li { position: relative; }
.hp-step {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: #0d0d0f; border: 1px solid var(--acc); color: var(--acc-2); font: 700 15px/1 var(--text);
}
.hp-flow h3 { margin: 0 0 6px; font-size: clamp(22px, 2vw, 28px); }
.hp-platform-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.sw .hp-platform-buttons .button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 260px; padding: 16px 24px; }
.hp-platform-buttons small { font: 500 12px/1.3 var(--text); letter-spacing: .04em; text-transform: none; opacity: .8; }
.hp-all { margin: 20px 0 0; font-size: 14px; }
.hp-all a { color: var(--acc-2); text-decoration: none; border-bottom: 1px solid rgba(var(--acc-rgb), .4); }
.hp-all a:hover { color: #fff; }

/* In development: quieter, at the bottom */
.hp-dev { background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); }
.hp-dev h2 { font-size: clamp(30px, 3.4vw, 48px); }
.hp-dev-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.hp-dev-list { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.hp-dev-list h3 { margin: 0 0 6px; font-size: 24px; }
.hp-arts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-art { position: relative; margin: 0; }
.hp-art-lead { grid-column: span 2; }
.hp-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; opacity: .82; filter: saturate(.85); }
.hp-art figcaption { position: absolute; top: 10px; left: 10px; }

/* Phone and narrow screens */
@media (max-width: 900px) {
  .hp-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .hp-hero h1 { font-size: clamp(56px, 16vw, 92px); }
  .hp-tonight-list, .hp-flow, .hp-dev-grid { grid-template-columns: 1fr; }
  .hp-flow { gap: 26px; }
  .hp-flow::before { top: 20px; bottom: 40px; left: 19.5px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--acc), rgba(var(--acc-rgb), .2)); }
  .hp-flow li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; }
  .hp-step { grid-row: span 2; margin: 0; }
  .hp-shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hp-shot-lead { grid-column: span 2; grid-row: auto; }
  .hp-shot-lead img { height: auto; }
  .hp-shot figcaption { font-size: 12px; }
}
@media (max-width: 520px) {
  .sw .hp-platform-buttons .button { width: 100%; min-width: 0; }
  .hp-shot:not(.hp-shot-lead) .hp-tag { display: none; }
}

/* Motion: slow and small, and none at all when reduced motion is asked for */
@media (prefers-reduced-motion: no-preference) {
  .hp-hero-copy > * { animation: hp-rise .9s var(--ease) both; }
  .hp-hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hp-hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hp-hero-copy > :nth-child(n+4) { animation-delay: .24s; }
  .hp-screen { animation: hp-rise 1.1s var(--ease) .2s both; }
  .hp-frame img { animation: hp-drift 28s ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    .hp-section > * { animation: hp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes hp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hp-drift { from { transform: scale(1); } to { transform: scale(1.03); } }

/* Hero title: "Swan Palace" lettering from Ogg (Adobe Fonts), outlined to SVG, 4 Dec 2026 (assets/brand/swan-palace.svg). */
.hp-hero h1.hp-mark { font-size: 0; line-height: 0; }
.hp-hero h1.hp-mark img { display: block; width: clamp(180px, 23vw, 380px); height: auto; object-fit: contain; }
@media (max-width: 900px) { .hp-hero h1.hp-mark img { width: clamp(160px, 46vw, 260px); } }
