@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700");

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

:root {
  --green: #0d501d;
  --green-soft: #edf5ee;
  --gold: #ffd05a;
  --rose: #f8eeee;
  --rose-text: #6f2b32;
  --parchment: #f6f1e4;
  --ink: rgba(13, 80, 29, 0.78);
  --border: rgba(13, 80, 29, 0.14);
  --shadow: 0 16px 36px rgba(13, 80, 29, 0.14);
  --width: 1180px;
  --width-text: 860px;
  --font-size-h1: clamp(2.011rem, 2.778vw + 1.456rem, 3.713rem);
  --font-size-h2: clamp(1.749rem, 1.808vw + 1.388rem, 2.856rem);
  --font-size-h3: clamp(1.521rem, 1.104vw + 1.3rem, 2.197rem);
  --font-size-h4: clamp(1.322rem, 0.6vw + 1.202rem, 1.69rem);
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Montserrat, serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

p + p,
p + ol,
ol + h3,
.flow > * + * {
  margin-top: 1rem;
}

ol,
ul {
  padding-left: 1.2rem;
}

p,
li,
ol {
  font-family: Montserrat, serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner,
.social-band__inner,
.section-inner {
  margin: 0 auto;
  max-width: var(--width);
  padding-left: 32px;
  padding-right: 32px;
}

.site-header__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
  padding-top: 24px;
}

.site-logo img {
  max-height: 120px;
}

.site-logo {
  align-self: center;
  display: inline-block;
}

.site-logo img {
  margin: 0 auto;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(13, 80, 29, 0.76);
  display: block;
  font-family: Montserrat, serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  padding: 8px 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: Montserrat, sans-serif;
  letter-spacing: -1px;
  text-transform: none;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 600;
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: 400;
  line-height: 1.1;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 400;
  line-height: 1.2;
}

h4 {
  font-size: calc(var(--font-size-h4) / 1.1);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

button,
input,
textarea,
select {
  font-family: Montserrat, serif;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus {
  color: var(--green);
}

.site-main {
  background: #fff;
}

.site-section {
  background: #fff;
}

.site-section--rose {
  background: var(--rose);
  color: var(--rose-text);
}

.site-section--parchment {
  background: var(--parchment);
}

.site-section--green {
  background: var(--green-soft);
}

.site-section--white {
  background: #fff;
}

.site-section--shuffler {
  background: #000;
  color: #fff;
}

.site-section--shuffler .section-heading,
.site-section--shuffler a {
  color: #fff;
}

.site-main > .site-section:nth-of-type(odd):not(.site-section--rose):not(.site-section--parchment):not(.site-section--green):not(.site-section--white):not(.site-section--shuffler) {
  background: #fff;
}

.site-main > .site-section:nth-of-type(even):not(.site-section--rose):not(.site-section--parchment):not(.site-section--green):not(.site-section--white):not(.site-section--shuffler) {
  background: var(--green-soft);
}

.site-section--compact .section-inner {
  padding-bottom: 36px;
  padding-top: 36px;
}

.section-inner {
  padding-bottom: 72px;
  padding-top: 72px;
}

.section-inner--text {
  max-width: var(--width-text);
}

.section-header {
  margin: 0 auto 32px;
  max-width: var(--width-text);
  text-align: center;
}

.section-header img {
  margin: 24px auto 0;
}

.section-header--sub {
  margin-top: 42px;
}

.resource-grid + .section-header--sub {
  margin-top: 48px;
}

.page-heading {
  color: var(--green);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.6rem, 0.45vw + 1.48rem, 1.9rem);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: none;
}

.section-heading {
  color: var(--green);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.36rem, 0.34vw + 1.28rem, 1.55rem);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.2;
  text-transform: none;
}

.subsection-heading {
  color: var(--green);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.2rem, 0.24vw + 1.14rem, 1.34rem);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.25;
  text-transform: none;
}

.site-section--rose .section-heading,
.site-section--rose .subsection-heading,
.site-section--rose .page-heading {
  color: var(--rose-text);
}

