/* Shared styles for the official LoliCode guides and their homepage links. */
.guide-index {
  padding-block: clamp(2rem, 6vw, 5rem);
}
.guide-index .section-heading {
  margin-bottom: 1.75rem;
}
.guide-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-links a {
  display: block;
  height: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff9f2;
}
.guide-links a:hover {
  border-color: var(--cherry);
}
.guide-links strong,
.guide-links span {
  display: block;
}
.guide-links strong::after {
  content: " ↗";
}
.guide-links span {
  margin-top: .35rem;
  color: var(--muted);
}
.guide-page {
  background: var(--paper);
  color: var(--ink);
}
.guide-frame {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}
.guide-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.guide-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
}
.guide-page a:not(.guide-brand):not(.button) {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.guide-hero {
  display: grid;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 6vw, 4.5rem);
  align-items: center;
}
.guide-hero--illustrated {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.guide-kicker {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cherry);
}
.guide-hero h1 {
  font: 700 clamp(1.85rem, 5vw, 3.25rem)/1.2 var(--serif);
  margin-block: .65rem 1rem;
}
.guide-hero p:not(.guide-kicker) {
  max-width: 42rem;
}
.guide-hero .button {
  margin-top: 1rem;
}
.guide-hero img,
.guide-article figure img {
  width: 100%;
  height: auto;
}
.guide-article {
  max-width: 46rem;
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.guide-article section {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.guide-article h2 {
  font: 700 clamp(1.3rem, 3vw, 1.8rem)/1.4 var(--serif);
  margin-bottom: .6rem;
}
.guide-article h3 {
  font-size: 1rem;
  margin-top: .9rem;
}
.guide-article p + p,
.guide-article figure {
  margin-top: .75rem;
}
.guide-article li + li {
  margin-top: .45rem;
}
.guide-article figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.guide-article figcaption {
  padding: .35rem .8rem;
  color: var(--muted);
  font-size: .875rem;
}
.guide-footer {
  border-top: 1px solid var(--line);
  padding-block: 1rem 2rem;
  color: var(--muted);
}
@media (max-width: 680px) {
  .guide-links,
  .guide-hero--illustrated {
    grid-template-columns: 1fr;
  }
  .guide-hero img {
    max-width: 190px;
    margin-inline: auto;
  }
}
