/* Best of NES */

:root {
  --red: #b60000;
  --red-dark: #a31e3d;
  --coral: #e26a50;
  --ink: #0d0c0c;
  --text: #333333;
  --muted: #555555;
  --line: #dcdcdc;
  --line-strong: #cfcece;
  --page: #f6f6f6;
  --sky: #8efeec;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--red); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 14px 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 14px; height: 14px; background: var(--red); border-radius: 2px; flex: none; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { padding: 24px 16px 20px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 4px solid transparent; }
.site-nav a:hover { color: var(--red-dark); }
.site-nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--coral); }
.site-nav a.nav-cta { margin-left: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 3px; border: 0; }
.site-nav a.nav-cta:hover { background: #8f0000; color: #fff; }

/* Hero card */
.hero {
  background: var(--sky) url(../images/level.png) left bottom / auto 100% repeat-x;
  image-rendering: pixelated;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.hero .wrap { width: 100%; }
.hero-card { background: #fff; max-width: 520px; padding: 32px; border-radius: 3px; box-shadow: 0 12px 32px rgba(13, 12, 12, .12); }
.hero-card h1 { margin: 0 0 10px; font-size: clamp(38px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero-card p { margin: 0 0 22px; font-size: 18px; line-height: 1.5; color: #444; }
.hero-card p:last-child { margin-bottom: 0; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 3px; border: 1px solid var(--red); background: var(--red); color: #fff; }
.btn:hover { background: #8f0000; border-color: #8f0000; color: #fff; }
.btn-plain { background: #fff; border-color: var(--line-strong); color: var(--ink); font-weight: 600; }
.btn-plain:hover { background: #fff; border-color: var(--red-dark); color: var(--red-dark); }
.btn-big { font-size: 16px; padding: 16px 22px; font-weight: 700; }

/* Page content */
.content { padding: 56px 0 72px; }
.content h2 { margin: 0 0 20px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 18px; font-size: 19px; line-height: 1.65; }
.prose ul, .prose ol { font-size: 19px; line-height: 1.65; padding-left: 24px; }
.prose a { font-weight: 700; }
.prose .buttons { margin-top: 36px; gap: 12px; }

/*  Footer */
.site-footer { background: var(--ink); color: var(--line-strong); margin-top: auto; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; font-size: 14px; }
.footer-name { font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.social { display: flex; gap: 20px; }
.social a { color: #fff; }
.social a:hover { color: var(--coral); }

/* Media */
@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .brand { padding: 16px 0 4px; }
  .site-nav { justify-content: center; }
  .site-nav a { padding: 14px 12px 12px; }
  .site-nav a.nav-cta { margin: 4px 0 12px; }
  .hero { min-height: 0; padding: 140px 0 24px; background-size: auto 100%; }
  .hero-card { padding: 24px; }
  .content { padding: 40px 0 56px; }
  .prose p { font-size: 17px; }
}

/* Top bar font */
@font-face { font-family: "Teko"; font-weight: 600; src: url(../fonts/teko-latin-600-normal.woff2) format("woff2"); font-display: swap; }

/* Top bar  */
.site-header { background: #333333; border-bottom: 4px solid #fc1d3f; }
.site-header .wrap { min-height: 80px; gap: 0 16px; }
.brand { padding: 12px 0; line-height: 0; }
.brand img { height: 56px; width: auto; display: block; }
.site-nav { gap: 6px; font-family: Teko, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.site-nav a { font-size: 24px; font-weight: 600; line-height: 1; color: #d7e1f4; padding: 26px 14px 20px; border-bottom: 4px solid transparent; margin-bottom: -4px; }
.site-nav a:hover { color: #ffffff; }
.site-nav a[aria-current="page"] { font-weight: 600; color: #ffffff; border-bottom-color: #d7e1f4; }
.site-nav a.nav-cta { font-size: 24px; margin: 0 0 0 10px; padding: 12px 18px 8px; background: #d9102e; color: #ffffff; border-radius: 10px; border: 0; }
.site-nav a.nav-cta:hover { background: #fc1d3f; }

/* Bottom bar */
.site-footer { background: transparent; border-top: 1px solid #dcdcdc; color: #555555; }
.site-footer .wrap { justify-content: flex-end; }
.social a { color: #555555; }
.social a:hover { color: #b60000; }

@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; }
  .site-nav a { font-size: 21px; padding: 12px 10px 10px; }
  .site-nav a.nav-cta { font-size: 21px; margin: 4px 0 14px; }
}
