@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Permanent+Marker&family=Roboto+Mono:wght@400;600;700&display=swap');


/* =========================================================
   COLOR VARIABLES
   ========================================================= */

:root {
  /* Text and borders */
  --ink: #161616;
  --text: #161616;
  --border: #161616;

  /* Page and card backgrounds */
  --page-bg: #f2ead8;
  --paper: #f2ead8;
  --paper-dark: #d9ceb7;

  /* Graffiti colors */
  --lime: #b9ff39;
  --orange: #ff7a2f;
  --yellow: #ffd83d;
  --cyan: #42e8e0;
  --pink: #ff4f9a;
  --red: #ff4c4c;

  /* Shadows */
  --shadow: 7px 7px 0 var(--border);
}


/* =========================================================
   DARK MODE
   ========================================================= */

/*
   IMPORTANT:

   In dark mode, the OUTSIDE of the website becomes dark,
   but the cards/panels stay light gray.

   This lets us use BLACK text and BLACK borders while
   keeping everything easy to read.
*/

body.dark-mode {

  /* Dark page background */
  --page-bg: #181818;

  /* Light gray cards and panels */
  --paper: #d8d8d8;
  --paper-dark: #bdbdbd;

  /* BLACK text */
  --text: #111111;

  /* BLACK borders */
  --border: #111111;

  /* Keep ink black too */
  --ink: #111111;

  /* Slightly softer graffiti colors */
  --lime: #a9df3a;
  --orange: #e86f2d;
  --yellow: #e2c23b;
  --cyan: #42c9c3;
  --pink: #dc4d8b;
  --red: #df4c4c;

  /* Dark shadows */
  --shadow: 7px 7px 0 #000000;
}


/* =========================================================
   BASIC PAGE SETTINGS
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  /* This controls normal text */
  color: var(--text);

  /*
     IMPORTANT:
     This uses --page-bg instead of --paper.

     That's what allows dark mode to have a dark
     outside background while keeping the cards light.
  */
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(0,0,0,.09) 0 1px,
      transparent 2px
    ) 0 0/13px 13px,

    radial-gradient(
      circle at 80% 70%,
      rgba(0,0,0,.06) 0 1px,
      transparent 2px
    ) 0 0/17px 17px,

    var(--page-bg);

  font-family: "Roboto Mono", monospace;
  overflow-x: hidden;
}


/*
   Make the background dots softer in dark mode.
*/

body.dark-mode {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255,255,255,.04) 0 1px,
      transparent 2px
    ) 0 0/13px 13px,

    radial-gradient(
      circle at 80% 70%,
      rgba(255,255,255,.03) 0 1px,
      transparent 2px
    ) 0 0/17px 17px,

    var(--page-bg);
}


a {
  color: inherit;
}


/* =========================================================
   MAIN SITE CONTAINER
   ========================================================= */

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
  position: relative;
}


/* =========================================================
   BACKGROUND PAINT
   ========================================================= */

.paint {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.1);
}

.paint.one {
  width: 250px;
  height: 170px;
  left: -100px;
  top: 80px;

  background:
    radial-gradient(
      ellipse,
      var(--pink) 0 35%,
      transparent 36%
    );

  opacity: .34;
  transform: rotate(-18deg);
}

.paint.two {
  width: 220px;
  height: 220px;
  right: -110px;
  top: 38%;

  background:
    radial-gradient(
      ellipse,
      var(--cyan) 0 33%,
      transparent 34%
    );

  opacity: .28;
  transform: rotate(25deg);
}

.paint.three {
  width: 240px;
  height: 150px;
  left: -100px;
  bottom: 8%;

  background:
    radial-gradient(
      ellipse,
      var(--yellow) 0 35%,
      transparent 36%
    );

  opacity: .26;
  transform: rotate(12deg);
}


/* =========================================================
   HEADER
   ========================================================= */

header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 28px;
}


.tag {
  display: inline-block;

  padding: 5px 13px;

  background: var(--ink);
  color: var(--lime);

  font: 600 12px "Roboto Mono", monospace;

  letter-spacing: 2px;

  transform: rotate(-2deg);

  box-shadow: 4px 4px 0 var(--orange);
}


.logo {
  margin: 8px 0 0;

  font:
    78px/0.9
    "Bangers",
    Impact,
    sans-serif;

  letter-spacing: 2px;

  text-shadow:
    5px 5px 0 var(--pink),
    9px 9px 0 var(--ink);

  transform: rotate(-2deg);
}


.logo small {
  display: block;

  margin-top: 13px;

  font:
    14px
    "Permanent Marker",
    cursive;

  letter-spacing: 2px;

  text-shadow: none;

  transform: rotate(2deg);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  margin: 20px auto 0;
}


.nav a {
  text-decoration: none;

  background: var(--paper);

  border: 3px solid var(--border);

  color: var(--text);

  padding: 8px 15px;

  font-weight: 700;

  box-shadow: 4px 4px 0 var(--border);

  transition: .15s ease;
}


