/* Sun-Cy Shipyard: one stylesheet for the English and French pages. */

:root {
  /* Dock at night, lit by the game's orange. */
  --night: #10262A;      /* page background */
  --hull: #17343A;       /* fields, panels */
  --steel: #2E5359;      /* lines and borders */
  --foam: #EAF1EF;       /* main text */
  --haze: #A9BFBE;       /* secondary text */
  --sunrise: #F5922A;    /* the sun, buttons */
  --spool: #4CC7BE;      /* keyboard focus */

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --stencil: "Big Shoulders Stencil Display", var(--display);
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --gutter: 16px;
  --measure: 62ch;
  color-scheme: dark;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--foam);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sunrise); }

:focus-visible {
  outline: 3px solid var(--spool);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--sunrise);
  color: var(--night);
  padding: 8px 14px;
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand img { width: 44px; height: 44px; flex: none; }

.site-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.site-nav a { text-decoration: none; color: var(--haze); }
.site-nav a:hover { color: var(--foam); }
.site-nav .lang a {
  color: var(--foam);
  border: 1px solid var(--steel);
  padding: 4px 10px;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .site-nav .nav-section { display: none; }
}

/* Hero: the studio name is the one big thing on the page */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 72px;
}
.hero::before {
  /* the glow of the sun along the horizon */
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at 70% 100%, rgba(245, 146, 42, 0.16), transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: end;
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
}
.hero h1 span { display: block; }
.hero h1 .yard { color: var(--sunrise); }

.lede {
  max-width: 34ch;
  margin: 28px 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--foam);
}

.now-building {
  display: inline-block;
  margin-top: 22px;
  color: var(--haze);
}

.yard-mark {
  justify-self: center;
  width: min(100%, 380px);
}
@media (max-width: 859px) {
  .yard-mark { width: 200px; justify-self: start; order: -1; }
}
.yard-mark img {
  width: 100%;
  height: auto;
  /* one entrance: the emblem drifts in like a ship leaving the dock */
  animation: launch 1.4s cubic-bezier(.2, .7, .2, 1) 0.15s both;
}
@keyframes launch {
  from { opacity: 0; transform: translate(-18px, 10px) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .yard-mark img { animation: none; }
}

/* Sections */
.section { padding-block: 64px; border-top: 1px solid var(--steel); }

.section h2 {
  margin: 0 0 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
}

/* A game, in its berth */
.game {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) {
  .game { grid-template-columns: 96px minmax(0, 1fr); gap: 28px; }
}

.berth {
  font-family: var(--stencil);
  font-weight: 800;
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  line-height: 0.8;
  color: var(--sunrise);
}
.berth-label {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  font-size: 0.875rem;
  color: var(--haze);
}
@media (max-width: 859px) {
  .berth { display: flex; align-items: baseline; gap: 12px; font-size: 3.5rem; }
  .berth-label { margin: 0; }
}

.game-art {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--hull);
}
.game-art .art { width: 100%; aspect-ratio: 3840 / 1240; object-fit: cover; }
@media (max-width: 640px) {
  .game-art .art { aspect-ratio: 16 / 10; }
}
.game-art::after {
  /* darkens the bottom-left corner so the logo reads */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(16, 38, 42, 0.75) 0%, rgba(16, 38, 42, 0) 45%);
  pointer-events: none;
}

.game h3 {
  position: absolute;
  left: 3%;
  bottom: 6%;
  z-index: 1;
  width: clamp(130px, 24%, 300px);
  margin: 0;
}

.game-body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
@media (min-width: 860px) {
  .game-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; }
}

.game-body p { margin: 0 0 24px; max-width: var(--measure); }

.facts { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--steel);
  font-size: 1rem;
}
.facts div:last-child { border-bottom: 1px solid var(--steel); }
.facts dt { color: var(--haze); }
.facts dd { margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--sunrise);
  color: var(--night);
  font: 700 1.05rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #FFA850; color: var(--night); }
.button[disabled] { opacity: 0.6; cursor: progress; }

.steam-soon { color: var(--haze); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; }
}
.contact-intro p { margin: 0 0 16px; max-width: 40ch; }
.contact-intro .direct { color: var(--haze); font-size: 1rem; }

.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 6px; }
.field label { font-size: 1rem; font-weight: 700; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel);
  border-radius: 4px;
  background: var(--hull);
  color: var(--foam);
  font: 400 1.05rem/1.4 var(--body);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--spool);
  outline-offset: 1px;
  border-color: transparent;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--haze) 50%), linear-gradient(135deg, var(--haze) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.honeypot { display: none; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form-status { margin: 0; font-size: 1rem; min-height: 1.6em; }
.form-status.is-ok { color: var(--spool); }
.form-status.is-error { color: #FFB27A; }

.privacy { margin: 0; font-size: 0.9rem; color: var(--haze); max-width: var(--measure); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--steel);
  padding-block: 28px 40px;
  color: var(--haze);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer p { margin: 0; }
