Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link
      href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@100;400&family=Permanent+Marker&display=swap"
      rel="stylesheet">
    <title>Codepen Challenge Magazine Layout</title>
  </head>

  <body>
    <header>
      <h1 class="headline">Arcade Life</h1>
    </header>

    <div class="grid-wrapper">
      <div class="grid-feature-split">
        <div class="featured-article-heading">
          <h2 class="subhead">The next generation of arcade gamers top the leaderboard</h2>
          <div class="article-meta">
            <div class="author-description">
              <svg id="author-avatar" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" width="80"
                height="80">
                <title id="avatarTitle">Author Avatar</title>
                <desc id="avatarDesc">A cartoon avatar of a smiling purple square on a blue background.</desc>
                <mask id="mask__beam" maskUnits="userSpaceOnUse" x="0" y="0" width="36" height="36">
                  <rect width="36" height="36" rx="72" fill="white"></rect>
                </mask>
                <g mask="url(#mask__beam)">
                  <rect width="36" height="36" fill="#0ebeff"></rect>
                  <rect x="0" y="0" width="36" height="36" transform="translate(6 6) rotate(192 18 18) scale(1)"
                    fill="#754cac" rx="6"></rect>
                  <g transform="translate(0 2) rotate(-2 18 18)">
                    <path d="M13,19 a1,0.75 0 0,0 10,0" fill="white"></path>
                    <rect x="12" y="14" width="1.5" height="2" rx="1" stroke="none" fill="white"></rect>
                    <rect x="22" y="14" width="1.5" height="2" rx="1" stroke="none" fill="white"></rect>
                  </g>
                </g>
              </svg>
              <div class="author">
                <p class="byline">by Penny Pen</p>
                <p class="dateline">June 21, 2021</p>
              </div>
            </div>
            <p class="article-tags">
              <span class="tag">culture</span> <span class="tag">games</span> <span class="tag featured">featured</span>
            </p>
          </div>

          <div class="article featured-article">
            <div class="article-decoration"></div>
            <p class="lead">Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam!
              Laborum
              odit quidem
              earum
              perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere
              reprehenderit
              esse.
            </p>

            <p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem
              quasi
              aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
            <p>Quos, ad? Et, iure. Officia fuga unde quibusdam nemo modi perspiciatis quisquam consectetur voluptates,
              dolore
              ab
              eaque voluptatem corporis placeat consequatur itaque qui asperiores. Consequuntur quas vitae animi est ea!
            </p>
            <p>Accusantium nemo labore corrupti laudantium! Quo reprehenderit ea perspiciatis temporibus! Illo sapiente
              harum
              fuga
              molestias temporibus iste animi. Velit, tenetur mollitia sit magni nulla quos veniam molestias consectetur
              aliquam
              eaque.</p>

            <p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique,
              fugit
              culpa
              enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed
              libero
              magnam. Odio.</p>
            <br>
            <div class="article-decoration"></div>
          </div>
        </div>

        <div class="article-img featured-img">
          <figure>
            <img src="https://assets.codepen.io/t-1/freddy-g-lhy1lY3CyLI-unsplash.jpg"
              alt="a smiling person in a pink hoodie, standing in front of a bright pink lighted arcade basketball game. " />
            <figcaption>Photo by Freddy G</figcaption>
            <aside class="featured-aside">
              <p>Quos, ad? Et, iure. Libero dolore atque magni.</p>
            </aside>
          </figure>
          <!-- full size image: https://images.unsplash.com/flagged/photo-1556339911-7ef846e7db43-->
        </div>

        <div class="article feature-continued">
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit
            quidem
            earum
            perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere
            reprehenderit
            esse.
            Sed officia ipsum, soluta quibusdam enim quisquam ea atque nulla sunt temporibus, dolorum veniam dolor
            aspernatur
            quod. Praesentium vitae exercitationem quod, inventore eius quidem ea sit, nemo reprehenderit voluptatum
            officia.
          </p>
          <p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem
            quasi
            aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
          <p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique,
            fugit
            culpa
            enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed
            libero
            magnam. Odio.</p>
          <p>Quae, cumque blanditiis? Nisi rem ullam, ducimus qui praesentium, temporibus mollitia ex voluptatibus aut
            accusamus
            reprehenderit soluta eius expedita dicta adipisci debitis repudiandae quibusdam laborum possimus
            cupiditate
            quidem
            doloribus quas.</p>
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum vitae debitis reiciendis nam molestias,
            iure,
            recusandae magnam cupiditate ut dolore aliquam nesciunt ipsum sit illum nihil quibusdam mollitia veritatis
            maiores.
          </p>
        </div>

      </div>

      <div class="mid-articles">
        <div class="article high-score">
          <div class="article-decoration"></div>
          <h2>High Scores &amp; High Drama</h2>

          <p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique,
            fugit
            culpa
            enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed
            libero
            magnam. Odio.</p>
          <p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem
            quasi
            aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit
            quidem
            earum
            perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere
            reprehenderit
            esse.
          </p>

          <div class="article-img">
            <figure><img src="https://assets.codepen.io/t-1/cassidy-james-blaede-1lzJt360gkE-unsplash.jpg"
                alt="two people playing Guitar Hero Arcade. " />
              <figcaption>Photo by Cassidy James Blaede</figcaption>
            </figure>
            <!-- full size image: https://images.unsplash.com/photo-1536818968680-deeec2e9fd11-->
          </div>

          <p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique,
            fugit
            culpa
            enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed
            libero
            magnam. Odio.</p>
          <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id amet ad blanditiis vero delectus incidunt
            tempore
            reiciendis eius qui vel placeat reprehenderit, ut, dolore asperiores possimus impedit. Ipsum, culpa eaque!
          </p>
          <p>Velit vero esse quisquam accusantium? Dolore alias, quaerat quod excepturi officiis ipsa placeat officia
            necessitatibus illo, vero quasi esse aut. Doloremque nesciunt placeat animi saepe tempore aspernatur,
            officia
            vitae
            laudantium!</p>
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Nulla suscipit praesentium alias quia animi
            consectetur veniam obcaecati iusto, sint voluptas ipsa porro officia dolores nobis dolorum modi ea
            temporibus nisi.</p>
          <p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique,
            fugit
            culpa
            enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed
            libero
            magnam. Odio.</p>
          <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id amet ad blanditiis vero delectus incidunt
            tempore
            reiciendis eius qui vel placeat reprehenderit, ut, dolore asperiores possimus impedit. Ipsum, culpa eaque!
          </p>
        </div>

        <div class="article leveling-up">
          <div class="article-decoration"></div>
          <h2>Leveling Up</h2>
          <p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem
            quasi
            aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
          <div class="article-img">
            <figure><img src="https://assets.codepen.io/t-1/nick-jones-QTk3Llc-oKU-unsplash.jpg"
                alt="a person wearing a bucket hat, sitting on a skee ball machine lane. " />
              <figcaption>Photo by Nick Jones</figcaption>
            </figure>

            <!-- full size image: https://images.unsplash.com/photo-1601637155580-ac6c49428450-->
          </div>

          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit
            quidem
            earum
            perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere
            reprehenderit
            esse.
          </p>
          <p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique,
            fugit
            culpa
            enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed
            libero
            magnam. Odio.</p>
          <p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem
            quasi
            aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
        </div>
      </div>

      <div class="article-stretch">
        <div class="article-img">
          <figure><img src="https://assets.codepen.io/t-1/ersin-mandaliev-C5DC5bJhpRE-unsplash.jpg"
              alt="a person in black high-heeled boots sitting on an arcade basketball game. " />
            <figcaption>Photo by Ersin Mandaliev</figcaption>
          </figure>

          <!-- full size image: https://images.unsplash.com/flagged/photo-1556491168-3e6ffa3e26b2-->
        </div>

        <div class="article-text">
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit
            quidem
            earum
            perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere
            reprehenderit
            esse.
          </p>
          <p>Velit vero esse quisquam accusantium? Dolore alias, quaerat quod excepturi officiis ipsa placeat officia
            necessitatibus illo, vero quasi esse aut. Doloremque nesciunt placeat animi saepe tempore aspernatur,
            officia
            vitae
            laudantium!</p>
          <aside>
            <p>Labore vero cumque provident, deleniti nam, cumque vero.</p>
          </aside>
        </div>

        <div class="article-img">
          <figure><img src="https://assets.codepen.io/t-1/nick-jones-g7jhzbd9WFQ-unsplash.jpg"
              alt="a person in a white t-shirt sitting on a wheel of fortune arcade game. " />
            <figcaption>Photo by Nick Jones</figcaption>
          </figure>

          <!-- full size image: https://images.unsplash.com/photo-1604112900927-e4d6d3ce3a2e -->
        </div>

        <div class="article-text">
          <p>Asperiores cum quisquam voluptate adipisci nihil ipsa eum libero recusandae inventore facilis modi nulla,
            provident
            ut, ad explicabo magnam unde voluptates commodi.</p>
          <p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque
            provident,
            deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.
          </p>
          <p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque
            provident,
            deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.
          </p>
          <p>Aperiam est ab harum alias quae rem, cumque vero. Dolore possimus quas eius dolor voluptatibus cumque
            velit,
            ratione
            aspernatur voluptatem? Nulla voluptatem quaerat placeat error, ipsam alias dignissimos odit excepturi?</p>
        </div>
      </div>

      <div class="last-article">
        <div class="last-article-heading">
          <div class="article-decoration"></div>
          <h2>Game Over?</h2>

          <div class="article-img">
            <figure><img src="https://assets.codepen.io/t-1/element5-digital-dwcC-OJ-bRs-unsplash.jpg"
                alt="three neon-lit skee ball lanes. " />
              <figcaption>Photo by Element5 Digital</figcaption>
            </figure>

            <!-- full size image: https://images.unsplash.com/photo-1533236897111-3e94666b2edf -->
          </div>
        </div>

        <div class="article-text">
          <p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem
            quasi
            aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>

          <p>Velit vero esse quisquam accusantium? Dolore alias, quaerat quod excepturi officiis ipsa placeat officia
            necessitatibus illo, vero quasi esse aut. Doloremque nesciunt placeat animi saepe tempore aspernatur,
            officia
            vitae
            laudantium!</p>
          <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit
            quidem
            earum
            perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere
            reprehenderit
            esse.
          </p>
        </div>
        <aside>
          <p>Labore vero cumque provident, deleniti nam, cumque vero.</p>
        </aside>
        <div class="article-text">
          <p>Aperiam est ab harum alias quae rem, cumque vero. Dolore possimus quas eius dolor voluptatibus cumque
            velit,
            ratione
            aspernatur voluptatem? Nulla voluptatem quaerat placeat error, ipsam alias dignissimos odit excepturi?</p>
          <p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque
            provident,
            deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.
          </p>
          <p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque
            provident,
            deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.
          </p>
          <p>Aperiam est ab harum alias quae rem, cumque vero. Dolore possimus quas eius dolor voluptatibus cumque
            velit,
            ratione
            aspernatur voluptatem? Nulla voluptatem quaerat placeat error, ipsam alias dignissimos odit excepturi?</p>
        </div>

      </div>
    </div>
    <div class="article-decoration"></div>

  </body>
              
            