.nav a:hover {
  transform:
    translate(3px, 3px)
    rotate(-2deg);

  box-shadow:
    1px 1px 0 var(--border);

  background: var(--yellow);
}


/* =========================================================
   DARK MODE BUTTON
   ========================================================= */

#darkModeToggle {
  background: var(--paper);

  color: var(--text);

  border: 3px solid var(--border);

  padding: 8px 15px;

  font-family: "Roboto Mono", monospace;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  box-shadow: 4px 4px 0 var(--border);

  transition: .15s ease;
}


#darkModeToggle:hover {
  background: var(--yellow);

  color: #161616;

  transform:
    translate(3px, 3px)
    rotate(-2deg);

  box-shadow:
    1px 1px 0 var(--border);
}


/* =========================================================
   GENERAL PANELS
   ========================================================= */

.panel {
  position: relative;
  z-index: 1;

  /*
     Use --paper so that these become light gray
     during dark mode.
  */
  background: var(--paper);

  border: 4px solid var(--border);

  padding: 28px;

  box-shadow: var(--shadow);

  margin: 28px 0;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.intro {
  display: grid;

  grid-template-columns:
    1.15fr
    .85fr;

  gap: 28px;

  align-items: center;
}


.intro h1 {
  font:
    50px/0.95
    "Bangers",
    Impact,
    sans-serif;

  margin: 0 0 12px;

  transform: rotate(-1deg);
}


.intro h1 span {
  color: var(--orange);
}


.intro p {
  line-height: 1.8;

  max-width: 650px;
}


.note {
  display: inline-block;

  background: var(--lime);

  padding: 8px 12px;

  border: 3px solid var(--border);

  color: var(--text);

  font-weight: 700;

  transform: rotate(-3deg);

  margin-top: 5px;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-image {
  min-height: 300px;

  display: grid;

  place-items: center;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.3),
      transparent
    ),
    var(--cyan);

  border: 4px solid var(--border);

  padding: 14px;

  transform: rotate(2deg);

  box-shadow:
    8px 8px 0 var(--border);
}


.hero-image img {
  max-width: 100%;

  max-height: 360px;

  object-fit: contain;

  border: 3px solid var(--border);

  background: var(--paper);
}


.placeholder {
  width: 100%;

  min-height: 240px;

  display: grid;

  place-items: center;

  text-align: center;

  padding: 30px;

  font:
    28px
    "Permanent Marker",
    cursive;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 15px;

  margin-bottom: 22px;
}


.section-title h2 {
  margin: 0;

  font:
    50px/1
    "Bangers",
    Impact,
    sans-serif;

  letter-spacing: 1px;

  text-shadow:
    3px 3px 0 var(--yellow);
}


.section-title p {
  margin: 0;

  font-size: 12px;

  font-weight: 700;

  text-align: right;
}


/* =========================================================
   CATEGORY BUTTONS
   ========================================================= */

.category-buttons {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 22px;
}


.category {
  position: relative;

  display: block;

  padding: 30px;

  min-height: 180px;

  text-decoration: none;

  border: 4px solid var(--border);

  color: var(--text);

  overflow: hidden;

  box-shadow:
    8px 8px 0 var(--border);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}


.category:hover {
  transform:
    translate(-3px, -5px)
    rotate(-1deg);

  box-shadow:
    12px 13px 0 var(--border);
}


.category.military {
  background: var(--orange);
}


.category.sports {
  background: var(--lime);
}


.category::after {
  content: "↗";

  position: absolute;

  right: 18px;

  bottom: 5px;

  font:
    80px
    "Bangers",
    Impact,
    sans-serif;

  opacity: .22;
}


.category h3 {
  margin: 0;

  font:
    48px/0.9
    "Bangers",
    Impact,
    sans-serif;

  max-width: 75%;
}


.category p {
  max-width: 75%;

  line-height: 1.5;

  font-size: 13px;

  font-weight: 700;
}


/* =========================================================
   SCRIBBLE
   ========================================================= */

.scribble {
  font:
    24px
    "Permanent Marker",
    cursive;

  transform: rotate(-5deg);

  margin: 22px 0;
}


/* =========================================================
   CHARACTER CARD GRID
   ========================================================= */

.card-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 22px;

  align-items: start;
}


/* =========================================================
   CHARACTER CARDS
   ========================================================= */

.oc-card {
  display: block;

  width: 100%;

  text-decoration: none;

  background: var(--paper);

  border: 4px solid var(--border);

  color: var(--text);

  padding: 10px;

  box-shadow:
    6px 6px 0 var(--border);

  transition:
    transform .16s ease,
    box-shadow .16s ease;
}


.oc-card:nth-child(2n) {
  transform: rotate(1.4deg);
}


.oc-card:nth-child(3n) {
  transform: rotate(-1.2deg);
}


.oc-card:nth-child(5n) {
  transform: rotate(2deg);
}


