:root {
  --lime: #d1e880;
  --lime-soft: #e4f0a6;
  --paper: #f7fbe4;
  --pith: #eef6c6;
  --rind: #428535;
  --forest: #1f4a1d;
  --ink: #17301a;
  --melon: #f76c57;
  --melon-deep: #eb5e54;
  --seed: #524327;
  --muted: #476343;
  --white: #ffffff;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --page: min(1160px, 100% - 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.grow {
  flex: 1 1 auto;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 800 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn i {
  font-size: 1.25em;
}

.btn-melon {
  background: var(--melon);
}

.btn-ink {
  background: var(--ink);
  color: var(--lime);
}

.btn-line {
  background: transparent;
}

.btn-big {
  padding: 0.95rem 1.6rem;
  font-size: 1.08rem;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  box-shadow: 0 3px 0 var(--ink);
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--lime);
  border-bottom: 2px solid var(--ink);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: var(--page);
  min-height: 4.25rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rind);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: auto;
}

.topnav {
  display: flex;
  gap: 1.5rem;
  margin-inline-start: 1rem;
  font-weight: 800;
}

.topnav a {
  text-decoration: none;
}

.topnav a:hover,
.topnav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.topactions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: auto;
}

.topactions form {
  margin: 0;
}

.me {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  text-decoration: none;
}

.me img,
.me-fallback {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}

.me-fallback {
  display: grid;
  place-items: center;
}

.me span:last-child {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitefoot {
  padding: 4rem 0 2rem;
  background: var(--forest);
  color: var(--lime);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  width: var(--page);
  margin-inline: auto;
}

.sitefoot .brand {
  color: var(--lime);
}

.foot-brand p {
  max-width: 20rem;
  margin: 1rem 0 0;
  color: #cfe39a;
}

.foot-col {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.foot-col h2 {
  margin-bottom: 0.3rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  text-decoration: none;
}

.foot-col a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.foot-col i {
  font-size: 1.2rem;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  width: var(--page);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(209, 232, 128, 0.25);
  color: #bfd48a;
  font-size: 0.95rem;
}

.foot-bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .topnav {
    display: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .me span:last-child {
    display: none;
  }
}

@media (max-width: 520px) {
  .topactions > a.btn-line {
    display: none;
  }

  .brand {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
