/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* ==========================================
   FONTS
   ========================================== */


@font-face {
  font-family: "Fight This";
  src: url("assets/fonts/FIGHTT3_.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Uses your INSTALLED font. No font file is uploaded. */
@font-face {
  font-family: "Slogan Retro";
  src: local("Super Retro M54"), local("SuperRetroM54");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --black: #000;
  --text: #eee6de;
  --muted: #b9aaa9;
  --pink: #ff69ad;
  --orange: #ffa044;
  --red: #a92243;

  --heading: "Fight This", Impact, "Arial Black", sans-serif;
  --slogan: "Slogan Retro", Impact, sans-serif;
  --body: "Courier New", Courier, monospace;
}

/* ==========================================
   BASE
   ========================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
}

::selection {
  background: var(--pink);
  color: #000;
}

a {
  color: var(--pink);
  text-underline-offset: 5px;
}

a:hover {
  color: var(--orange);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

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

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -150px;
  left: 16px;
  z-index: 20;
  padding: 12px;
  background: #000;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================
   MAIN FRAME
   ========================================== */

.home-shell,
.page-shell {
  width: min(1700px, calc(100% - 64px));
  margin: 0 auto;
}

.front-header {
  padding: 55px 12px 30px;
  text-align: center;
}

.eyebrow,
.stamp {
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.front-header .eyebrow {
  margin: 0 0 30px;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1,
h2 {
  font-family: var(--heading);
  font-weight: normal;
  text-transform: uppercase;
}

/* ==========================================
     TITLE
   ========================================== */

.front-title {
  margin: 0;
  color: var(--pink);
  font-size: clamp(4.5rem, 16vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;

  transform: rotate(-2deg);
  text-shadow: 5px 4px 0 #721333;
}

.front-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1em 0.3em;

  margin: 35px auto 45px;
  color: var(--orange);
  font-family: var(--slogan);
  font-size: clamp(1.7rem, 4.5vw, 4.8rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.front-tagline span {
  display: inline-block;
}

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

.front-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 22px;
  padding: 15px 5px;
}

.front-nav a {
  display: inline-block;
  max-width: 100%;
  padding: 14px 25px;
  background: var(--orange);
  color: #000;

  font-family: var(--heading);
  font-size: clamp(1.5rem, 3.1vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;

  transform: rotate(-3deg);

  clip-path: polygon(
    2% 5%, 18% 1%, 37% 4%, 58% 0,
    80% 4%, 98% 2%, 100% 26%,
    98% 51%, 100% 78%, 97% 97%,
    77% 94%, 54% 100%, 32% 96%,
    12% 99%, 0 94%, 2% 68%, 0 37%
  );
}

.front-nav a:nth-child(even) {
  transform: rotate(3deg);
}

.front-nav a:nth-child(3) {
  transform: rotate(-1deg);
}

.front-nav a:hover,
.front-nav a[aria-current="page"] {
  background: var(--pink);
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.front-nav a:focus-visible {
  background: #fff;
  color: #000;
  outline: 3px solid #000;
  outline-offset: -7px;
}

/* ==========================================
   INNER PAGE HEADERS
   ========================================== */

.inner-header {
  padding-top: 40px;
}

.wordmark {
  display: inline-block;
  max-width: 100%;
  color: var(--pink);
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transform: rotate(-2deg);
  text-shadow: 3px 3px 0 #721333;
}

.inner-header .front-tagline {
  margin: 25px auto 30px;
  font-size: clamp(1.4rem, 3vw, 3rem);
}

.page-content {
  width: min(1120px, 100%);
  margin: 65px auto 0;
}

.page-title {
  margin: 15px 0 35px;
  color: var(--pink);
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  transform: rotate(-2deg);
}

.lead {
  max-width: 55ch;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.section {
  margin: 80px 0;
}

.section h2,
.home-intro h2,
.home-dispatches h2,
.home-extras h2 {
  margin-top: 0;
  color: var(--orange);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.section p {
  max-width: 68ch;
}


.shout {
  margin: 75px 0;
  color: var(--pink);
  font-family: var(--heading);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ==========================================
   HOMEPAGE CONTENT
   ========================================== */

.front-art {
  width: min(1200px, 100%);
  margin: 35px auto 0;
}

.front-art-placeholder,
.art-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;

  min-height: clamp(230px, 32vw, 460px);
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.front-art-placeholder span,
.art-placeholder span {
  color: var(--pink);
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.front-art img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
}

.entry-note {
  margin: 30px auto 95px;
  text-align: center;
  font-size: 0.8rem;
}

.home-intro {
  max-width: 850px;
  margin: 0 auto 100px;
  text-align: center;
  scroll-margin-top: 30px;
}

.home-intro .button {
  margin-top: 20px;
}

.home-dispatches,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
}

.home-dispatches {
  max-width: 1150px;
  margin: 0 auto 95px;
}

.home-dispatches > :nth-child(2),
.split > :nth-child(2) {
  padding-top: 35px;
}

.home-extras {
  max-width: 1150px;
  margin: 0 auto 70px;
}

/* ==========================================
   RULES
   ========================================== */

.rules-list {
  margin: 60px 0;
  padding-left: 3.5rem;
}

.rules-list li {
  padding: 20px 0 28px 15px;
  border-bottom: 1px dashed #57343f;
}

.rules-list li::marker {
  color: var(--pink);
  font-family: var(--heading);
  font-size: 2rem;
}

.rules-list h2 {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.rules-list p {
  max-width: 65ch;
  margin: 0;
}

/* ==========================================
   TASKS / NOTICES
   ========================================== */

.assignment {
  margin: 65px 0;
  padding: 30px 0 30px 25px;
  border-left: 8px solid var(--pink);
}

.assignment h2 {
  margin: 15px 0 25px;
  color: var(--orange);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.task-meta {
  color: var(--orange);
  font-weight: bold;
}

.status,
.placeholder {
  color: var(--muted);
}

.coming-soon {
  display: inline-block;
  padding: 3px 9px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

details {
  margin: 20px 0;
  padding: 15px 0;
  border-bottom: 1px dashed #57343f;
}

summary {
  color: var(--pink);
  font-weight: bold;
  cursor: pointer;
}

label {
  display: block;
  margin: 25px 0;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: var(--pink);
}

.button,
button {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: var(--pink);
  color: #000;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  box-shadow: -4px 4px 0 #69243d;
}

.button:hover,
button:hover {
  background: var(--orange);
  color: #000;
}

.resource-list {
  padding-left: 1.3rem;
}

.resource-list li {
  margin: 20px 0;
}

footer {
  margin-top: 90px;
  padding: 25px 0 40px;
  border-top: 1px dashed #57343f;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

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

@media (max-width: 700px) {
  .home-shell,
  .page-shell {
    width: calc(100% - 36px);
  }

  .front-header {
    padding: 35px 0 20px;
  }

  .front-title {
    font-size: clamp(4rem, 19vw, 8rem);
  }

  .front-nav {
    gap: 14px;
  }

  .front-nav a {
    padding: 12px 16px;
    font-size: 1.5rem;
  }

  .page-content {
    margin-top: 45px;
  }

  .home-dispatches,
  .split {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .home-dispatches > :nth-child(2),
  .split > :nth-child(2) {
    padding-top: 0;
  }

  .section {
    margin: 55px 0;
  }

  .assignment {
    padding-left: 18px;
    border-left-width: 5px;
  }

  .rules-list {
    padding-left: 2.5rem;
  }
}

:root {
  --pink: #e87991;
}

.soap-logo {
  position: relative;
  width: min(100%, 1050px);
  margin: 0 auto;
  container-type: inline-size;
}

.soap-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.soap-logo-text {
  position: absolute;
  left: 51%;
  top: 44%;

  width: 48%;
  margin: 0;

  transform:
    translate(-50%, -50%)
    rotate(10deg)
    skewX(-12deg);

  color: #ffc1d0;
  font-family: var(--heading);
  font-size: clamp(3rem, 13vw, 9rem);
  font-size: 17cqw;
  font-weight: normal;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-align: center;

  text-shadow:
    1px 1px 0 #cb667e,
    2px 3px 0 #ad425b,
    3px 5px 0 #86283e,
    5px 8px 5px rgb(48 4 16 / 55%);
}

.soap-logo-text span {
  display: block;
}

.home-page .front-header {
  padding-top: 20px;
}

.home-page .front-header .eyebrow {
  margin-bottom: 5px;
}

.home-page .front-tagline {
  margin-top: 12px;
}

:root {
  --orange: #cc874d;
}

.front-tagline {
  gap: 0.2em 0.65em;
  font-size: clamp(1.5rem, 3.6vw, 3.8rem);
  line-height: 1.25;
}

.inner-header .front-tagline {
  font-size: clamp(1.2rem, 2.7vw, 2.7rem);
}

.front-nav a {
  background-color: var(--orange);

  background-image:
    radial-gradient(
      circle,
      rgb(0 0 0 / 24%) 0.65px,
      transparent 1px
    ),
    radial-gradient(
      circle,
      rgb(0 0 0 / 15%) 0.5px,
      transparent 0.9px
    ),
    repeating-linear-gradient(
      173deg,
      transparent 0 13px,
      rgb(0 0 0 / 9%) 13px 14px,
      transparent 14px 29px
    );

  background-size:
    7px 9px,
    11px 13px,
    100% 100%;

  background-position:
    0 0,
    3px 5px,
    0 0;
}

.front-nav a:hover,
.front-nav a[aria-current="page"] {
  background-color: var(--pink);

  background-image:
    radial-gradient(
      circle,
      rgb(0 0 0 / 24%) 0.65px,
      transparent 1px
    ),
    radial-gradient(
      circle,
      rgb(0 0 0 / 15%) 0.5px,
      transparent 0.9px
    );
}

.front-nav a:focus-visible {
  background: #fff;
  color: #000;
}

.soap-logo-text {
  left: 47%;
  top: 40%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23noise)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      to bottom,
      transparent 0 3px,
      rgb(255 255 255 / 12%) 3px 4px
    );

  background-size: 180px 180px, 100% 4px;
  opacity: 0.06;
}

.soap-home-link {
  display: block;
  text-decoration: none;
}


.inner-header .soap-logo {
  width: min(100%, 780px);
}

.inner-header {
  padding-top: 20px;
}

.inner-header .front-tagline {
  margin-top: 12px;
}


.inner-header .soap-logo {
  display: block;
  position: relative;
  width: min(240px, 100%);
  margin: 0 auto;
  container-type: inline-size;
}

.inner-header .soap-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.inner-header .soap-logo-text {
  position: absolute;
  left: 47%;
  top: 40%;
  width: 48%;
  margin: 0;

  font-size: 17cqw;
  line-height: 0.8;

  transform:
    translate(-50%, -50%)
    rotate(10deg)
    skewX(-12deg);


  text-shadow:
    1px 1px 0 #ad425b,
    2px 2px 2px rgb(48 4 16 / 55%);
}

.inner-header .soap-logo-text > span {
  display: block;
}

.front-header.inner-header {
  padding: 15px 0 20px;
}

.inner-header .front-tagline {
  margin: 12px auto 22px;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
}

.front-header.inner-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  height: auto;
  overflow: visible;
}

/* home button */
.mini-soap-home {
  position: relative;
  display: block;
  flex: none;

  width: 240px;
  max-width: 100%;
  aspect-ratio: 3 / 2;

  margin: 0;
  padding: 0;
  text-decoration: none;
  container-type: inline-size;
}

.mini-soap-home > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.mini-soap-label {
  position: absolute;
  left: 47%;
  top: 40%;
  width: 48%;

  transform:
    translate(-50%, -50%)
    rotate(10deg)
    skewX(-12deg);

  color: #ffc1d0;
  font-family: var(--heading);
  font-size: 40px;
  font-size: 17cqw;
  font-weight: normal;
  line-height: 0.8;
  letter-spacing: -0.035em;
  text-align: center;

  text-shadow:
    1px 1px 0 #ad425b,
    2px 2px 2px rgb(48 4 16 / 55%);

  pointer-events: none;
}

.mini-soap-label > span {
  display: block;
}

.front-header.inner-header > .front-tagline {
  position: static;
  margin: 0;
}

.front-header.inner-header > .front-nav {
  position: static;
  margin: 0;
  width: 100%;
}

.pink-line {
  width: 100%;
  margin: 60px 0;
  border: 0;
  border-top: 1px dashed #57343f;
}

.initiation-assignment {
  border-left-color: var(--orange);
}

html {
  scroll-behavior: smooth;
}

#weekly-mission {
  scroll-margin-top: 40px;
}
