:root {
  --paper: #f8f3ea;
  --card: #fffdf8;
  --ink: #2a2a2a;
  --muted: #6b6760;
  --line: #e4dccd;
  --gray: #8d8b86;
  --accent: #2a2a2a;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0 auto;
  max-width: 920px;
  padding: 0 24px;
  color: var(--ink);
  font: 17px/1.65 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* Masthead */
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0 0;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  text-decoration: none;
  padding-bottom: 14px;
}

.brand-duck { height: 96px; width: auto; display: block; }

.brand-script { height: 92px; width: auto; display: block; }

.brand-word {
  font: 800 30px/0.95 var(--head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Tabs */
.tabs { display: flex; gap: 4px; }

.tabs a {
  font: 600 15px var(--head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 18px 12px;
  border-radius: 8px 8px 0 0;
  border: 2px solid transparent;
  border-bottom: 0;
  margin-bottom: -2px;
}

.tabs a:hover { color: var(--ink); }

.tabs a[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
  padding-bottom: 14px;
}

main { flex: 1; padding: 40px 0 56px; }

h2 {
  font: 800 28px/1.15 var(--head);
  margin: 0 0 12px;
}

/* Games */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}

.game-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #120f2b;
}

.carousel:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.carousel-track {
  display: flex;
  aspect-ratio: 16 / 9;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--ink);
  font: 700 26px/1 var(--head);
  cursor: pointer;
  transition: opacity 0.2s;
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  translate: -50% 0;
  display: flex;
  padding: 0 6px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.35);
}

.dot {
  padding: 7px 4px;
  border: 0;
  background: none;
  cursor: pointer;
}

.dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.5);
  transition: width 0.25s, background 0.25s;
}

.dot:hover::before { background: rgb(255 255 255 / 0.8); }
.dot[aria-current="true"]::before { width: 20px; background: #fff; }

/* Mouse users see the arrows when they point at the carousel */
@media (hover: hover) and (pointer: fine) {
  .carousel-btn { opacity: 0; }
  .carousel:hover .carousel-btn,
  .carousel:focus-within .carousel-btn { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dot::before, .carousel-btn { transition: none; }
}

.game-body p { margin: 0 0 12px; }

.status {
  font: 600 12px var(--head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px !important;
}

.meta { color: var(--muted); font-size: 15px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.btn {
  font: 600 14px var(--head);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }

/* Bio */
.prose { max-width: 640px; }
.prose p { margin: 0 0 18px; }
.prose .kicker {
  font: 600 13px var(--head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.prose a { text-decoration-color: var(--gray); text-underline-offset: 3px; }

/* Contact */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}

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

.contact-card .label {
  font: 600 12px var(--head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-card .value { font: 600 18px var(--head); overflow-wrap: anywhere; }

.also { color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 680px) {
  .masthead { padding-top: 24px; }
  .brand-duck { height: 72px; }
  .brand-word { font-size: 24px; }
  .brand-script { height: 70px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: 10px 6px 12px; }
  .game { grid-template-columns: 1fr; }
}
