/* General Simulation Works. Colourway A: steel and amber on near-black blue-violet.
   Colours are tokens on :root. The site has one dark theme on purpose. */
@font-face { font-family: "IM Fell"; src: url("fonts/IMFellEnglish-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell"; src: url("fonts/IMFellEnglish-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IM Fell SC"; src: url("fonts/IMFellEnglishSC-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0a0a16;
  --bar: #12122a;
  --panel: #0f0f22;
  --edge: #2a2d52;
  --text: #d8dbe8;
  --dim: #9096b2;
  --hi: #e9eeff;
  --stripe: #f0a020;
  --stripe-dim: #b57a14;
  --serif: "IM Fell", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --caps: "IM Fell SC", "IM Fell", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 19px/1.55 var(--serif); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--stripe); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: #ffc65a; }
:focus-visible { outline: 2px solid var(--stripe); outline-offset: 3px; }

.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--stripe); color: #000; padding: 8px 12px; font: 600 14px/1 var(--sans); z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.bar { background: var(--bar); border-bottom: 3px solid var(--stripe); }
.bar-in { max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { width: 118px; height: auto; }
.bar nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.bar nav a { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; padding: 12px 0 10px; border-bottom: 2px solid transparent; }
.bar nav a img { height: 21px; width: auto; display: block; }
.bar nav a.text { font: 600 15px/1 "Bahnschrift", "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--hi); border-bottom-color: var(--stripe); }
.lang { margin-left: auto; font: 600 12px/1 var(--sans); letter-spacing: .12em; display: flex; gap: 6px; }
.lang a, .lang span { color: var(--dim); text-decoration: none; padding: 8px 6px; }
.lang [aria-current] { color: var(--stripe); }

/* Layout */
main { flex: 1; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.hero { position: relative; background: #000 url("img/hero.webp") center 40% / cover no-repeat; border-bottom: 1px solid var(--edge); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ground) 0%, rgba(10,10,22,.55) 38%, rgba(10,10,22,0) 70%); }
.hero-in { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(110px, 24vw, 280px) var(--gutter) 28px; text-align: center; }
.hero-in h1 { margin: 0; line-height: 0; }
.hero-in h1 img { width: min(86%, 640px); margin: 0 auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.65)); }
.tagline { margin: 14px auto 0; max-width: none; font-style: italic; font-size: clamp(18px, 2.4vw, 22px); color: var(--hi); text-shadow: 0 1px 8px #000; }
.spec { margin: 14px auto 0; max-width: none; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-shadow: 0 1px 6px #000; }
.spec b { color: var(--stripe); font-weight: 600; }

h1, h2, h3 { font-family: var(--caps); font-weight: 400; color: var(--hi); letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
h2 { font-size: 24px; margin: 0 0 18px; }
h2::after { content: ""; display: block; width: 58px; height: 4px; margin-top: 10px; background: var(--stripe); transform: skewX(-20deg); }
h3 { font-size: 18px; margin: 0 0 8px; }
.page-title { font-size: 34px; margin: 44px 0 10px; letter-spacing: .12em; }
.page-title + .lead { margin-top: 0; }
.lead { font-size: 21px; color: var(--hi); max-width: var(--measure); }
p { margin: 0 0 1em; max-width: var(--measure); }

section { padding: 38px 0 6px; }
section + section { border-top: 1px solid var(--edge); margin-top: 30px; }

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.card { background: var(--panel); border: 1px solid var(--edge); border-top: 3px solid var(--stripe); padding: 18px 20px 8px; }
.card p { font-size: 17.5px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Facts */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 20px; max-width: 760px; border: 1px solid var(--edge); background: var(--panel); }
.facts div { display: grid; grid-template-columns: 1fr; padding: 10px 16px; border-bottom: 1px solid var(--edge); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 600 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; color: var(--hi); }
@media (min-width: 620px) { .facts div { grid-template-columns: 200px 1fr; align-items: baseline; } }

/* Lists */
.plain { padding-left: 1.2em; margin: 0 0 1.2em; max-width: var(--measure); }
.plain li { margin: 0 0 .5em; padding-left: .2em; }
.plain li::marker { color: var(--stripe); }

/* Gallery */
.shots { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; background: var(--panel); border: 1px solid var(--edge); }
.shots a { display: block; line-height: 0; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { font: 14px/1.45 var(--sans); color: var(--dim); padding: 10px 12px 12px; }

/* Notes and small print */
.note { font: 14px/1.55 var(--sans); color: var(--dim); max-width: var(--measure); }
.mail { font-size: 24px; letter-spacing: .02em; word-break: break-all; }
.n { font-family: var(--sans); font-size: .94em; letter-spacing: .01em; }

/* Footer */
.foot { margin-top: 56px; background: var(--bar); border-top: 1px solid var(--edge); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 18px var(--gutter) 26px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; font: 13px/1.5 var(--sans); color: var(--dim); }
.foot-in a { color: var(--text); }
.foot-in .grow { margin-left: auto; }

@media (max-width: 520px) {
  body { font-size: 18px; }
  .lead { font-size: 19px; }
  .page-title { font-size: 28px; }
  .bar-in { gap: 2px 12px; padding-top: 8px; padding-bottom: 4px; }
  .brand { order: 1; }
  .brand img { width: 96px; }
  .lang { order: 2; margin-left: auto; }
  .bar nav { order: 3; width: 100%; font-size: 14px; letter-spacing: .1em; gap: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Licence page */
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p { font: 14.5px/1.6 var(--sans); max-width: 80ch; margin: 0 0 .9em; color: var(--text); }
.s15 { list-style: none; margin: 0; padding: 0; font: 13.5px/1.55 var(--sans); max-width: 80ch; }
.s15 li { padding: 6px 0; border-bottom: 1px solid var(--edge); }

/* Studio theme: no fantasy face on the studio's own pages */
.theme-studio { font-family: var(--sans); font-size: 17px; line-height: 1.65; }
.theme-studio h1, .theme-studio h2, .theme-studio h3 { font-family: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: .09em; }
.theme-studio .page-title { font-size: 30px; }
.theme-studio .lead { font-size: inherit; }
.theme-studio .n { font-family: inherit; font-size: 1em; }

/* Social and community links */
.social { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.social a, .btn { display: inline-flex; align-items: center; gap: 12px; color: var(--hi); text-decoration: none; font: 600 16px/1.2 var(--sans); padding: 9px 0; }
.social a:hover, .btn:hover { color: var(--stripe); }
.ico { flex: none; }
.btn { border: 1px solid var(--edge); background: var(--panel); padding: 12px 18px; }
.btn:hover { border-color: var(--stripe); }

/* Studio page: the full logo as the page title */
.studio-logo { margin: 34px 0 34px; line-height: 0; }
.studio-logo img { display: block; width: 100%; height: auto; }
