/* Happy Recess Game Studio – happyrecess.com
   Palette: Parchment #FFF2E3, Green #49CF78, Blue #2667BE, Yellow #FFD47F, Maroon #521057 */

:root {
  --parchment: #FFF2E3;
  --green: #49CF78;
  --blue: #2667BE;
  --yellow: #FFD47F;
  --maroon: #521057;
  --white: #ffffff;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--maroon);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
}

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

a { color: var(--blue); }
a:hover { color: var(--maroon); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--maroon);
  color: var(--parchment);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: 64px; line-height: 1.08; }
h2 { font-size: 40px; line-height: 1.15; }
h3 { font-size: 26px; line-height: 1.2; }
p { margin: 0; }

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--maroon);
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
}
.brand:hover { color: var(--maroon); }
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  border: 4px solid var(--green);
  flex: none;
}
.brand .sub { font-weight: 600; }

.site-nav a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  padding: 12px 6px;
  display: inline-block;
  min-height: 44px;
}
.site-nav a:hover { text-decoration: underline; color: var(--blue); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 28px;
  border-radius: 10px;
  min-height: 44px;
}
.btn:hover { background: var(--maroon); color: #fff; }

/* Hero */
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.hero-text .lead { font-size: 24px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-actions .text-link { font-weight: 700; font-size: 20px; padding: 12px 4px; }
.hero-image {
  flex: 1 1 420px;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--maroon);
  display: block;
}

/* Bands */
.band-yellow { background: var(--yellow); }
.band-white { background: var(--white); border-top: 3px solid var(--green); border-bottom: 3px solid var(--green); }
.band-center { text-align: center; }
.band-yellow .wrap-narrow { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.band-yellow p { font-size: 24px; line-height: 1.55; }
.band-white .wrap-narrow { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.band-white p { font-size: 21px; }

/* What we make */
.make { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.make-intro { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.make-intro p { font-size: 21px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--maroon);
  display: flex;
  flex-direction: column;
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--maroon);
}
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body p { font-size: 18px; }

/* Contact */
.contact { padding-top: 80px; padding-bottom: 80px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.contact p { font-size: 21px; }

/* About */
.page-title { padding-top: 40px; padding-bottom: 24px; }
.page-title h1 { font-size: 56px; line-height: 1.1; }
.founder .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 72px;
}
.founder-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.founder-text h2 { font-size: 36px; }
.founder-text p { font-size: 21px; }
.founder-image {
  flex: 1 1 420px;
  min-width: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--maroon);
  display: block;
}
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.mv > div { display: flex; flex-direction: column; gap: 12px; }
.mv h2 { font-size: 34px; }
.mv p { font-size: 20px; }
.ahead { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.ahead h2 { font-size: 34px; }
.ahead p { font-size: 21px; }
.ahead .btn { align-self: flex-start; margin-top: 8px; }

/* Legal pages */
.legal { padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 20px; }
.legal h2 { font-size: 28px; margin-top: 12px; }
.legal p, .legal li { font-size: 19px; }
.legal ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal .updated { font-size: 17px; }

/* 404 */
.notfound { padding-top: 80px; padding-bottom: 120px; text-align: center; display: flex; flex-direction: column; gap: 20px; align-items: center; }

/* Footer */
.site-footer { background: var(--maroon); color: var(--parchment); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 17px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: var(--yellow); padding: 10px 0; display: inline-block; }
.site-footer a:hover { color: #fff; }

/* Tablet and phone */
@media (max-width: 900px) {
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .page-title h1 { font-size: 44px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .mv { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  body { font-size: 18px; }
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 40px; }
  .hero-text .lead, .band-yellow p { font-size: 21px; }
  .brand { font-size: 22px; }
  .hero .wrap { gap: 32px; padding-bottom: 48px; }
}
