/* Puddle Club Group — site styles */

@font-face {
  font-family: "Bagel Fat One";
  src: url("/fonts/bagel-fat-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #e3eef7;
  --sky-deep: #c3d8ea;
  --water: #8fb0d2;
  --ink: #182638;
  --ink-soft: #3d4f66;
  --butter: #f6c945;
  --butter-deep: #e0ac17;
  --meadow: #d6eac2;
  --meadow-deep: #5f8f3c;
  --navy: #23395b;
  --white: #ffffff;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem; /* 18px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--butter-deep);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: currentColor;
}

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

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

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

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-family: var(--display);
  font-size: 1.3125rem; /* 21px */
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand svg {
  width: 30px;
  height: 30px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--butter-deep);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.3em;
}

/* Hero */

.hero {
  padding: clamp(8px, 3vw, 32px) 0 clamp(8px, 2vw, 16px);
}

.hero h1 {
  margin: 0;
}

.puddle-art {
  width: 100%;
  height: auto;
  overflow: visible;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wordmark {
  font-family: var(--display);
}

.hero-copy {
  max-width: 34rem;
  margin: clamp(4px, 1vw, 12px) auto 0;
  text-align: center;
}
.hero-copy .lede {
  font-size: clamp(1.3125rem, 2.4vw, 1.5rem); /* 21–24px */
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero-copy p {
  margin: 0;
  color: var(--ink-soft);
}

/* Sections */

.section {
  padding: clamp(48px, 8vw, 96px) 0 0;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3rem); /* 36–48px */
  line-height: 1.05;
  margin: 0 0 clamp(20px, 3vw, 32px);
}

/* Games */

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.game {
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-art {
  aspect-ratio: 16 / 10;
  width: 100%;
}
.game-art svg {
  width: 100%;
  height: 100%;
}
.game-body {
  padding: clamp(20px, 3vw, 32px);
  padding-top: clamp(14px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.game h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem); /* 28–36px */
  line-height: 1.1;
  margin: 0;
}
.game p {
  margin: 0;
  max-width: 34em;
}
.game .status {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.game .status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.game--farmstand {
  background: var(--meadow);
  color: var(--ink);
}
.game--farmstand .status {
  color: var(--meadow-deep);
}

.game--bigtwo {
  background: var(--navy);
  color: var(--white);
}
.game--bigtwo .status {
  color: var(--butter);
}

.more {
  margin: clamp(18px, 3vw, 28px) 0 0;
  color: var(--ink-soft);
}

/* Company */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.org {
  margin: 0;
  display: grid;
  gap: 22px;
}
.org div {
  border-left: 4px solid var(--butter);
  padding-left: 18px;
}
.org dt {
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.3;
}
.org dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.contact p {
  margin: 0 0 20px;
  max-width: 30em;
}

.button {
  display: inline-block;
  background: var(--butter);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
  background: #ffd659;
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

/* Footer */

.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  border-top: 2px solid var(--sky-deep);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.site-footer p {
  margin: 0;
  max-width: 40em;
}
.site-footer ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

/* Legal and support pages */

.page {
  padding: clamp(24px, 5vw, 56px) 0 0;
}
.page .wrap {
  max-width: calc(44rem + 2 * var(--gutter));
}
.page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem); /* 40–60px */
  line-height: 1.05;
  margin: 0 0 12px;
}
.page .updated {
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.page h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 40px 0 10px;
}
.page h3 {
  font-size: 1.125rem;
  margin: 24px 0 6px;
}
.page p,
.page li {
  max-width: 40em;
}
.page ul {
  padding-left: 1.2em;
}
.page li + li {
  margin-top: 6px;
}
.callout {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 26px;
  margin: 24px 0;
}
.callout p {
  margin: 0;
}
.callout p + p {
  margin-top: 10px;
}

/* Not found */

.not-found {
  text-align: center;
  padding: clamp(40px, 8vw, 96px) 0 0;
}
.not-found svg {
  width: min(420px, 80%);
  margin: 0 auto 24px;
}
.not-found h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0 0 12px;
}
.not-found p {
  margin: 0 0 28px;
}

/* Small screens */

@media (max-width: 760px) {
  .games,
  .company {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
