/* =========================================================
   Tampa Softworks — main stylesheet
   Every page loads this one file, so a change here
   updates the whole site.
   ========================================================= */

/* ---------- 0. Bungee font ----------
   The font files live in the fonts/ folder of this site,
   so nothing loads from Google or anywhere else. */
@font-face {
  font-family: "Bungee";
  src: url("../fonts/bungee.woff2") format("woff2"),
       url("../fonts/bungee.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Brand settings ----------
   Change a color or font here and it changes everywhere. */
:root {
  /* Palette */
  --navy:        #0B1F3A;  /* page background */
  --navy-deep:   #081830;  /* footer and art panels, a touch darker */
  --navy-light:  #11294B;  /* cards, a touch lighter */
  --gold:        #FFE29A;  /* pale gold: the name and headings */
  --gold-hover:  #FFD86B;  /* beach gold: hover state */
  --sun:         #FFB238;  /* buttons and highlights (use navy text on it) */
  --water:       #8FD8E3;  /* links */
  --gulf:        #1F6F9F;  /* borders and dividers */
  --shell:       #F3EDE2;  /* body text */
  --shell-dim:   #B9C3CF;  /* quieter text: dates, footer */

  /* Fonts
     The name font is Bungee (set up in section 0 above). It's used for
     the logo, the big home headline, and the footer name.
     To go back to the heavy Helvetica italic, change these four lines to:
       --font-name:    "Helvetica Neue", Helvetica, Arial, sans-serif;
       --name-weight:  900;
       --name-style:   italic;
       --name-spacing: -0.02em;  */
  --font-name:    "Bungee", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --name-weight:  400;
  --name-style:   normal;
  --name-spacing: 0;
  --font-body:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 14px;
  --header-height: 72px;
}

/* ---------- 2. Basics ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--shell);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3 {
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--water);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold-hover);
}

/* Visible outline when moving around with the keyboard */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Readable width for long paragraphs */
.prose {
  max-width: 680px;
}

.lead {
  font-size: 1.25rem;
  color: var(--shell);
  max-width: 560px;
}

/* ---------- 3. Header and navigation ---------- */
/* Stays at the top while you scroll, slightly see-through */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 31, 58, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 111, 159, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

/* The studio name */
.logo {
  font-family: var(--font-name);
  font-weight: var(--name-weight);
  font-style: var(--name-style);
  font-size: 1.35rem;
  letter-spacing: var(--name-spacing);
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--gold-hover);
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  color: var(--water);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--gold-hover);
  background: var(--navy-light);
}

/* The page you're on */
.nav-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--gold);
}

/* Menu button: hidden on big screens, shown on phones */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gulf);
  border-radius: 999px;
  color: var(--gold);
  font: inherit;
  font-size: 0.95rem;
  padding: 6px 16px;
  cursor: pointer;
}

/* ---------- 4. Home page hero ---------- */
.hero {
  padding: 72px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
}

.hero-text {
  padding-bottom: 72px;
}

/* The big headline uses the same font as the name */
.hero h1 {
  font-family: var(--font-name);
  font-weight: var(--name-weight);
  font-style: var(--name-style);
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: var(--name-spacing);
  margin-bottom: 24px;
}

/* The sunset picture */
.sunset {
  display: block;
  width: 100%;
  height: auto;
}

/* The sun rises once when the page loads */
.sunset .sun {
  animation: sunrise 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sunrise {
  from { transform: translateY(150px); }
  to   { transform: translateY(0); }
}

/* Visitors who turn off animations in their settings won't see it move */
@media (prefers-reduced-motion: reduce) {
  .sunset .sun { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 5. Page sections ---------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--gulf);
}

.section-tight {
  padding: 56px 0;
}

.page-title {
  padding: 80px 0 32px;
}

.page-title h1 {
  margin: 0;
}

.page-title + .section {
  border-top: none;
  padding-top: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
}

/* ---------- 6. Buttons ---------- */
.button {
  display: inline-block;
  background: var(--sun);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--sun);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy);
}

/* Outline version for secondary actions */
.button-outline {
  background: transparent;
  color: var(--water);
  border-color: var(--gulf);
}

.button-outline:hover {
  background: var(--navy-light);
  border-color: var(--water);
  color: var(--gold-hover);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- 7. Feature block (game in development) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* Placeholder box where game art will go */
.art-slot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      135deg,
      var(--navy-deep) 0 14px,
      var(--navy) 14px 28px
    );
  border: 1px solid var(--gulf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--water);
  font-size: 0.95rem;
}

.art-slot span {
  background: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gulf);
}

/* Small label like "In development" */
.badge {
  display: inline-block;
  background: var(--sun);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- 8. Studio facts (home page) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--gulf);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts div {
  padding: 28px;
}

.facts div + div {
  border-left: 1px solid var(--gulf);
}

.facts dt {
  color: var(--shell-dim);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- 9. Game cards (Games page) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--navy-light);
  border: 1px solid var(--gulf);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--water);
}

.card .art-slot {
  border: none;
  border-bottom: 1px solid var(--gulf);
  border-radius: 0;
}

.card-body {
  padding: 24px 26px 28px;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 10. News posts (a timeline) ---------- */
.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid var(--gulf);
  margin-left: 6px;
}

.post {
  position: relative;
  padding-bottom: 48px;
}

.post:last-child {
  padding-bottom: 0;
}

/* The dot on the line */
.post::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--sun);
}

.post-date {
  display: block;
  color: var(--sun);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.post h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Short news list on the home page */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  border-top: 1px solid var(--gulf);
}

.news-list li:last-child {
  border-bottom: 1px solid var(--gulf);
}

.news-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.news-list a:hover {
  color: var(--gold-hover);
}

.news-list time {
  color: var(--shell-dim);
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- 11. Contact list ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--gulf);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--gulf);
}

.contact-list .label {
  color: var(--shell-dim);
  min-width: 100px;
}

.contact-list a {
  font-size: 1.15rem;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--gulf);
  padding: 48px 0 36px;
  font-size: 0.95rem;
  color: var(--shell-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.footer-name {
  font-family: var(--font-name);
  font-weight: var(--name-weight);
  font-style: var(--name-style);
  font-size: 1.6rem;
  letter-spacing: var(--name-spacing);
  color: var(--gold);
  margin: 0 0 8px;
}

.site-footer p {
  margin: 0;
}

/* ---------- 13. Tablets ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    padding-bottom: 8px;
  }

  .sunset {
    max-width: 560px;
    margin: 0 auto;
  }

  .feature {
    gap: 32px;
  }
}

/* ---------- 14. Phones ---------- */
@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: block;
  }

  /* Menu is hidden until the button is pressed */
  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 16px;
  }

  .site-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 4px;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 64px 0;
  }

  .page-title {
    padding: 56px 0 24px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts div + div {
    border-left: none;
    border-top: 1px solid var(--gulf);
  }

  .news-list a {
    flex-direction: column;
    gap: 4px;
  }
}
