@charset "UTF-8";

@font-face {
  font-family: "IM FELL English SC";
  src: url("fonts/im_fell.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sea: #102630;
  --paper: #eee8d9;
  --ink: #25322f;
  --muted: #59615a;
  --line: #c7c1af;
  --brass: #d2b575;
  --link: #285c68;
  --serif: "IM FELL English SC", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sea); color: var(--ink); font: 19px/1.5 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #9e5a1b; outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: normal; line-height: 1.2; }
h1 { font-size: 38px; }
h2 { font-size: 30px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--paper); z-index: 10; }
.skip:focus { top: 12px; }
.site-header, main, .site-footer { max-width: 1240px; margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 27px 0 24px; color: var(--paper); }
.studio-brand { display: inline-flex; align-items: center; gap: 16px; color: var(--paper); text-decoration: none; font: 25px var(--serif); line-height: 1.25; min-width: 0; }
.studio-brand > img { width: 52px; height: 52px; flex-shrink: 0; }
.brand-subtitle { display: block; font-size: 14px; margin-top: 5px; color: #b7c0b8; font-family: var(--body); }
.header-links { display: flex; gap: 26px; font: 17px var(--serif); flex-wrap: wrap; flex-shrink: 0; }
.header-links a { color: var(--paper); text-decoration: none; }
.header-links a:hover { color: var(--brass); text-decoration: underline; }
main { background: var(--paper); border-top: 3px solid var(--brass); }
.introduction { padding: 30px 40px 24px; }
.featured-game { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin: 0 40px; background: var(--sea); color: var(--paper); }
.game-image { align-self: stretch; display: block; background: #071c26; }
.game-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.game-info { padding: 37px 32px 30px; }
.game-info h2 img { width: 270px; max-width: 100%; }
.game-info > p { font-size: 19px; color: var(--paper); margin-top: 25px; }
.button { display: inline-flex; justify-content: space-between; gap: 20px; padding: 12px 17px; background: #234c51; border: 1px solid var(--brass); color: #fff9e9; text-decoration: none; font: 18px var(--serif); margin-top: 25px; width: 100%; }
.button:hover { background: #163d43; }
.studio-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 55px; padding: 45px 40px; }
.studio-story h2 { margin-bottom: 18px; }
.story-copy { max-width: 650px; }
.science-link { margin-top: 15px; }
.science-intro { max-width: 890px; padding: 40px 40px 35px; }
.science-intro h1 { margin-bottom: 20px; }
.research-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 35px 40px; border-top: 1px solid var(--line); }
.research-group > h2 { font-size: 28px; }
.research-projects article + article { margin-top: 32px; }
.research-projects h3 { font: 400 24px/1.2 var(--serif); margin: 0 0 12px; }
.research-projects p { max-width: 850px; }
.research-projects p + p { margin-top: 15px; }
.publication-link { margin-top: 15px; }
.contact a { overflow-wrap: anywhere; }
.site-footer { padding: 25px 0 24px; border-top: 1px solid #3c4e52; color: #b7c0b8; }
.footer-top { margin-bottom: 25px; }
.footer-links { display: flex; gap: 23px; flex-wrap: wrap; font-size: 15px; }
.footer-links a { color: var(--paper); font-family: var(--serif); font-size: 16px; }
.site-footer > p { font-size: 14px; color: #b7c0b8; }

@media (max-width: 1320px) {
  .site-header, main, .site-footer { margin-left: 30px; margin-right: 30px; }
}
@media (max-width: 1000px) {
  .studio-brand { font-size: 22px; }
  .featured-game { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .game-info { padding: 28px; }
  .studio-story { gap: 40px; }
}
@media (max-width: 720px) {
  .site-header, main, .site-footer { margin-left: 15px; margin-right: 15px; }
  .site-header { flex-wrap: wrap; gap: 22px; padding: 22px 0; }
  .studio-brand { font-size: 22px; gap: 12px; }
  .studio-brand > img { width: 45px; height: 45px; }
  .header-links { gap: 15px 22px; font-size: 15px; flex-wrap: wrap; }
  .introduction { padding: 27px 24px 20px; }
  h1 { font-size: 34px; }
  .featured-game { display: block; margin: 0 24px; }
  .game-image img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
  .game-info { padding: 27px 25px; }
  .game-info h2 img { width: 240px; }
  .studio-story { display: block; padding: 30px 24px; }
  .contact { margin-top: 28px; }
  .brand-subtitle { font-size: 13px; }
  .science-intro { padding: 30px 24px; }
  .research-group { display: block; padding: 28px 24px; }
  .research-group > h2 { margin-bottom: 24px; }
  .footer-links { gap: 15px 20px; }
}
