/* Oink & Mortar's site: the game's sky, its paper cards and its brick, in one sheet. */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fredoka.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --sky: #8fbfe6;
  --sky-deep: #4791d9;
  --night: #1d2a4d;
  --paper: #f6ecd6;
  --paper-edge: #e3d2ad;
  --ink: #2c2433;
  --ink-soft: #5b5163;
  --brick: #c4452f;
  --brick-dark: #8f2e1f;
  --straw: #f2c94c;
  --grass: #4f8a3a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(29, 42, 77, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-deep) 0, var(--sky) 520px, #cfe4f4 100%);
  min-height: 100vh;
}

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

a { color: var(--brick-dark); text-underline-offset: 3px; }
a:hover { color: var(--brick); }
a:focus-visible, .pill:focus-visible {
  outline: 3px solid var(--straw);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { left: 12px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header and footer */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem;
  text-shadow: 0 2px 0 rgba(29, 42, 77, 0.35);
}
.wordmark img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.22); color: #fff; }

.site-footer {
  margin-top: 56px;
  padding: 28px 0 36px;
  background: var(--night);
  color: #d9def0;
  font-size: 0.95rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #fff; }
.footer-nav { display: flex; gap: 16px; align-items: flex-start; }

/* Home */
.hero { padding: 8px 0 0; }
.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.7);
}
.hero-art img { width: 100%; }
.hero-text { text-align: center; padding: 28px 0 8px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 3px 0 var(--brick-dark), 0 6px 18px rgba(29, 42, 77, 0.35);
}
.tagline { margin: 10px auto 0; font-size: 1.3rem; font-weight: 600; color: var(--night); text-wrap: balance; }

.pill {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--straw);
  color: var(--ink);
  border: 3px dashed rgba(44, 36, 51, 0.35);
}

.card {
  background: var(--paper);
  border: 3px solid var(--paper-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}

.intro { margin-top: 36px; }
.intro p { margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.features h2 { margin: 0 0 6px; font-size: 1.3rem; color: var(--brick-dark); }
.features p { margin: 0; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.shots figure { margin: 0; }
.shots img {
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}
.shots figcaption { text-align: center; margin-top: 8px; font-weight: 600; color: var(--night); }

.facts { margin-top: 36px; }
.facts h2 { margin: 0 0 10px; font-size: 1.4rem; }
.facts ul { margin: 0; padding-left: 1.2em; }
.facts li { margin-bottom: 6px; }

/* Legal pages */
.legal article { padding: 30px 32px; }
.legal h1 { margin: 0 0 4px; font-size: 2.2rem; line-height: 1.2; }
.legal h2 { margin: 28px 0 8px; font-size: 1.3rem; color: var(--brick-dark); }
.legal p { margin: 0 0 12px; }
.legal .meta { color: var(--ink-soft); font-size: 0.95rem; }
.legal .summary {
  background: #fff8e6;
  border-left: 6px solid var(--straw);
  padding: 14px 18px;
  border-radius: 12px;
}
.legal ul { padding-left: 1.3em; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }

.missing { text-align: center; padding: 60px 0 20px; }
.missing h1 { color: #fff; font-size: 2.6rem; margin: 0; text-shadow: 0 3px 0 var(--brick-dark); }
.missing p { font-size: 1.2rem; color: var(--night); }

@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .legal article { padding: 22px 18px; }
  .card { padding: 20px 18px; }
  .site-nav a { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
