:root {
  --green-dark: #1c2a1a;
  --cream: #f7f5ee;
  --ink: #1f261d;
  --white: #fff;
  --link: #3d6b2a;
  --link-accent: #8AAF5F;
  --font-sans: "League Spartan", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

main { flex: 1; }

/* Navigation */
.site-nav { background: var(--green-dark); padding: 1.5rem 1rem; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(1.25rem, 4vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.site-nav a[aria-current="page"] {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
}

a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.site-nav a:focus-visible { outline-color: var(--white); }

/* Content links */
.layout-default main a {
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--link-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: background-color 0.2s, text-decoration-color 0.2s;
}

.layout-default main a:hover {
  background-color: rgb(138 175 95 / 0.25);
  text-decoration-color: var(--link);
}

.layout-default main :is(h1, h2) a { text-decoration-thickness: 3px; }

/* Home */
.layout-home {
  background:
    linear-gradient(rgb(0 0 0 / 0.5), rgb(0 0 0 / 0.5)),
    url("../images/hero-field.jpg") center / cover no-repeat fixed var(--green-dark);
}

.layout-home .site-nav { background: transparent; padding-top: clamp(2rem, 6vw, 4rem); }

.layout-home main { display: flex; align-items: center; justify-content: center; }

.hero { width: 100%; padding: 2rem 1rem; }

.hero__logo { max-width: 960px; margin: 0 auto; }

.hero__logo img { display: block; width: 100%; height: auto; }

/* Inner pages */
.layout-default main {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.layout-default h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }

/* Founder */
.founder { margin-bottom: 2rem; }
.founder__header { text-align: center; margin-bottom: 2rem; }
.founder__photo { display: block; width: 180px; max-width: 50%; height: auto; margin: 0 auto 1rem; border-radius: 28%; }
.founder__name { margin: 0; font-weight: 700; }
.founder__title { margin: 0; opacity: 0.7; }
.founder > p, .founder > blockquote { margin: 0 0 1rem; }
.founder blockquote { padding-left: 1rem; border-left: 3px solid var(--green-dark); }

/* Footer */
.site-footer { position: relative; padding: 1.5rem 1rem; text-align: center; font-size: 0.875rem; }
.site-footer p { margin: 0; }
.layout-home .site-footer { color: var(--white); }
.site-footer .social-link { color: inherit; display: inline-flex; transition: opacity .2s; }
.site-footer .social-link:hover,
.site-footer .social-link:focus-visible { opacity: .7; }
.site-footer .photo-credit {
  position: absolute; right: 1.25rem; bottom: 1.5rem;
  font-size: .9rem; opacity: .8;
}
@media (max-width: 600px) {
  .site-footer .photo-credit { position: static; margin-top: 1rem; }
}
.site-footer .photo-credit a { color: inherit; }

/* iOS ignores fixed backgrounds on narrow screens */
@media (max-width: 800px) {
  .layout-home { background-attachment: scroll; }
}
