@import url("https://fonts.googleapis.com/css2?family=Bree+Serif&family=Nunito:wght@400;500;600;700;800;900&display=swap");

:root {
  --blog-forest: #073f2f;
  --blog-forest-deep: #032c22;
  --blog-cream: #fbf7f2;
  --blog-cream-light: #fffaf5;
  --blog-parchment: #f1dfb8;
  --blog-ink: #3d2e1f;
  --blog-muted: #6b5948;
  --blog-terracotta: #c45d35;
  --blog-terracotta-dark: #a84d2b;
  --blog-gold: #d4a853;
  --blog-line: #d8c7aa;
  --blog-display: "Bree Serif", Georgia, serif;
  --blog-body: "Nunito", system-ui, sans-serif;
  --blog-brand: "Bree Serif", Georgia, serif;
}

body.blog-page {
  margin: 0;
  color: var(--blog-ink);
  background:
    radial-gradient(circle at 18% 34%, rgba(126, 88, 34, 0.08) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 76% 68%, rgba(126, 88, 34, 0.06) 0 0.7px, transparent 0.8px),
    var(--blog-cream);
  background-size: 11px 11px, 17px 17px, auto;
  font-family: var(--blog-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.blog-page a {
  color: inherit;
}

.blog-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--blog-ink);
  background: rgba(255, 250, 245, 0.97);
  border-bottom: 1px solid rgba(61, 46, 31, 0.16);
}

.blog-nav-shell {
  width: min(1320px, calc(100% - 44px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blog-forest);
  font-family: var(--blog-brand);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.blog-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}

.blog-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2rem);
}

