@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #00FF00;
  --ink: #F4F4F4;
  --muted: #C869FF;
  --stroke: #A100FF;
  --panel: rgba(98, 0, 154, 0.85);

  --edge: 6vw;
  --s1: 0.8vw;
  --s2: 1.6vw;
  --s3: 2.8vw;
  --s4: 4.4vw;
  --s5: 7vw;

  --t-hero: 3vw;
  --t-lead: 6vw;
  --t-lead-price: 2.2vw;
  --t-lead-body: 1.45vw;
  --t-h2: 2.7vw;
  --t-price: 1.6vw;
  --t-body: 1.2vw;
  --t-small: 1vw;

  --logo: 15vw;
  --penguin: 19vw;
}

body {
  margin: 0;
  padding: 0 var(--edge);
  background-color: #62009A;
  background-image: url("assets/pattern.svg");
  background-repeat: repeat;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
}

a {
  color: var(--green);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.3vw;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: medium solid var(--green);
  outline-offset: 0.3vw;
}

h1, h2, p, ul {
  margin: 0;
  text-wrap: pretty;
}

header {
  padding-top: var(--s3);
}

header img {
  display: block;
  width: var(--logo);
  height: auto;
}

main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}

#hero, #web-development, #media-outlets, main > p {
  grid-column: 1 / -1;
}

/* Hero */
#hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s5);
  align-items: center;
  padding: var(--s4) 0 var(--s5);
}

#hero img {
  grid-row: 1 / span 2;
  width: var(--penguin);
  height: auto;
}

h1 {
  align-self: end;
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: 1.2;
}

#hero p {
  align-self: start;
  margin-top: var(--s3);
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: 0.2vw;
  text-transform: uppercase;
}

/* Panels */
.service, #media-outlets {
  padding: var(--s4);
  background: var(--panel);
  border-radius: 0.3vw;
}

h2 {
  color: var(--green);
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.05;
}

.service {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.service h2 + p {
  margin-top: var(--s1);
  color: var(--green);
  font-size: var(--t-price);
  font-weight: 500;
  line-height: 1.3;
}

.service p + p {
  margin-top: var(--s2);
}

.service ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s2);
  margin-top: var(--s3);
  padding: 0;
  list-style: none;
}

.service li {
  padding: var(--s1) 0;
  border-top: thin solid var(--stroke);
  color: var(--muted);
}

/* Lead service */
#web-development {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: var(--s5);
  padding: var(--s5) var(--s4) var(--s4);
}

#web-development h2 {
  grid-column: 1 / -1;
  font-size: var(--t-lead);
  line-height: 1;
}

#web-development h2 + p {
  margin-top: var(--s3);
  font-size: var(--t-lead-price);
}

#web-development p + p {
  margin-top: var(--s3);
  font-size: var(--t-lead-body);
}

#web-development ul {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--s4);
  font-size: var(--t-lead-body);
}

/* Outlets */
#media-outlets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--s5);
  padding: var(--s3) var(--s4);
}

#media-outlets h2 {
  grid-row: 1 / span 2;
}

#media-outlets ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: var(--s2);
  padding: 0;
  list-style: none;
  font-weight: 600;
}

main > p {
  margin-top: var(--s1);
  font-size: var(--t-small);
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: var(--s5);
  padding-bottom: var(--s4);
  font-size: var(--t-body);
  font-weight: 500;
}

footer p:last-child {
  margin-left: auto;
}

@media (max-width: 600px) {
  :root {
    --edge: 20px; --s1: 10px; --s2: 14px; --s3: 22px; --s4: 28px; --s5: 44px;
    --t-hero: 24px; --t-lead: 40px; --t-lead-price: 20px; --t-lead-body: 17px;
    --t-h2: 28px; --t-price: 18px; --t-body: 16px; --t-small: 14px;
    --logo: 180px; --penguin: 150px;
  }
  main, #hero, #web-development, #media-outlets { grid-template-columns: minmax(0, 1fr); }
  #hero img, #media-outlets h2 { grid-row: auto; }
  #web-development ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { flex-direction: column; }
  footer p:last-child { margin-left: 0; }
}
