/* Friday Feeling: the cream and crimson of the studio's splash, and very little else. */
:root {
  --cream: #F5EFE2;
  --field: #FBF8F2;
  --crimson: #A51D2C;
  --ink: #2B2321;
  --muted: #7D7068;
  --rule: #E1D6C4;
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { color: var(--crimson); text-underline-offset: .15em; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

.top, main, footer { width: min(100% - 40px, 960px); margin-inline: auto; }

/* The name, then the tabs. */
.top { padding-top: 32px; }
.name { margin: 0; }
.name img { width: 200px; height: auto; }
.tabs { display: flex; gap: 32px; margin-top: 24px; border-bottom: 1px solid var(--rule); }
.tabs a { margin-bottom: -1px; padding-bottom: 8px; color: var(--muted); border-bottom: 3px solid transparent; font-size: 24px; font-weight: 700; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--crimson); border-bottom-color: var(--crimson); }

main { padding: 40px 0 72px; }

/* A game: its name and its line, then its screenshots. */
.game + .game { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
.title { display: flex; gap: 16px; align-items: flex-start; }
.icon { flex: none; width: 56px; height: 56px; border-radius: 13px; }
.game h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.game p { margin: 4px 0 0; }
.links { color: var(--muted); font-size: 15px; }
.play { font-weight: 700; }
.shots { display: flex; gap: 10px; margin-top: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots img { flex: none; width: auto; height: 360px; border-radius: 8px; scroll-snap-align: start; }
.shots.landscape img { height: 230px; }

/* Contact. */
.email { margin: 0 0 6px; font-size: 30px; line-height: 1.3; overflow-wrap: anywhere; }
.message { display: grid; gap: 14px; max-width: 520px; margin-top: 28px; }
.message label { display: grid; gap: 4px; color: var(--muted); font-size: 15px; }
.message input, .message textarea { padding: 10px 12px; color: var(--ink); background: var(--field); border: 1px solid var(--rule); border-radius: 4px; font: inherit; }
.message textarea { min-height: 150px; resize: vertical; }
.message input:focus, .message textarea:focus { outline: 2px solid var(--crimson); outline-offset: -1px; }
.message button { justify-self: start; padding: 10px 26px; color: var(--cream); background: var(--crimson); border: 0; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.message button:hover { background: #8C1825; }
.message button:disabled { opacity: .6; cursor: default; }
.message .trap { position: absolute; left: -9999px; }
.form-note { min-height: 1.5em; margin: 0; }

footer { padding: 20px 0 40px; color: var(--muted); border-top: 1px solid var(--rule); font-size: 14px; }
footer a { color: inherit; }

/* The privacy pages, and the page for addresses that lead nowhere. */
.text > * { max-width: 680px; }
.text h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; }
.text h2 { margin: 28px 0 4px; font-size: 21px; line-height: 1.3; }
.text p, .text li { margin: 8px 0; }
.meta { color: var(--muted); }

/* A trailer, over the page. */
dialog.trailer { padding: 0; overflow: visible; background: transparent; border: 0; max-width: none; max-height: none; }
dialog.trailer::backdrop { background: rgba(32, 18, 18, .85); }
.trailer .frame { overflow: hidden; background: #000; border-radius: 6px; }
.trailer.landscape .frame { width: min(92vw, 1100px, calc(80vh * 16 / 9)); aspect-ratio: 16 / 9; }
.trailer.portrait .frame { width: min(92vw, calc(80vh * 9 / 16)); aspect-ratio: 9 / 16; }
.trailer iframe { display: block; width: 100%; height: 100%; border: 0; }
.trailer .close { position: absolute; top: -46px; right: 0; width: 36px; height: 36px; color: var(--cream); background: transparent; border: 0; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 600px) {
  .top { padding-top: 24px; }
  .name img { width: 150px; }
  .tabs { gap: 24px; margin-top: 18px; }
  .tabs a { font-size: 21px; }
  main { padding-top: 28px; }
  .icon { width: 48px; height: 48px; border-radius: 11px; }
  .game h2 { font-size: 23px; }
  .shots img { height: 300px; }
  .shots.landscape img { height: 180px; }
  .email { font-size: 22px; }
}
