:root {
  --color-bg: #ffffff;
  --color-surface: #f6f7f5;
  --color-text: #10130f;
  --color-muted: #46493f;
  --color-border: #10130f;
  --color-accent: #66da79;
  --color-accent-text: #10130f;
  --max-width: 72rem;
  --content-width: 42rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Unbounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a {
  color: var(--color-text);
}

h1, h2, h3 {
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* scroll header */

.scroll-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(102, 218, 121, 0) 100%);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.scroll-header.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  height: 1.75rem;
  width: auto;
  display: block;
}

.site-logo-white {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
}

.site-nav a:hover {
  opacity: 0.75;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.btn-primary:hover {
  background: var(--color-text);
  color: #ffffff;
}

/* hero */

.hero {
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 2rem;
  align-items: center;
}

.hero-logo {
  height: clamp(4rem, 9vw, 7rem);
  width: auto;
  display: block;
  margin: 0 0 2rem;
}

.hero-lead {
  font-size: 1.25rem;
  max-width: 30rem;
}

.hero-text .btn {
  margin-top: 1.5rem;
}

.hero-graphic img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 48rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    max-width: 20rem;
  }
}

/* info grid */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 3rem;
  margin: 6rem 0;
}

.info-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.info-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* feed grid */

.feed-section {
  margin: 5rem 0;
}

.feed-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.feed-card {
  position: relative;
  padding: 1.5rem;
  border: 2px solid var(--color-border);
}

.feed-card:hover {
  background: var(--color-surface);
}

.feed-card h3 {
  font-size: 1.125rem;
  margin: 1rem 0 0.25rem;
}

.feed-card-link {
  text-decoration: none;
  color: var(--color-text);
}

.feed-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.feed-card-region {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* badges */

.badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--color-text);
  color: #ffffff;
  margin-right: 0.4rem;
}

.badge-format {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

/* feed page */

.back-link {
  display: inline-block;
  margin: 6rem 0 1.5rem;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--color-text);
}

.feed-page h1 {
  font-size: 2.5rem;
  margin: 1rem 0 1.5rem;
}

.feed-meta-table {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  max-width: var(--content-width);
}

.feed-meta-table dt {
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feed-meta-table dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  overflow-wrap: break-word;
  min-width: 0;
}

.feed-body {
  max-width: var(--content-width);
  margin-top: 2rem;
}

.feed-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}

.feed-body th,
.feed-body td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
}

.feed-body th {
  font-weight: 700;
  background: var(--color-surface);
}

/* guide / generic content pages */

main > h1:first-child {
  font-size: 2.5rem;
  max-width: var(--content-width);
  margin-top: 6rem;
}

main > p, main > ol, main > ul {
  max-width: var(--content-width);
}

/* footer */

.site-footer {
  margin-top: 6rem;
}

.site-footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.site-footer-top a {
  text-decoration: none;
}

.site-footer-top a:hover {
  color: var(--color-accent);
}

.site-footer-logo {
  overflow: hidden;
  height: clamp(3rem, 8vw, 6rem);
  padding: 0 1.5rem;
}

.site-footer-logo img {
  width: min(100%, 50rem);
  height: auto;
  display: block;
}