.oc-card:hover {
  transform:
    translateY(-7px)
    rotate(-1deg);

  box-shadow:
    9px 12px 0 var(--border);
}


/* =========================================================
   CHARACTER IMAGE BOX
   ========================================================= */

.card-image {
  width: 100%;

  height: 220px;

  border: 3px solid var(--border);

  display: grid;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  background: var(--yellow);
}


.oc-card:nth-child(2n) .card-image {
  background: var(--pink);
}


.oc-card:nth-child(3n) .card-image {
  background: var(--cyan);
}


.card-image img {
  width: 100%;

  height: 100%;

  object-fit: contain;

  display: block;
}


.card-placeholder {
  color: var(--text);

  font:
    26px
    "Permanent Marker",
    cursive;

  text-align: center;

  padding: 20px;
}


/* =========================================================
   CHARACTER INFORMATION
   ========================================================= */

.card-info {
  padding:
    12px
    5px
    5px;
}


.card-info h3 {
  margin: 0 0 5px;

  font:
    31px/1
    "Bangers",
    Impact,
    sans-serif;

  color: var(--text);
}


.card-info p {
  margin: 0;

  font-size: 11px;

  line-height: 1.6;

  color: var(--text);
}


/* =========================================================
   TAPE DECORATION
   ========================================================= */

.tape {
  position: absolute;

  width: 90px;

  height: 22px;

  background:
    rgba(255,216,61,.75);

  top: -11px;

  left: 30px;

  transform: rotate(-4deg);

  border:
    1px solid
    rgba(0,0,0,.15);
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.back {
  display: inline-block;

  margin-top: 10px;

  background: var(--ink);

  color: var(--paper);

  padding: 10px 15px;

  text-decoration: none;

  font-weight: 700;

  box-shadow:
    4px 4px 0 var(--orange);
}


.back:hover {
  transform:
    translate(2px, 2px);

  box-shadow:
    2px 2px 0 var(--orange);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  position: relative;

  z-index: 1;

  text-align: center;

  padding: 28px 0 0;

  font-size: 11px;

  line-height: 1.7;
}


footer strong {
  font-family:
    "Permanent Marker",
    cursive;

  font-size: 16px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

  .logo {
    font-size: 60px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .category-buttons {
    grid-template-columns: 1fr;
  }

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


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 540px) {

  .site-shell {
    width:
      min(
        100% - 20px,
        1120px
      );

    padding-top: 18px;
  }

  .panel {
    padding: 17px;

    box-shadow:
      5px 5px 0 var(--border);
  }

  .logo {
    font-size: 48px;
  }

  .intro h1 {
    font-size: 39px;
  }

  .section-title {
    display: block;
  }

  .section-title p {
    text-align: left;

    margin-top: 8px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .category h3 {
    font-size: 42px;
  }
}

/* =========================================================
   DARK MODE HEADER TEXT
   ========================================================= */

body.dark-mode .logo {
  color: #eeeeee;
}

body.dark-mode .logo small {
  color: #cccccc;
}

/* =========================================================
   LINKS SECTION
   ========================================================= */

/* The collection of link cards */

.link-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 400px));

  gap: 16px;

  justify-content: center;
}


/* Individual link */

.link-card {
  position: relative;

  display: flex;

  align-items: center;

  gap: 15px;

  min-height: 90px;

  padding: 18px 20px;

  text-decoration: none;

  color: #161616;

  border: 4px solid #161616;

  box-shadow:
    6px 6px 0 #161616;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}


/* Hover effect */

.link-card:hover {
  transform:
    translate(3px, 3px)
    rotate(-1deg);

  box-shadow:
    2px 2px 0 #161616;
}


/* Link title */

.link-card h3 {
  margin: 0;

  font:
    30px/1
    "Bangers",
    Impact,
    sans-serif;
}


/* Link description */

.link-card p {
  margin: 5px 0 0;

  font-size: 11px;

  font-weight: 700;
}


/* Arrow */

.link-icon {
  display: grid;

  place-items: center;

  width: 48px;
  height: 48px;

  flex-shrink: 0;

  border: 3px solid #161616;

  background: rgba(255,255,255,.35);

  font:
    34px
    "Bangers",
    Impact,
    sans-serif;

  transform: rotate(-5deg);
}


/* =========================================================
   LINK COLORS
   ========================================================= */

.link-pink {
  background: var(--pink);
}

.link-cyan {
  background: var(--cyan);
}

.link-yellow {
  background: var(--yellow);
}

.link-lime {
  background: var(--lime);
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode .link-card {
  color: #111111;

  border-color: #111111;

  box-shadow:
    6px 6px 0 #000000;
}


body.dark-mode .link-icon {
  border-color: #111111;
}


/* =========================================================
   MOBILE LINKS
   ========================================================= */

@media (max-width: 540px) {

  .link-grid {
    grid-template-columns: 1fr;
  }