@font-face {
  font-family: "Cabin";
  src: url("/assets/fonts/cabin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/assets/fonts/josefin-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
:root {
  --ink: #1b1b1b;
  --body: #5e5e5e;
  --green: #4cad49;
  --link: #327530;
  --nav-background: #f6f6f6;
  --gutter: 1.5rem;
  --section-space: 2.5rem;
  --wrap-width: 100%;
  --heading-font: "Cabin", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--body); background: white; font: 1rem/1.5 "Josefin Sans", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, blockquote { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; }
a { color: var(--link); text-underline-offset: .16em; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #28612a; outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 4; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }

.navigation-bar { background: var(--nav-background); color: var(--ink); }
.desktop-nav, .site-footer nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.desktop-nav { min-height: 4rem; gap: .9rem; }
.desktop-nav a, .site-footer nav a, .mobile-nav nav a {
  padding: .4rem; font-size: .875rem; color: var(--ink); text-decoration: none;
  text-transform: uppercase; letter-spacing: .143em;
}
.desktop-nav a:hover, .site-footer nav a:hover, .mobile-nav nav a:hover { text-decoration: underline; }
.desktop-nav [aria-current], .desktop-nav .current-section, .mobile-nav [aria-current], .mobile-nav .current-section { color: var(--link); font-weight: 600; }
.mobile-nav { display: none; }
.masthead { padding: 1.5rem var(--gutter); text-align: center; }
.site-name {
  display: inline-block; text-decoration: none; color: var(--ink); text-transform: uppercase;
  font: 700 2.375rem/1.2 var(--heading-font); letter-spacing: 1px;
}
.tagline { margin: .5rem auto 0; font: inherit; line-height: 1.25; text-transform: uppercase; letter-spacing: .143em; color: #555; }
.site-footer { padding: var(--section-space) var(--gutter); text-align: center; }
.site-footer nav { gap: 0 .6rem; }
.social-links { margin: 2.5rem auto; display: flex; justify-content: center; gap: .25rem; }
.social-links a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--ink); }
.site-footer p { color: #666; font-size: .875rem; }

.wrap { width: min(100%, var(--wrap-width)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { width: calc((100% + 3rem) * 2 / 3 - 3rem); margin-inline: auto; }
.page-section { padding-block: var(--section-space); }
.section-title {
  margin: 0 0 var(--section-space); border-bottom: 1px solid #808080; padding-bottom: 1rem;
  font: 700 1.375rem/1.4 var(--heading-font); text-transform: uppercase; letter-spacing: 1px;
}
.subtitle, .book-copy h2, .book-copy h3 { margin: 0 0 1.5rem; font-size: 1.375rem; line-height: 1.25; }
.prose { overflow-wrap: anywhere; }
.prose p, .prose ul, .prose h2, .prose h3, .prose h4 { margin: 0; }
.prose .new-paragraph { margin-top: 1.5em; }
.prose ul { padding-left: 1.65em; }
.prose li + li { margin-top: .2em; }
.prose a { color: var(--link); }
.prose h2, .prose h3, .prose h4 { font-size: 1.375rem; }
.button-link {
  display: inline-flex; justify-content: center; align-items: center; min-height: 3.5rem; padding: .5rem 2rem;
  color: #000; background: var(--green); text-align: center; text-decoration: none;
  font-size: .875rem; font-weight: 600; letter-spacing: .143em; text-transform: uppercase;
}
.button-link:hover { background: #40923e; }
.home-actions { display: grid; gap: 1rem; }
.profile-layout, .contact-layout { display: grid; gap: 3rem; align-items: start; }
.profile-layout { grid-template-columns: repeat(2,minmax(0,1fr)); font-size: 1.125rem; }
.contact-layout { grid-template-columns: minmax(0,2.14fr) minmax(0,1fr); }
.profile-layout img, .contact-layout img { width: 100%; }
.contact-action, .download-description, .book-quote { text-align: center; }
.contact-action p { margin-top: .6rem; }
.download-description { font-size: 1.125rem; }
.download-box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem; border: 1px solid #ddd; margin-top: var(--section-space);
  color: var(--ink); background: #fafafa; text-decoration: none;
}
.download-box:hover { background: #f3f3f3; text-decoration: none; }
.download-action { color: var(--link); font-weight: 600; white-space: nowrap; }
.paper + .paper { margin-top: 2rem; }
.paper h3 { font-size: 1rem; margin-bottom: 1.5rem; }
.book-quote { font-size: 1.25rem; }
.book-cover { width: 100%; }
.book-copy .prose { margin-bottom: 1.5rem; }
.book-copy .prose h2 { margin: 1.3rem 0 .4rem; }
.book-language { background: linear-gradient(#0004,#0004), url("/assets/images/chalkboard.jpg") center / cover; }
.book-language .wrap { display: flex; justify-content: space-evenly; gap: 2rem; align-items: center; padding-block: 1.5rem; }
.book-language h2, .reviews-title { font: 700 2.75rem/1.2 var(--heading-font); letter-spacing: 1px; text-transform: uppercase; color: white; }
.review-section { background: linear-gradient(#0009,#0009), url("/assets/images/review-background.jpg") center / cover; }
.reviews-title { text-align: center; margin-bottom: 2rem; }
.reviews { display: grid; gap: 1.5rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.review { padding: 1.5rem; text-align: center; background: white; }
.review img { border-radius: 50%; width: 4rem; height: 4rem; object-fit: cover; margin: 0 auto .75rem; }
.review h3 { font-size: 1.375rem; }
.review p, .review blockquote { margin-top: .8rem; }
.rating { color: #685326; letter-spacing: .1em; }

@media (min-width: 64rem) { :root { --wrap-width: 61.5rem; } }
@media (min-width: 80rem) { :root { --wrap-width: 72.5rem; } .site-name { font-size: 2.75rem; } }
@media (min-width: 96rem) { :root { --wrap-width: 80rem; } body { font-size: 1.125rem; } .site-name { font-size: 3rem; } }
@media (max-width: 63.99rem) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; padding: 1.5rem; cursor: pointer; color: var(--ink); }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .menu-icon { display: inline-block; width: 1.2rem; height: .9rem; border-block: 2px solid currentColor; position: relative; margin-inline: .6rem; vertical-align: -.05rem; }
  .menu-icon::after { content: ""; position: absolute; left: 0; top: 40%; width: 100%; border-top: 2px solid; }
  .mobile-nav nav { display: grid; padding: .25rem 1.5rem 1rem; }
  .mobile-nav nav a { padding: .65rem; border-top: 1px solid #ddd; }
}
@media (max-width: 47.99rem) {
  :root { --section-space: 2rem; }
  .mobile-nav summary { min-height: 5.5rem; display: flex; align-items: center; }
  .site-name { font-size: 2rem; }
  .tagline { max-width: 22rem; }
  .measure { width: 100%; }
  .section-title { margin-bottom: 1.5rem; }
  .profile-layout, .contact-layout, .reviews { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-layout img { max-width: 25rem; }
  .download-box { flex-wrap: wrap; }
  .book-language .wrap { flex-direction: column; text-align: center; }
  .book-language h2, .reviews-title { font-size: 2rem; }
}
