/* Rosewind Games: rosewindgames.com. Colours from the Rosewind emblem (brand/logo). */
@font-face { font-family: "IM Fell English"; src: url("fonts/IMFellEnglish-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "IM Fell English"; font-style: italic; src: url("fonts/IMFellEnglish-Italic.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "IM Fell English SC"; src: url("fonts/IMFellEnglishSC-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #0d0a0e;
  --night-2: #17121a;
  --cream: #ecdfc4;
  --cream-dim: #b9ac93;
  --gold: #c9a35a;
  --rose: #b3263a;
  --leaf: #4f7a3a;
  --measure: 68rem;
}

* { box-sizing: border-box; }
html { background: var(--night); color: var(--cream); }
body {
  margin: 0;
  font: 1.125rem/1.6 "IM Fell English", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* header */
.top { padding: 1.25rem 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: "IM Fell English SC", serif; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--cream); text-decoration: none; }
.top nav a { font-family: "IM Fell English SC", serif; letter-spacing: 0.05em; margin-left: 1.25rem; text-decoration: none; color: var(--cream-dim); }
.top nav a:hover { color: var(--cream); }

/* hero */
.hero { text-align: center; padding: 2rem 0 3.5rem; }
.hero img { width: min(340px, 70vw); margin: 0 auto; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tagline { font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--cream); margin: 1.25rem auto 0; max-width: 36rem; }

.rule { border: 0; height: 1px; margin: 0 auto; max-width: 22rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* games */
section { padding: 3.5rem 0; }
h2 { font-family: "IM Fell English SC", serif; font-weight: normal; letter-spacing: 0.05em; text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 2.5rem; }
.game { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.25rem; align-items: center; margin-bottom: 4rem; }
.game:nth-of-type(even) { grid-template-columns: 1fr 1.15fr; }
.game:nth-of-type(even) .media { order: 2; }
.game h3 { font-family: "IM Fell English SC", serif; font-weight: normal; font-size: 1.9rem; line-height: 1.15; margin: 0; }
.game .sub { font-style: italic; color: var(--gold); font-size: 1.3rem; margin: 0.15rem 0 1rem; }
.game p { margin: 0 0 1rem; color: var(--cream); }
.facts { color: var(--cream-dim); font-size: 1rem; }
.watch { font-size: 1rem; }
.status { display: inline-block; font-family: "IM Fell English SC", serif; letter-spacing: 0.05em; font-size: 1rem;
  border: 1px solid var(--gold); color: var(--gold); padding: 0.2rem 0.75rem; border-radius: 2px; }

/* the store button: shown once its href is filled in; "Coming soon" shows until then */
.store { margin: 0.25rem 0 0; }
.buy { display: inline-block; font-family: "IM Fell English SC", serif; letter-spacing: 0.05em; font-size: 1.15rem;
  background: var(--rose); color: var(--cream); text-decoration: none; padding: 0.55rem 1.4rem; border-radius: 3px;
  border: 1px solid #d4475a; box-shadow: 0 4px 14px rgba(179,38,58,0.35); }
.buy:hover, .buy:focus-visible { background: #c8303f; color: #fff; }
.buy[href=""] { display: none; }
.buy:not([href=""]) + .status { display: none; }

/* a trailer: the thumbnail until clicked, then YouTube's player (no YouTube request before the click) */
.trailer { position: relative; aspect-ratio: 16 / 9; background: var(--night-2); border: 1px solid #2a2230;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.trailer button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.trailer button img { width: 100%; height: 100%; object-fit: cover; }
.trailer button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%; background: rgba(13,10,14,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23ecdfc4'/%3E%3C/svg%3E") center / 38px no-repeat;
  border: 1px solid var(--gold); transition: transform .15s; }
.trailer button:hover::after, .trailer button:focus-visible::after { transform: scale(1.08); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer .label { position: absolute; left: 0.75rem; bottom: 0.6rem; font-family: "IM Fell English SC", serif; font-size: 0.95rem;
  color: var(--cream); text-shadow: 0 1px 3px #000; pointer-events: none; }

/* about */
.about { text-align: center; }
.about p { max-width: 40rem; margin: 0 auto 1rem; }

/* footer */
footer { padding: 2.5rem 0 3rem; text-align: center; color: var(--cream-dim); font-size: 0.95rem; }
footer a { color: var(--cream-dim); }
footer .links a { margin: 0 0.6rem; }

/* plain pages */
.page { max-width: 44rem; padding-top: 1rem; padding-bottom: 3rem; }
.page h1 { font-family: "IM Fell English SC", serif; font-weight: normal; font-size: 2.2rem; letter-spacing: 0.04em; }
.page h2 { text-align: left; font-size: 1.4rem; margin: 2rem 0 0.5rem; }

@media (max-width: 760px) {
  .game, .game:nth-of-type(even) { grid-template-columns: 1fr; gap: 1.25rem; }
  .game:nth-of-type(even) .media { order: 0; }
  .top nav a { margin-left: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
