/* 1939 Games — static rebuild of the 2017 Semplice/WordPress site.
   No build step: plain CSS, custom properties for the palette. */

:root {
  --ink: #221f1f;
  --ink-soft: #636161;
  --ink-mute: #9a9898;
  --paper: #f5f5f5;
  --white: #ffffff;
  --cream: #f0ece6;
  --night: #111111;
  --rule: #e4e4e4;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;

  --container: 1010px;
  --gutter: 30px;
  --header-h: 110px;
  --header-h-small: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h-small); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.78 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .6em; line-height: 1.33; }
h1, h2 { font-size: 30px; }
h3, .h3 { font-size: 30px; }
p { margin: 0 0 1.4em; }
.page-white { background: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px;
  font: 500 14px var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 700px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06); }

.site-header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter);
  transition: height .3s ease;
}
.site-header.is-scrolled .site-header__inner { height: var(--header-h-small); }

.site-logo { display: block; line-height: 0; }
.site-logo img { height: 80px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .site-logo img { height: 50px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.site-nav--left ul { justify-content: flex-end; }
.site-nav--right ul { justify-content: flex-start; }
.site-nav a, .mobile-menu a {
  font: 500 14px/1 var(--font-display);
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: #b9b7b7; }

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: currentColor;
  margin: 0 auto; position: relative; transition: transform .25s ease, background .25s ease;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h-small) 0 0 0;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-menu li + li { margin-top: 28px; }
.mobile-menu a { font-size: 26px; color: var(--ink); }
.mobile-menu a[aria-current="page"] { color: var(--ink-mute); }

@media (max-width: 899px) {
  :root { --header-h: var(--header-h-small); }
  .site-header__inner { grid-template-columns: 44px 1fr 44px; column-gap: 0; padding: 0 16px; }
  .site-nav { display: none; }
  .site-logo { grid-column: 2; justify-self: center; }
  .site-logo img, .site-header.is-scrolled .site-logo img { height: 50px; }
  .menu-toggle { display: block; grid-column: 3; }
  /* Without JavaScript there is no toggle, so show the links in a row instead. */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header__inner { height: auto; grid-template-columns: 1fr; row-gap: 10px; padding: 12px 16px; }
  html:not(.js) .site-nav { display: block; grid-column: 1; }
  html:not(.js) .site-nav ul { justify-content: center; gap: 20px; }
  html:not(.js) .site-logo { grid-column: 1; grid-row: 1; }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  border: 4px solid currentColor;
  padding: 10px 28px;
  font: 500 17px/1.6 var(--font-display);
  letter-spacing: .7px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--light { color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--thin { border-width: 2px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 36px; margin: 36px 0 44px; }

.display-link {
  font: 400 16px/1.8 var(--font-display);
  color: inherit;
}
.display-link a { text-underline-offset: 3px; }

/* ---------- Cover (hero) ---------- */

.cover {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  padding: 100px var(--gutter) 140px;
  background: #2a2724 center / cover no-repeat;
  color: #ededed;
  overflow: hidden;
  isolation: isolate;
}
.cover::after { /* tint so the white logo stays legible over any frame */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(17,17,17,var(--cover-tint, .2));
}
.cover__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cover__inner { text-align: center; }
.cover__title { margin: 0; line-height: 0; }
.cover__logo { width: min(514px, 78vw); margin: 0 auto; }
.cover__logo--kards { width: min(394px, 72vw); }
.cover__tagline {
  margin: 36px 0 0;
  font: 300 20px/1.5 var(--font-display);
  letter-spacing: 3px;
  color: #ededed;
}
.cover__more {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 60px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer; color: #ededed;
  animation: nudge 2.6s ease-in-out infinite;
}
.cover__more svg { width: 53px; height: 20px; fill: currentColor; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Sections ---------- */

.section { padding: 150px 0 100px; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--tight { padding: 50px 0; }

.lede {
  max-width: 640px; margin: 0 auto;
  font: 300 20px/1.6 var(--font-display);
  text-align: center;
}
.lede a { text-underline-offset: 3px; }

.band {
  position: relative;
  padding: 170px 0 150px;
  background: var(--ink) center / cover no-repeat;
  color: var(--cream);
  text-align: center;
  isolation: isolate;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(17,17,17,.35), rgba(17,17,17,.6) 55%, rgba(17,17,17,.75));
}
.band__logo { width: min(394px, 72vw); margin: 0 auto 30px; }
.band p { max-width: 760px; margin-left: auto; margin-right: auto; }
.band a:not(.btn) { color: inherit; }

/* About */
.company { max-width: 640px; margin: 0 auto; }
.gallery { display: grid; gap: 60px; padding-bottom: 150px; }
.gallery__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.gallery__col { display: grid; gap: 60px; }
@media (max-width: 699px) {
  .gallery, .gallery__pair, .gallery__col { gap: 16px; }
  .gallery { padding-bottom: 80px; }
}

/* KARDS page (dark) */
.page-dark { background: var(--ink); color: #f5f5f5; }
.page-dark .site-header { background: var(--paper); }
.kards-intro { padding: 0 0 100px; text-align: center; }
.kards-intro h1 { font-size: 30px; line-height: 1.33; margin-bottom: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quotes { padding-top: 100px; padding-bottom: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px 80px; align-items: center; }
.quote { margin: 0; }
.quote p { font: 500 28px/1.43 var(--font-display); margin: 0 0 18px; }
.quote footer { font: 500 22px/1.27 var(--font-display); color: #cfcbc5; }
.quote--right { text-align: right; grid-column: 2; }
.quotes__badge { justify-self: center; }
.quotes__badge img { width: 303px; }
.quotes__cta { grid-column: 1 / -1; justify-self: center; }
.quotes__cta img { width: 200px; }

/* Contact */
.contact { padding: 100px 0 120px; }
.contact h1 { font-size: 30px; text-align: center; margin-bottom: 50px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.form-field { margin: 0 0 22px; }
.form-field label { display: block; margin-bottom: 4px; font-size: 14px; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid #eaeaea; border-radius: 0;
  background: var(--white); color: #000;
  font: 400 14px/1.5 var(--font-body);
  padding: 0 10px;
}
.form-field input { height: 40px; }
.form-field textarea { padding: 10px; min-height: 160px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--block { display: block; width: 100%; background: var(--white); font-size: 20px; border-color: #000; color: #000; }
.btn--block:hover { background: #000; color: var(--white); }
.form-status { margin: 16px 0 0; min-height: 1.78em; font-size: 14px; }
.form-status.is-error { color: #a3271f; }

/* Career */
.career-intro { padding: 70px 0; }
.career-intro h1 { font-size: 30px; text-align: center; margin-bottom: 40px; }
.job-list { list-style: none; margin: 0; padding: 0; }
.job-list a { font: 500 20px/1.5 var(--font-display); color: var(--ink); text-decoration: none; }
.job-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card { background: var(--white); padding: 34px 30px 40px; }
.card h2 { font-size: 20px; }
.note { font: italic 15px/1.6 Georgia, "Times New Roman", serif; }

/* Job posting */
.job { padding: 50px 0 100px; }
.job h1 { font-size: 30px; margin-bottom: 36px; }
.job h2 { font: 700 24px/1.4 var(--font-body); margin: 40px 0 14px; }
.job h3 { font: 700 17px/1.5 var(--font-body); margin: 22px 0 8px; }
.job ul { padding-left: 22px; margin: 0 0 1.4em; }
.job li + li { margin-top: 4px; }

/* ---------- News (generated by tools/import_wordpress.py) ---------- */

.news { padding-top: 80px; padding-bottom: 120px; }
.post { padding: 0 0 80px; margin: 0 0 80px; border-bottom: 1px solid var(--rule); }
.post:last-of-type { border-bottom: 0; margin-bottom: 40px; }
.post__image { display: block; max-width: 800px; margin: 0 auto 44px; }
.post__image img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.post--single .post__image img { aspect-ratio: auto; }
.post__body { max-width: 680px; margin: 0 auto; }
.post__date { font: 400 13px/1.4 var(--font-display); color: var(--ink-mute); text-decoration: none; letter-spacing: .02em; }
.post__title { font-size: 35px; line-height: 1.37; margin: 10px 0 26px; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.read-more {
  display: inline-block; margin-top: 6px;
  font: 400 14px/1.6 var(--font-body); letter-spacing: 1px; text-transform: uppercase;
  color: #acacac; text-decoration: none;
}
.read-more:hover { color: var(--ink); }
.pager { display: flex; justify-content: space-between; max-width: 680px; margin: 0 auto; font-size: 16px; }
.pager a { color: var(--ink-soft); text-decoration: none; }
.pager a:hover { color: var(--ink); }
.back-link { display: inline-block; margin-top: 30px; font: 500 15px var(--font-display); letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; }

/* WordPress block markup that appears inside imported post bodies */
.prose { font-size: 15px; line-height: 1.75; color: #3a3737; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .6em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .6em; color: var(--ink); }
.prose h4 { font-size: 20px; }
.prose h5 { font: 700 17px/1.6 var(--font-body); color: var(--ink); }
.prose h6 { font: 700 15px/1.6 var(--font-body); color: var(--ink); }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: 13px; color: var(--ink-mute); text-align: center; margin-top: 8px; }
.prose blockquote, .prose .wp-block-quote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-style: italic; }
.prose .wp-block-spacer { height: auto !important; min-height: 24px; max-height: 60px; }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .wp-block-buttons { margin: 2em 0; }
.prose .wp-block-button__link {
  display: inline-block; padding: 10px 26px; border: 2px solid #cfcfcf;
  font: 400 16px/1.6 var(--font-body); letter-spacing: 1px; text-transform: uppercase;
  color: #9a9a9a; text-decoration: none; background: none; border-radius: 0;
}
.prose .wp-block-button__link:hover { border-color: var(--ink); color: var(--ink); }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 1.6em 0; }
.prose .wp-block-file__button {
  display: inline-block; padding: 6px 16px; background: var(--ink); color: var(--white);
  font: 500 14px/1.6 var(--font-display); letter-spacing: .05em; text-decoration: none; border-radius: 0;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--night); padding: 50px 0; text-align: center; color: #9a9898; }
.social { list-style: none; margin: 0 0 22px; padding: 0; display: flex; justify-content: center; gap: 11px; }
.social a { display: block; opacity: .95; transition: opacity .2s ease; }
.social a:hover { opacity: .7; }
.social img { width: 23px; height: 23px; }
.copyright { margin: 0; font-size: 13px; line-height: 1.9; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 56px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: #b3b3b3; mix-blend-mode: difference;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 53px; height: 20px; fill: currentColor; transform: rotate(180deg); }

/* ---------- Reveal-on-scroll (only when JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cover__more { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Small screens ---------- */

@media (max-width: 899px) {
  .contact__grid { gap: 50px; }
  .quotes { gap: 48px 40px; }
}

@media (max-width: 699px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  h3, .kards-intro h1, .contact h1, .career-intro h1, .job h1 { font-size: 26px; }
  .section { padding: 80px 0 64px; }
  .band { padding: 110px 0 90px; }
  .cover { padding: 70px 16px 110px; }
  .cover__tagline { font-size: 17px; letter-spacing: 2px; }
  .lede { font-size: 18px; }
  .kards-intro { padding-bottom: 64px; }
  .quotes { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; text-align: center; }
  /* The original copy uses hard line breaks for desktop line lengths; let it reflow on phones. */
  .section p br, .band p br, .kards-intro p br, .career-intro p br, .card p br, .quote p br { display: none; }
  .quote--right { grid-column: auto; text-align: center; }
  .quote p { font-size: 23px; }
  .quote footer { font-size: 18px; }
  .contact { padding: 64px 0 80px; }
  .contact__grid { grid-template-columns: 1fr; }
  .btn-row { gap: 16px; }
  .btn { padding: 9px 22px; font-size: 16px; }
  .news { padding-top: 48px; padding-bottom: 80px; }
  .post { padding-bottom: 56px; margin-bottom: 56px; }
  .post__image { margin-bottom: 28px; }
  .post__title { font-size: 28px; }
  .to-top { right: 8px; bottom: 12px; }
}