.blog-nav a {
  color: var(--blog-ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.blog-nav a:not(.blog-play-link):hover,
.blog-nav a:not(.blog-play-link):focus-visible {
  color: var(--blog-terracotta);
}

.blog-play-link,
.blog-page .btn-primary {
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fffaf5 !important;
  background: var(--blog-terracotta) !important;
  border: 2px solid var(--blog-ink) !important;
  border-radius: 0 !important;
  box-shadow: 3px 4px 0 rgba(61, 46, 31, 0.22) !important;
  font-family: var(--blog-display) !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.blog-play-link:hover,
.blog-play-link:focus-visible,
.blog-page .btn-primary:hover,
.blog-page .btn-primary:focus-visible {
  background: var(--blog-terracotta-dark) !important;
  transform: translate(1px, 1px);
}

.blog-menu-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: none;
  place-items: center;
  color: var(--blog-forest);
  background: transparent;
  border: 2px solid var(--blog-forest);
  font-size: 1.25rem;
  cursor: pointer;
}

.blog-page main > section {
  min-height: calc(100vh - 78px) !important;
  padding: clamp(3rem, 7vw, 6rem) 24px !important;
  background: transparent !important;
}

.blog-article main > section > div {
  width: min(880px, 100%) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.blog-article main > section > div > a[href="/blog"] {
  margin: 0 0 1.3rem !important;
  display: inline-flex !important;
  color: var(--blog-terracotta-dark) !important;
  border-bottom: 2px solid var(--blog-terracotta);
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-article main > section > div > header {
  position: relative;
  margin: 0 !important;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) !important;
  color: var(--blog-cream-light);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.035) 0 1px, transparent 1.5px),
    var(--blog-forest);
  background-size: 17px 17px;
  border: 3px solid var(--blog-forest-deep);
  box-shadow: 8px 10px 0 rgba(61, 46, 31, 0.15);
}

.blog-article main > section > div > header::before {
  content: "Infinilearn field guide";
  display: block;
  margin-bottom: 0.9rem;
  color: var(--blog-gold);
  font-family: var(--blog-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-article main > section > div > header h1 {
  max-width: 760px;
  margin: 0 0 1rem !important;
  color: var(--blog-cream-light) !important;
  font-family: var(--blog-display) !important;
  font-size: clamp(2.6rem, 7vw, 5.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.012em !important;
  line-height: 0.95 !important;
  text-transform: uppercase;
}

.blog-article main > section > div > header p {
  margin: 0 !important;
  color: #dfd5c4 !important;
  font-family: var(--blog-body) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

.blog-page article.prose {
  max-width: none !important;
  margin-top: 1.5rem;
  padding: clamp(1.6rem, 5vw, 4.2rem);
  color: var(--blog-ink) !important;
  background: rgba(255, 250, 245, 0.94);
  border: 2px solid var(--blog-line);
  box-shadow: 6px 8px 0 rgba(61, 46, 31, 0.1);
  font-family: var(--blog-body) !important;
}

.blog-page article.prose > p:first-child {
  font-size: 1.16rem !important;
  font-weight: 800;
  line-height: 1.7 !important;
}

.blog-page article.prose p,
.blog-page article.prose li {
  color: var(--blog-ink) !important;
  font-family: var(--blog-body) !important;
  font-size: 1.02rem !important;
  line-height: 1.78 !important;
}

.blog-page article.prose p {
  margin: 0 0 1.35rem !important;
}

.blog-page article.prose h2 {
  margin: 3rem 0 1rem !important;
  padding-top: 1.1rem;
  color: var(--blog-forest) !important;
  border-top: 3px solid var(--blog-gold);
  font-family: var(--blog-display) !important;
  font-size: clamp(2rem, 5vw, 3.15rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
}

.blog-page article.prose h3 {
  margin: 2rem 0 0.8rem !important;
  color: var(--blog-terracotta-dark) !important;
  font-family: var(--blog-display) !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.blog-page article.prose strong {
  color: var(--blog-forest) !important;
  font-weight: 900 !important;
}

.blog-page article.prose a {
  color: var(--blog-terracotta-dark) !important;
  font-weight: 900 !important;
  text-decoration: underline;
  text-decoration-color: rgba(196, 93, 53, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-page article.prose ul,
.blog-page article.prose ol {
  margin: 1.2rem 0 1.7rem !important;
  padding-left: 1.5rem !important;
}

.blog-page article.prose li {
  margin-bottom: 0.65rem !important;
  padding-left: 0.25rem;
}

.blog-page article.prose li::marker {
  color: var(--blog-terracotta);
  font-weight: 900;
}

.blog-page article.prose blockquote {
  margin: 2rem 0 !important;
  padding: 1.3rem 1.5rem !important;
  color: var(--blog-ink) !important;
  background: var(--blog-parchment);
  border: 0 !important;
  border-left: 6px solid var(--blog-terracotta) !important;
  font-style: normal !important;
}

.blog-page article.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.blog-page article.prose th,
.blog-page article.prose td {
  padding: 0.75rem;
  border: 1px solid var(--blog-line);
  text-align: left;
}

.blog-page article.prose th {
  color: var(--blog-cream-light);
  background: var(--blog-forest);
}

.blog-page article.prose .not-prose {
  margin: 2rem 0 !important;
}

.blog-page article.prose .not-prose a,
.blog-page main > section > div > article + div a {
  min-height: 52px;
  padding: 0.75rem 1.25rem !important;
  color: var(--blog-cream-light) !important;
  background: var(--blog-terracotta) !important;
  border: 2px solid var(--blog-ink) !important;
  border-radius: 0 !important;
  box-shadow: 3px 4px 0 rgba(61, 46, 31, 0.2);
  font-family: var(--blog-display) !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  text-transform: uppercase;
}

.blog-page article.prose .not-prose a.btn-secondary,
.blog-page main > section > div > article + div a.btn-secondary {
  color: var(--blog-ink) !important;
  background: var(--blog-gold) !important;
}

.blog-page main > section > div > article + div {
  margin-top: 1.5rem !important;
  padding: clamp(1.8rem, 5vw, 3.5rem) !important;
  color: var(--blog-cream-light);
  background: var(--blog-forest) !important;
  border: 3px solid var(--blog-forest-deep) !important;
  border-radius: 0 !important;
  box-shadow: 6px 8px 0 rgba(61, 46, 31, 0.14);
}

.blog-page main > section > div > article + div h2 {
  margin-bottom: 0.5rem !important;
  color: var(--blog-cream-light) !important;
  font-family: var(--blog-display) !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.blog-page main > section > div > article + div p {
  color: #ded4c4 !important;
  font-family: var(--blog-body) !important;
}

.blog-index main > section {
  padding-top: clamp(3rem, 7vw, 6rem) !important;
}

.blog-index main > section > div {
  width: min(1180px, 100%) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.blog-index main > section > div > div:first-child {
  margin-bottom: 2.2rem !important;
  padding: clamp(2.4rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  color: var(--blog-cream-light);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.035) 0 1px, transparent 1.5px),
    var(--blog-forest);
  background-size: 17px 17px;
  border: 3px solid var(--blog-forest-deep);
  box-shadow: 8px 10px 0 rgba(61, 46, 31, 0.15);
  text-align: left !important;
}

.blog-index main > section > div > div:first-child::before {
  content: "The Infinilearn field guide";
  display: block;
  margin-bottom: 0.8rem;
  color: var(--blog-gold);
  font-family: var(--blog-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-index main h1 {
  margin: 0 0 0.7rem !important;
  color: var(--blog-cream-light) !important;
  font-family: var(--blog-display) !important;
  font-size: clamp(3rem, 8vw, 6rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.012em !important;
  line-height: 0.92 !important;
  text-transform: uppercase;
}

.blog-index main > section > div > div:first-child p {
  max-width: 680px !important;
  margin: 0 !important;
  color: #e4dbcc !important;
  font-family: var(--blog-body) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

.blog-index main > section > div > div:nth-child(2) {
  max-width: none !important;
  margin: 0 0 1.5rem !important;
  display: grid !important;
  grid-template-columns: 1fr 210px;
  gap: 0.8rem !important;
}

.blog-index input,
.blog-index select {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1rem !important;
  color: var(--blog-ink) !important;
  background: var(--blog-cream-light) !important;
  border: 2px solid var(--blog-ink) !important;
  border-radius: 0 !important;
  box-shadow: 3px 4px 0 rgba(61, 46, 31, 0.12);
  font: 800 0.9rem var(--blog-body) !important;
}

.blog-index input:focus,
.blog-index select:focus {
  outline: 3px solid var(--blog-gold) !important;
  outline-offset: 2px;
}

.blog-results-count {
  margin: -0.4rem 0 1rem;
  color: var(--blog-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.blog-index main .grid.gap-6 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.1rem !important;
}

.blog-index main .grid.gap-6 > a {
  min-width: 0;
  min-height: 250px;
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  color: var(--blog-ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(137, 93, 42, 0.08) 0 1px, transparent 1.5px),
    var(--blog-cream-light) !important;
  background-size: 15px 15px !important;
  border: 2px solid var(--blog-line) !important;
  border-radius: 0 !important;
  box-shadow: 4px 5px 0 rgba(61, 46, 31, 0.1);
  text-decoration: none;
  transform: none !important;
}

.blog-index main .grid.gap-6 > a:hover,
.blog-index main .grid.gap-6 > a:focus-visible {
  background-color: var(--blog-parchment) !important;
  border-color: var(--blog-terracotta) !important;
  transform: translateY(-3px) !important;
}

.blog-index main .grid.gap-6 > a > p:first-child {
  margin: 0 0 0.65rem !important;
  color: var(--blog-terracotta-dark) !important;
  font-family: var(--blog-display) !important;
  font-size: 0.69rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-index main .grid.gap-6 > a h2 {
  margin: 0 0 0.75rem !important;
  color: var(--blog-forest) !important;
  font-family: var(--blog-display) !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}

.blog-index main .grid.gap-6 > a > p:last-child {
  margin: 0 !important;
  color: var(--blog-muted) !important;
  font-family: var(--blog-body) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

.blog-site-footer {
  padding: 3rem max(24px, calc((100% - 1180px) / 2)) 1.2rem;
  color: var(--blog-cream-light);
  background: var(--blog-forest-deep);
}

.blog-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.blog-footer-about p {
  max-width: 300px;
  margin: 1rem 0 0;
  color: #cfc3b1;
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-footer-address {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.35rem;
  color: #a99d8c;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.blog-footer-address a {
  width: fit-content;
  color: var(--blog-gold);
  text-decoration: none;
}

.blog-footer-address a:hover,
.blog-footer-address a:focus-visible {
  color: #ffe5a4;
}

.blog-footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-footer-column strong {
  margin-bottom: 0.3rem;
  color: var(--blog-gold);
  font-family: var(--blog-display);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.blog-footer-column a {
  color: #e6dccd;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-footer-column a:hover,
.blog-footer-column a:focus-visible {
  color: var(--blog-gold);
}

.blog-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #a99d8c;
  font-size: 0.62rem;
  font-weight: 700;
}

.blog-footer-bottom div {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .blog-menu-toggle {
    display: grid;
  }

  .blog-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    padding: 1rem 22px 1.2rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--blog-cream-light);
    border-bottom: 3px solid var(--blog-forest);
  }

  .blog-nav.is-open {
    display: flex;
  }

  .blog-nav a {
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(61,46,31,0.12);
  }

  .blog-play-link {
    margin-top: 0.6rem;
  }

  .blog-index main .grid.gap-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .blog-footer-grid {
    grid-template-columns: 1.2fr repeat(2, 0.8fr);
  }

  .blog-footer-column:last-child {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  body.blog-page {
    font-size: 16px;
  }

  .blog-nav-shell {
    width: calc(100% - 32px);
    min-height: 70px;
  }

  .blog-brand {
    font-size: 1.25rem;
  }

  .blog-brand img {
    width: 34px;
    height: 34px;
  }

  .blog-nav {
    top: 70px;
  }

  .blog-page main > section {
    padding: 2.2rem 16px 3.5rem !important;
  }

  .blog-article main > section > div > header {
    padding: 2rem 1.25rem !important;
  }

  .blog-article main > section > div > header h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem) !important;
  }

  .blog-page article.prose {
    margin-top: 0.9rem;
    padding: 1.5rem 1.15rem;
  }

  .blog-page article.prose p,
  .blog-page article.prose li {
    font-size: 0.98rem !important;
    line-height: 1.72 !important;
  }

  .blog-page article.prose h2 {
    font-size: 2rem !important;
  }

  .blog-page article.prose .not-prose {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .blog-page article.prose .not-prose a,
  .blog-page main > section > div > article + div a {
    width: 100%;
  }

  .blog-index main > section > div > div:first-child {
    padding: 2.2rem 1.25rem;
  }

  .blog-index main h1 {
    font-size: clamp(3rem, 17vw, 4.4rem) !important;
  }

  .blog-index main > section > div > div:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .blog-index main .grid.gap-6 {
    grid-template-columns: 1fr !important;
  }

  .blog-index main .grid.gap-6 > a {
    min-height: 0;
  }

  .blog-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-footer-about {
    grid-column: 1 / -1;
  }

  .blog-footer-column:last-child {
    grid-column: auto;
  }

  .blog-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-page *,
  .blog-page *::before,
  .blog-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