!

CSS

              
                @mixin flex-across {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

$border: 0.2rem solid rgb(199, 0, 122);

html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
h1,
h2 {
  font-family: 'Permanent Marker', cursive;
}
h2 {
  color: rgb(49, 109, 238);
}
p {
  padding-bottom: 1rem;
}
body {
  background: rgb(24, 2, 44);
  color: rgb(189, 23, 255);
  font-family: 'Big Shoulders Display', cursive;
  font-size: 100%;
  padding: 2rem 4rem;
}
.headline {
  font-size: 7rem;
  letter-spacing: 0.25rem;
  color: rgb(199, 0, 122);
  text-shadow: 0.1rem 0.25rem rgb(49, 109, 238);
  line-height: 1;
  margin-bottom: 2rem;
}
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1fr, 1fr));
  border: $border;
}
.subhead {
  font-family: 'Big Shoulders Display', cursive;
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgb(49, 109, 238);
  margin-bottom: 1rem;
}
.featured-article-heading {
  padding: 1rem;
}
.grid-feature-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  border-bottom: $border;
}
.article-meta {
  @include flex-across();

  .author-description {
    @include flex-across();

    .author {
      padding-left: 1rem;
    }
    .byline {
      font-size: 1.5rem;
      padding: 0;
    }
  }
}
.article-img {
  width: 100%;
  padding: 2rem 3rem 2rem 2rem;
  position: relative;

  figure {
    position: relative;
  }
  img {
    width: 100%;
  }
  figcaption {
    background: rgba(49, 109, 238, 0.5);
    position: absolute;
    bottom: 0.25rem;
    color: rgb(24, 2, 44);
    padding: 0.5rem;
  }
}
.tag {
  background: rgb(49, 109, 238);
  padding: 0.75rem;
  color: rgb(24, 2, 44);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.featured-article {
  font-size: 1.5rem;
  padding: 1rem;

  .lead::first-letter {
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
  }
}
.feature-continued {
  grid-column: 1 / -1;
  font-size: 1.5rem;
  padding: 0 2rem;
}
.article-decoration {
  background-color: transparent;
  background-size: 98px 98px;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500' fill-opacity='1' style='enable-background:new 0 0 500 500'%3E%3Cstyle%3E .st0{fill:rgba(199,0,122,1)} %3C/style%3E%3Ccircle class='st0' cy='336.6' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='336.6' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='336.6' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='336.6' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='336.6' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='336.6' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='336.6' r='12.7'/%3E%3Cg%3E%3Ccircle class='st0' cy='.7' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='.7' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='.7' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='.7' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='.7' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='.7' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='.7' r='12.7'/%3E%3C/g%3E%3Cg%3E%3Ccircle class='st0' cy='419.5' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='419.5' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='419.5' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='419.5' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='419.5' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='419.5' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='419.5' r='12.7'/%3E%3C/g%3E%3Cg%3E%3Ccircle class='st0' cy='500.7' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='500.7' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='500.7' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='500.7' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='500.7' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='500.7' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='500.7' r='12.7'/%3E%3C/g%3E%3Cg%3E%3Ccircle class='st0' cy='170.9' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='170.9' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='170.9' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='170.9' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='170.9' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='170.9' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='170.9' r='12.7'/%3E%3C/g%3E%3Cg%3E%3Ccircle class='st0' cy='253.8' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='253.8' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='253.8' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='253.8' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='253.8' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='253.8' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='253.8' r='12.7'/%3E%3C/g%3E%3Cg%3E%3Ccircle class='st0' cy='88' r='12.7'/%3E%3Ccircle class='st0' cx='83.3' cy='88' r='12.7'/%3E%3Ccircle class='st0' cx='166.7' cy='88' r='12.7'/%3E%3Ccircle class='st0' cx='250' cy='88' r='12.7'/%3E%3Ccircle class='st0' cx='333.3' cy='88' r='12.7'/%3E%3Ccircle class='st0' cx='416.7' cy='88' r='12.7'/%3E%3Ccircle class='st0' cx='500' cy='88' r='12.7'/%3E%3C/g%3E%3C/svg%3E");
  width: 100%;
  height: 70px;
}
.featured-aside {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  text-align: center;
  width: 45%;
}
aside {
  background: rgb(49, 109, 238);
  color: rgb(24, 2, 44);
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.mid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  border-bottom: $border;

  h2 {
    font-size: 2rem;
    letter-spacing: 1px;
    padding: 1rem 0;
  }

  .article {
    font-size: 1.25rem;
    padding: 2rem;
  }

  .high-score {
    border-right: $border;
  }
}
.article-stretch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  font-size: 1.25rem;
  border-bottom: $border;
  padding: 2rem;

  .article-img {
    img {
      box-shadow: 0.5rem 0.5rem rgb(199, 0, 122);
    }
  }
}
.last-article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  font-size: 1.25rem;
  padding: 2rem;

  .last-article-heading {
    padding: 2rem;

    h2 {
      font-size: 2rem;
      letter-spacing: 1px;
      padding: 1rem 0;
    }

    .article-img {
      padding: 0;
      img {
        box-shadow: -0.5rem 0.5rem rgb(199, 0, 122);
      }
    }
  }

  .article-text {
    padding: 0 1rem;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console