:root {
  --paper: #f4eadc;
  --paper-deep: #eadcc8;
  --card: #fffaf3;
  --ink: #241c18;
  --muted: #6d5f55;
  --line: rgba(36, 28, 24, 0.12);
  --red: #d6453d;
  --red-deep: #a82f2b;
  --shadow: 0 18px 40px rgba(70, 38, 22, 0.08);
  --radius: 28px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(900px 520px at 12% -10%, #f8d3b4 0%, transparent 60%),
    radial-gradient(700px 480px at 100% 0%, #f3c9c2 0%, transparent 55%),
    var(--paper);
}

body.meadow {
  background:
    radial-gradient(820px 480px at 8% -8%, #d7ebc4 0%, transparent 62%),
    radial-gradient(680px 420px at 100% 0%, #f6d7b8 0%, transparent 55%),
    #f3efe4;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 5;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(214, 69, 61, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.4rem;
  align-items: center;
  padding: 2.4rem 0 0.6rem;
}

.portrait {
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 32%;
  object-fit: cover;
  background: #f6c9a4;
  box-shadow:
    0 0 0 6px rgba(255, 250, 243, 0.8),
    0 0 0 8px rgba(214, 69, 61, 0.35),
    var(--shadow);
}

.kicker {
  margin: 0 0 0.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--red-deep);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
}

.role {
  margin: 0.7rem 0 0;
  font-size: 1.25rem;
  color: var(--ink);
}

.lede {
  margin: 0.8rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

section {
  padding: 2.4rem 0 0.4rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.games {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.2rem;
}

.card h3 {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.85rem;
}

.sl-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 1rem;
  row-gap: 0.85rem;
  align-items: center;
}

.sl-logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
}

.sl-card h3 {
  margin-bottom: 0;
}

.sl-card p,
.sl-card .actions {
  grid-column: 1 / -1;
}

.sl-card .actions {
  margin-top: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.live {
  background: #fde8df;
  color: var(--red-deep);
}

.pill.wip {
  background: #e5f3df;
  color: #24643a;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--red);
  color: #fffaf6;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--red-deep);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--ink);
}

.snaily-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.55rem 1rem;
  height: 100%;
  align-content: start;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease;
}

.snaily-card:hover,
.snaily-card:focus-visible {
  transform: translateY(-3px);
}

.snaily-card img {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  grid-row: span 4;
  background: #3f9a55;
}

.snaily-card h3,
.snaily-card p {
  grid-column: 2;
}

.snaily-card .more {
  grid-column: 2;
  align-self: end;
  font-weight: 600;
  color: #24643a;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.socials a,
.link-row a {
  text-decoration: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  box-shadow: 0 8px 20px rgba(70, 38, 22, 0.04);
  font-weight: 560;
}

.chip:hover,
.chip:focus-visible,
.link-row a:hover,
.link-row a:focus-visible {
  border-color: rgba(214, 69, 61, 0.55);
}

.chip svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.links {
  display: grid;
  gap: 0.55rem;
}

.link-row {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 0.4rem 1rem;
  align-items: baseline;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 1rem;
}

.link-row a {
  font-weight: 600;
}

.link-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem 0 0.4rem;
}

.page-head img {
  width: 140px;
  height: 140px;
  border-radius: 36px;
  background: #3f9a55;
  box-shadow: var(--shadow);
}

.page-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.page-head p {
  margin: 0.7rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.steps article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem 1rem 1.05rem;
}

.steps strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d7e7c4;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

dialog {
  width: min(420px, calc(100vw - 2rem));
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: #111;
  color: white;
}

dialog::backdrop {
  background: rgba(28, 18, 14, 0.72);
}

dialog img {
  width: 100%;
  height: auto;
}

dialog p {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
}

dialog form {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

dialog button {
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(214, 69, 61, 0.55);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero,
  .games,
  .page-head,
  .steps,
  .link-row {
    grid-template-columns: 1fr;
  }

  .snaily-card {
    grid-template-rows: auto auto auto auto;
    height: auto;
    align-items: start;
  }

  .snaily-card img {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .snaily-card .pill {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .snaily-card h3 {
    grid-column: 2;
    grid-row: 2;
  }

  .snaily-card p,
  .snaily-card .more {
    grid-column: 1 / -1;
  }

  .snaily-card .more {
    align-self: start;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .snaily-card {
    transition: none;
  }
}
