@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto/roboto-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto/roboto-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --honey: #f5c55c;
  --sky: #7ba8d4;
  --cream: #f5f0e8;
  --ink: #3a3b3c;
  --ink-soft: #5a5b5c;
  --brown: #8b6b47;
  --sage: #8fa882;
  --card: #fff;
}

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

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

a {
  color: var(--sky);
}

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

.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.4rem 0.7rem;
  background: var(--card);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.site-header,
.site-menu {
  background: var(--honey);
  color: var(--ink);
}

.site-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.4rem;
  max-width: 61rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-title img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.site-menu {
  border-bottom: 2px solid var(--brown);
}

.site-menu a {
  display: inline-block;
  padding: 0.45rem 0 0.35rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.site-menu a[aria-current="page"] {
  color: var(--brown);
  font-weight: 700;
  border-bottom-color: var(--brown);
}

.post-byline,
.post-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.post-byline img,
.post-author img {
  border-radius: 50%;
  object-fit: cover;
}

.post-byline img {
  width: 2.5rem;
  height: 2.5rem;
}

.post-author img {
  width: 4rem;
  height: 4rem;
}

.post-author p,
.post-byline p {
  margin: 0;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

main h1,
main h2,
main h3 {
  clear: both;
  line-height: 1.25;
}

main h1,
main h2 {
  font-weight: 300;
}

main h3,
.book-title {
  margin: 1.6em 0 0.8em;
  font-size: 1.25em;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.news-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 40rem);
  justify-content: center;
  gap: 0 2.5rem;
  padding: 0 1.25rem;
}

.news-layout main {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.news-sidebar {
  grid-column: 1;
  grid-row: 1;
  padding-top: 2rem;
  font-size: 0.9rem;
}

.news-sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.news-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-sidebar li {
  margin-bottom: 0.75rem;
}

.news-sidebar a[aria-current="page"] {
  color: var(--brown);
  font-weight: 700;
}

.news-sidebar time {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.to-top {
  position: fixed;
  top: 0.5rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  background: var(--cream);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.25);
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-decoration: none;
}

.to-top svg {
  fill: currentColor;
}

.to-top:hover {
  background: var(--sky);
  color: #fff;
}

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

.aside-image {
  float: right;
  width: 200px;
  margin: 0 0 1rem 1.5rem;
}

.book-cover-left {
  float: left;
  width: auto;
  margin: 0.25rem 1.25rem 1rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

hr {
  clear: both;
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid rgba(123, 168, 212, 0.28);
}

.note {
  margin: 1.5rem 0;
  padding: 0.25rem 1rem 0.5rem;
  border-left: 4px solid var(--brown);
  background: rgba(123, 168, 212, 0.12);
}

.note-title {
  color: var(--brown);
  font-weight: 700;
}

.site-footer {
  padding: 0.5rem 0;
  background: var(--brown);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.site-footer .site-bar {
  justify-content: space-between;
}

.site-footer p {
  margin: 0.3rem 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer nav a {
  margin-right: 1rem;
}

.social {
  display: flex;
  gap: 1rem;
}

.social img {
  display: block;
  opacity: 0.7;
}

.social a:hover img {
  opacity: 1;
}

@media (max-width: 52rem) {
  .news-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-layout main,
  .news-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .news-sidebar {
    padding-top: 0;
    padding-bottom: 2rem;
  }
}

@media (max-width: 40rem) {
  .aside-image,
  .book-cover-left {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }
}