.intro {
  font-size: 1.22rem;
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--center {
  align-items: center;
}

.feature-image {
  box-shadow: var(--shadow);
}

.grove-youtube .feature-image {
  margin: 0 auto;
  width: 80%;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card img {
  margin-bottom: 18px;
}

.button,
button.button,
.content-button {
  background: var(--gold);
  border: 0;
  border-radius: 4px;
  color: var(--green);
  cursor: pointer;
  display: inline-block;
  font-family: Montserrat, serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  padding: 15px 22px;
  text-transform: uppercase;
}

.button:hover,
.button:focus,
.content-button:hover,
.content-button:focus {
  background: #ffc941;
  text-decoration: none;
}

.button--green {
  background: var(--green);
  color: #fff;
}

.button--secondary {
  background: #fff;
  border: 1px solid var(--border);
}

.social-band {
  background: var(--gold);
}

.social-band__inner {
  padding-bottom: 25px;
  padding-top: 25px;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.social-link {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.social-link svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.site-footer {
  background: #fff;
  color: rgba(13, 80, 29, 0.64);
  text-align: center;
}

.site-footer__inner {
  padding-bottom: 28px;
  padding-top: 28px;
}

.about-playlists {
  margin: 22px 0;
}

.about-playlists p {
  border-top: 1px solid rgba(111, 43, 50, 0.16);
  margin: 0;
  padding: 8px 0;
}

.about-playlists p:last-child {
  border-bottom: 1px solid rgba(111, 43, 50, 0.16);
}

.about-playlists strong {
  color: var(--rose-text);
  display: inline-block;
  min-width: 48px;
}

.book-card,
.product-card {
  display: flex;
  flex-direction: column;
}

.book-card img,
.product-card img {
  max-height: 320px;
  object-fit: contain;
}

.books-journals .page-heading {
  margin-bottom: 46px;
  text-align: center;
}

.books-journals .grid {
  gap: 38px 28px;
}

.journal-feature {
  column-gap: 24px;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  margin-bottom: 54px;
  text-align: left;
}

.journal-feature .feature-image {
  box-shadow: none;
  justify-self: end;
  margin: 0;
  max-height: 420px;
  object-fit: contain;
}

.journal-archive-heading {
  margin: 0 auto 32px;
  max-width: var(--width-text);
  text-align: center;
}

.journal-archive-heading p {
  margin-top: 10px;
}

.books-journals .card {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
}

.books-journals .book-card img {
  margin: 0 auto 14px;
}

.books-journals .subsection-heading {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.books-journals .link-list {
  justify-content: center;
  margin-top: 0;
}

.books-featured .grid {
  align-items: start;
}

.books-featured .card {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
}

.books-featured .book-card > a:first-child {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 320px;
}

.books-featured .book-card img {
  margin: 0 auto 18px;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.book-card .link-list {
  justify-content: center;
}

.gallery-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.fieldbook-promo {
  align-items: center;
  background: #fff;
  border: 2px solid rgba(46, 78, 46, 0.09);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(32, 48, 32, 0.08);
  display: flex;
  gap: 24px;
  margin: 0 auto;
  max-width: 760px;
  padding: 18px;
}

.fieldbook-promo__image {
  flex: 0 0 156px;
}

.fieldbook-promo__image img {
  display: block;
  height: auto;
  width: 100%;
}

.fieldbook-promo__content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.fieldbook-promo__content p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.fieldbook-promo__note {
  color: var(--text-muted);
}

.fieldbook-promo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.oracle-hero .section-header {
  max-width: min(100%, 1180px);
}

.oracle-hero .section-inner {
  padding-bottom: 48px;
}

.oracle-hero .intro {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--width-text);
}

.oracle-hero__image-link {
  display: block;
  margin: 28px auto 0;
  max-width: 1180px;
  width: 100%;
}

.oracle-hero__image-link img {
  width: 100%;
}

.oracle-hero__cta {
  margin-top: 36px;
}

.explore-actions,
.tree-browser {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.grove-today {
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
}

.home-grove-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 28px;
  padding: 24px;
}

.grove-today .explore-actions,
.tree-browser {
  justify-content: center;
}

.grove-year-link {
  margin-top: 14px;
}

.tree-select,
input,
textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--green);
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.tree-select {
  appearance: none;
  background: var(--gold);
  border: 0;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 1px;
  max-width: 220px;
  text-transform: uppercase;
  text-align: center;
  text-align-last: center;
}

.tree-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.tree-arrow:hover,
.tree-arrow:focus {
  background: var(--green-soft);
}

.tree-result {
  margin: 0;
}

.tree-result strong,
.tree-result span {
  display: block;
}

.tree-result strong {
  color: var(--green);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.8;
}

.oracle-experiments {
  display: grid;
  gap: 24px;
}

.oracle-experiments {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oracle-experiments--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oracle-experiments--stacked {
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: var(--width-text);
}

.shuffler-feature {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--width-text);
}

.shuffler-feature .feature-image {
  margin: 0 auto;
  max-height: 420px;
  object-fit: contain;
}

.shuffler-feature p {
  font-size: 0.875rem;
  margin-top: 14px;
}

.shuffler-feature p a {
  color: var(--gold);
}

.chart-feature,
.ogham-feature,
.ancestors-feature {
  text-align: center;
  margin: 0 auto;
  max-width: var(--width-text);
}

.chart-feature .feature-image,
.ogham-feature .feature-image,
.ancestors-feature .feature-image {
  box-shadow: none;
  margin: 0 auto;
  max-width: 820px;
  width: 80%;
}

.chart-feature p,
.ogham-feature p,
.ancestors-feature p {
  font-size: 0.875rem;
  margin-top: 14px;
}

.feature-link-strong a {
  font-weight: 700;
}

.external-action {
  margin-top: 24px;
  text-align: center;
}

.section-action {
  margin-top: 32px;
  text-align: center;
}

.explore-card {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-top: 20px;
}

.explore-card__image {
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(13, 80, 29, 0.18);
}

.contact-form {
  margin: 0 auto;
  max-width: 760px;
}

.form-group {
  margin-bottom: 18px;
}

label,
legend {
  color: var(--green);
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.loading-spinner.hidden {
  display: none;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 900px) {
  .site-header__inner {
    align-items: stretch;
  }

  .nav-toggle {
    align-self: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--green);
    display: block;
    font-weight: 700;
    padding: 10px 14px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .navigation-open .site-nav {
    display: flex;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .oracle-experiments {
    grid-template-columns: 1fr;
  }

  .journal-feature .feature-image {
    justify-self: center;
    margin: 0 auto;
  }

  .fieldbook-promo {
    display: block;
    padding: 16px;
    text-align: center;
  }

  .fieldbook-promo__image {
    margin: 0 auto 22px;
    max-width: 320px;
  }

  .fieldbook-promo__content {
    text-align: center;
  }

  .fieldbook-promo__links {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .site-header__inner,
  .site-footer__inner,
  .social-band__inner,
  .section-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-inner {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .tree-browser {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .tree-select {
    max-width: 170px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .tree-arrow {
    height: 40px;
    width: 40px;
  }
}
