@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap");
.Icon,
svg.icon {
  height: 1em;
  width: 1em;
  display: inline-block;
  vertical-align: middle;
  margin-top: calc(1ex - 1cap);
}
.Icon.fill svg,
svg.icon.fill svg {
  fill: currentColor;
}
.Icon svg,
svg.icon svg {
  stroke: currentColor;
  width: 100%;
  height: 100%;
}

svg.icon {
  width: 100%;
  height: 100%;
}

.RecommendedArticle {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
}
.RecommendedArticle.Normal {
  align-items: start;
  grid-template-rows: min-content 1fr;
  align-content: start;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease-in;
}
.RecommendedArticle.Normal:hover {
  opacity: 0.77;
}
.RecommendedArticle.Normal img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: start;
}
.RecommendedArticle.Normal h3 {
  justify-self: center;
  color: black;
  text-transform: capitalize;
  width: 100%;
  text-align: center;
  margin: 1.25rem;
}

.Navbar {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  width: 100dvw;
  height: 12ch;
  grid-template-rows: 2fr 1fr;
  position: sticky;
  top: 0;
  background: white;
  font-family: "Bebas Neue", sans-serif;
}
.Navbar .container {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-template-columns: 1fr calc(var(--content-size) - 2dvw) 1fr;
  border-bottom: 1px solid whitesmoke;
}
.Navbar .container > * {
  max-width: calc(var(--content-size) - 2dvw);
}
@media (max-width: 992px) {
  .Navbar .container .top .buttons > .Icon:not(.important) {
    display: none;
  }
  .Navbar .container .menu .menu-item {
    border-bottom: 1px solid whitesmoke;
  }
}
.Navbar .container .top {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-column: 2;
  grid-auto-flow: column;
  position: sticky;
  top: 0;
  grid-template-columns: 8rem 1fr min-content;
  gap: 2rem;
}
.Navbar .container .top .logo {
  height: 4.2ch;
}
.Navbar .container .top .search {
  padding-left: 2ch;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  height: calc(3ch + 4px);
  grid-template-columns: 4ch 2fr 1fr;
  border: 1px solid #ffd200;
  border-radius: calc(3ch + 4px);
  overflow: hidden;
}
.Navbar .container .top .search input,
.Navbar .container .top .search .Icon,
.Navbar .container .top .search button {
  height: calc(3ch + 4px);
  align-self: center;
}
.Navbar .container .top .search input {
  width: 100%;
  border: none;
  outline: none;
}
.Navbar .container .top .search .Icon {
  justify-self: start;
}
.Navbar .container .top .search button {
  width: 100%;
  justify-self: end;
  outline: none;
  text-transform: uppercase;
  background-color: #ffd200;
  color: black;
  font-weight: bold;
}
.Navbar .container .top .buttons {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-auto-flow: column;
  grid-auto-columns: min-content;
  gap: 1rem;
}
.Navbar .container .menu {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-column: 2;
  grid-auto-flow: column;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.Navbar .container .menu::-webkit-scrollbar {
  display: none;
}
.Navbar .container .menu .menu-item {
  border-left: 1px solid whitesmoke;
  border-right: 1px solid whitesmoke;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  text-transform: uppercase;
  font-weight: bolder;
  font-size: 1rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease-in;
}
.Navbar .container .menu .menu-item:hover {
  opacity: 0.77;
}

.AuthorPill {
  background: #ffd200;
  border-radius: 4rem;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  width: min-content;
  height: 4rem;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
}
.AuthorPill .avatar {
  width: 4rem;
}
.AuthorPill .name {
  white-space: nowrap;
  font-weight: bold;
  justify-self: start;
  padding-right: 1.4rem;
  font-family: "Bebas Neue", sans-serif;
}

* {
  line-height: 1.3;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.65rem;
}

body {
  font-family: "Bebas Neue", sans-serif;
}

article.article-main p {
  font-family: "Merriweather", sans-serif;
}
article.article-main strong {
  font-weight: 500;
}
article.article-main em {
  font-variant: smallcaps;
}
article.article-main h1,
article.article-main h2,
article.article-main h3,
article.article-main h4,
article.article-main h5 {
  margin: 1.25rem 0;
}

.article-image {
  width: 100%;
  aspect-ratio: 3/2;
  margin: 1rem 0rem;
  background-size: cover;
  background-position: start;
  background-repeat: no-repeat;
  display: grid;
  align-content: end;
  justify-content: end;
}
.article-image .description {
  font-variant: smallcaps;
  font-weight: 500;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  width: 100%;
  text-align: end;
  padding-inline: 1rem;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  /* color-scheme: light dark; */
}

button {
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

input,
textarea,
button,
select {
  font: inherit;
}

body,
html {
  margin: 0;
  padding: 0;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

i.sep {
  width: 100%;
  height: 1px;
  border-bottom: 2px solid whitesmoke;
  grid-column: 1/-1;
  margin-bottom: 2ch;
  margin-top: 0.5ch;
}

:root {
  --content-size: calc(100dvw - 1ch);
  font-size: 11px;
}
@media (min-width: 320px) {
  :root {
    --content-size: 320px;
    font-size: 12px;
  }
}
@media (min-width: 576px) {
  :root {
    --content-size: 576px;
    font-size: 12px;
  }
}
@media (min-width: 768px) {
  :root {
    --content-size: 768px;
    font-size: 15px;
  }
}
@media (min-width: 992px) {
  :root {
    --content-size: 992px;
    font-size: 16px;
  }
}
@media (min-width: 1200px) {
  :root {
    --content-size: 1200px;
    font-size: 16px;
  }
}

.icon {
  width: 2ch;
  height: 2ch;
}

.reaction-panel {
  padding: 1rem 1rem;
  display: grid;
  width: 56ch;
  grid-auto-flow: column;
}
.reaction-panel > * {
  justify-self: end;
}

.author-pill-large {
  background: rgba(128, 128, 128, 0.08);
  border-radius: 5.28ch;
  padding: 2rem 1ch;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-template-columns: calc(6ch + 2rem) 1fr;
  grid-template-rows: repeat(3, 2ch);
  gap: 1rem 2rem;
}
.author-pill-large .avatar {
  width: 100%;
  grid-row: 1/-1;
  grid-column: 1;
}
.author-pill-large .name {
  white-space: nowrap;
  font-weight: bold;
  justify-self: start;
  grid-row: 1;
  grid-column: 2;
  align-self: end;
}
.author-pill-large .description {
  grid-row: 2;
  grid-column: 2;
  white-space: nowrap;
  justify-self: start;
  align-self: center;
}
.author-pill-large .all-articles {
  grid-row: 3;
  grid-column: 2;
  justify-self: start;
  align-self: start;
}

.breadcrumbs {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-auto-flow: column;
  gap: 2rem;
  grid-template-columns: repeat(3, min-content) 1fr;
  font-size: 1rem;
}
.breadcrumbs div {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 2ch 1fr;
  grid-auto-flow: column;
  align-content: center;
  width: unset;
  justify-self: start;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease-in;
}
.breadcrumbs div:hover {
  opacity: 0.77;
}
.breadcrumbs div:last-child span {
  color: lightgray;
}
.breadcrumbs div span {
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}

article.article-main {
  width: calc(var(--content-size) - 2dvw);
  margin-left: calc((100dvw - (var(--content-size) - 2dvw)) * 0.5);
}
article.article-main p.first-paragraph {
  font-weight: bold;
  font-size: 1.875rem;
  width: calc(var(--content-size) - 2dvw);
}
article.article-main section.lead {
  width: 100%;
  display: grid;
  width: calc(var(--content-size) - 2dvw);
  grid-template-columns: repeat(2, auto);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
article.article-main section.lead .breadcrumbs {
  grid-column: 1/-1;
}
article.article-main section.lead .title {
  max-width: calc(var(--content-size) - 2dvw);
  grid-column: 1/-1;
}
article.article-main section.lead .first-paragraph {
  grid-column: 1/-1;
}
article.article-main section.lead .publish-date {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  align-content: center;
  justify-content: end;
  grid-column: 2;
  font-style: italic;
  color: rgba(0, 0, 0, 0.4);
}
article.article-main section.lead .reaction-panel {
  grid-column: 2;
  justify-self: end;
}
@media (max-width: 768px) {
  article.article-main section.lead .reaction-panel,
article.article-main section.lead .publish-date {
    grid-column: 1;
  }
}
article.article-main section.byebye {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
}
article.article-main section.byebye .reaction-panel {
  justify-self: end;
}
article.article-main section.byebye .author-footer {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-template-columns: 40ch 1fr;
}
article.article-main section.byebye .author-footer .author-pill-large {
  width: 100%;
}
article.article-main section.recommended-articles {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-template-rows: repeat(3, min-content);
  grid-auto-rows: 1fr;
  gap: 1rem;
}
article.article-main section.recommended-articles h2 {
  grid-column: 1/-1;
  margin: 2rem;
}
article.article-main section.recommended-articles article.recommended {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  align-items: start;
  gap: 2rem;
}
article.article-main section.recommended-articles article.recommended img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: 20% 5%;
}

main.home {
  margin-top: 3ch;
  margin-bottom: 3ch;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  grid-auto-flow: dense;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3ch;
  width: calc(var(--content-size) - 2dvw);
}
