/*
  jundroo.com, styled after simpleplanes.com: the same dark textured page, a boxed column, Open Sans,
  blue links and headings, square-ish blue buttons and dark tiles. Colours come from
  Web.SimplePlanes/Content/css/dark-mode.css so the sites read as one family.
*/

:root {
  --page: #272727;
  --tile: #1a1a1a;
  --tile-hover: #222;
  --well: #1e1e1e;
  --line: #393939;
  --text: #dedede;
  --muted: #a8a8a8;
  --heading: #cfcfcf;
  --blue: #079ae4;
  --blue-light: #20b3fc;
  --button: #0088cc;
  --button-hover: #0077bb;
  --footer: #0c0c0c;
  --font: "Open Sans", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The page behind the box: SimplePlanes.com's gray_jean texture, darkened the same way. */
html {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("../images/gray_jean.png") #141414;
  scroll-padding-top: 16px;
  /* Without this, the body's overflow: hidden would apply to the whole window and stop it scrolling. */
  overflow-y: auto;
}

/* The body is the box everything sits in. */
body {
  max-width: 1200px;
  margin: 10px auto;
  background: var(--page);
  border-radius: 5px;
  border-bottom: 5px solid var(--footer);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  color: var(--text);
  font: 14px/1.7 var(--font);
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 {
  color: var(--heading);
  font-size: 2.6em;
  font-weight: 300;
  letter-spacing: -0.5px;
}

h2 {
  color: var(--heading);
  font-size: 2em;
  font-weight: 300;
  letter-spacing: -0.5px;
}

h2 strong,
h1 strong {
  font-weight: 700;
}

h3,
h4 {
  color: var(--blue-light);
  font-weight: 600;
}

h3 {
  font-size: 1.4em;
}

h4 {
  font-size: 1.15em;
}

p {
  margin: 0 0 1.2em;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.wrap {
  padding: 0 30px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--button);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
}

/* The faded rule SimplePlanes.com puts between sections. */
.rule {
  height: 1px;
  margin: 30px 0;
  border: 0;
  background: linear-gradient(to right, transparent, rgba(64, 64, 64, 0.65), transparent);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand img {
  width: 150px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.site-nav a:hover {
  background: #333;
  color: var(--blue-light);
  text-decoration: none;
}

.site-nav a[aria-current] {
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--button);
  border-radius: 4px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: #fff;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stores a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--button);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.stores a:hover {
  background: var(--button-hover);
  color: #fff;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

/* Home banner */

.banner {
  padding: 0 30px;
}

.banner img {
  width: 100%;
  aspect-ratio: 1438 / 600;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 8px;
}

.intro {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 0 30px;
  text-align: center;
  font-size: 16px;
}

/* Sections */

.section {
  padding: 10px 0 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
}

/* Game tiles, after the craft tiles on simpleplanes.com. */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiles-featured {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tile);
  border: 1px solid var(--tile);
  border-radius: 6px;
}

.tile > img,
.tile .shots img:first-child {
  border-radius: 6px 6px 0 0;
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--well);
}

.tile .capsule {
  aspect-ratio: 616 / 353;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.shots img:first-child {
  grid-column: 1 / -1;
}

.tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px 16px;
}

.tile-body h3 {
  margin-bottom: 2px;
}

.tile-body .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.tile-body p {
  flex: 1;
}

.tile-body .community {
  flex: none;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.more-title {
  margin-top: 40px;
}

/* Inner page headings */

.page-head {
  padding: 10px 0 0;
}

.page-head p {
  max-width: 760px;
  font-size: 15px;
}

.page-head + .section {
  padding-top: 20px;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-grid a {
  display: block;
  height: 100%;
  background: var(--tile);
  border-radius: 6px;
  color: var(--text);
  text-align: center;
  padding-bottom: 14px;
}

.team-grid a:hover {
  background: var(--tile-hover);
  text-decoration: none;
}

.team-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  margin-bottom: 10px;
}

.team-name {
  display: block;
  color: var(--blue-light);
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.3;
}

.team-role {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* Person pages */

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
}

.person-intro {
  display: flex;
  align-items: center;
  gap: 24px;
}

.person-intro img {
  width: 160px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
}

.person-intro h1 {
  margin: 0;
}

.person-role {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.bio > * {
  max-width: 820px;
}

.bio p {
  font-size: 15px;
}

.person-links {
  margin-top: 1.5em;
}

.person-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 30px;
}

.person-pager a {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
}

.person-pager a:last-child {
  text-align: right;
}

.person-pager span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bio pre {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  background: #2d2d2d;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
}

.form {
  padding: 20px;
  background: var(--tile);
  border-radius: 6px;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--well);
  color: #d3d3d3;
  font: inherit;
  font-size: 14px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--button);
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.3);
}

.form-status {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 4px;
  background: #3a2424;
  border: 1px solid #8b2424;
}

.form-status.is-sent {
  background: #0d3350;
  border-color: #0077bb;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-note a {
  color: inherit;
  text-decoration: underline;
}

/* Honeypot for bots; the reCAPTCHA notice under the form stands in for Google's badge. */

.field-trap {
  position: absolute;
  left: -9999px;
}

.grecaptcha-badge {
  visibility: hidden;
}

.aside section + section {
  margin-top: 26px;
}

.aside h2 {
  font-size: 1.4em;
  color: var(--blue-light);
  font-weight: 600;
  letter-spacing: 0;
}

.aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside li {
  margin-bottom: 6px;
}

/* Footer: the black strip along the bottom of the box. */

.site-footer {
  margin-top: 30px;
  background: var(--footer);
  font-size: 12.6px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-footer img {
  width: 90px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.site-footer p {
  margin: 0;
  color: #777;
}

.social {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social li + li::before {
  content: "|";
  color: #555;
  margin: 0 8px;
}

.site-footer .social a,
.aside .social a {
  color: #fff;
}

.aside .social a {
  color: var(--blue);
}

/* Small screens */

@media (max-width: 1220px) {
  body {
    margin: 0 auto;
    border-radius: 0;
  }
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .banner img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .wrap,
  .banner,
  .intro {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    font-size: 2.1em;
  }

  .brand img {
    width: 120px;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .person-intro {
    flex-direction: column;
    align-items: flex-start;
  }
}
