@font-face {
  font-family: "Marhey";
  src: url("/fonts/Marhey-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Marhey";
  src: url("/fonts/Marhey-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
}

:root {
  color-scheme: light;
  --accent: #40ad6b;
  --gold: #f2b849;
  --deep: #1f6b4d;
  --nest-brown: #8a5c38;
  --background-top: #f7f4ed;
  --background-bottom: #e5f2e5;
  --card: rgba(252, 252, 247, 0.82);
  --card-highlight: rgba(255, 255, 255, 0.88);
  --card-shadow: rgba(25, 35, 28, 0.12);
  --text-primary: #171d18;
  --text-secondary: rgba(23, 29, 24, 0.68);
  --border: rgba(255, 255, 255, 0.62);
  --page-max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    linear-gradient(145deg, var(--background-top) 0%, var(--background-bottom) 100%);
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.9;
}

.orb-left {
  top: 6rem;
  left: -7rem;
  width: 22rem;
  height: 22rem;
  background: rgba(64, 173, 107, 0.22);
}

.orb-right {
  top: 3rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(242, 184, 73, 0.24);
}

.orb-bottom {
  right: 4rem;
  bottom: -6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(64, 173, 107, 0.16);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--page-max));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: "Marhey", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent);
}

.brand-inline img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 24px var(--card-shadow);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.hero-card,
.info-card,
.legal-card,
.admin-note {
  background: var(--card);
  backdrop-filter: blur(22px);
  border: 1.25px solid var(--card-highlight);
  box-shadow: 0 18px 40px var(--card-shadow);
}

.hero-card {
  border-radius: 2rem;
  padding: 2rem;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 1.25rem;
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.04;
}

.brand-mark {
  width: 6rem;
  height: 6rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 1.65rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-mark img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Marhey", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  color: var(--nest-brown);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: 0.75rem;
}

.info-card h2 {
  font-weight: 400;
}

.legal-card h2 {
  font-weight: 400;
}

.app-brand-title {
  color: var(--accent);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  margin-top: 0.35rem;
}

.app-tagline {
  margin: 0.35rem 0 0;
  font-family: "Marhey", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  color: var(--nest-brown);
}

.lede,
.legal-card p,
.info-card p,
.admin-note,
.meta-line {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.lede {
  max-width: 42rem;
  margin: 0.95rem 0 0;
  font-size: 0.98rem;
}

.meta-line {
  margin: 1rem 0 0;
}

.legal-card ul,
.info-card ul {
  margin: 0.35rem 0 1rem;
  padding: 0;
  list-style: none;
}

.legal-card li,
.info-card li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.legal-card li::before,
.info-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-secondary);
}

.legal-card li + li,
.info-card li + li {
  margin-top: 0.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fdfcf7;
  box-shadow: 0 12px 24px rgba(64, 173, 107, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent);
  border: 1px solid rgba(138, 92, 56, 0.22);
  box-shadow: 0 10px 20px rgba(138, 92, 56, 0.08);
}

.card-link-button {
  min-height: 2.75rem;
  margin-top: 0.55rem;
  padding: 0.72rem 1.1rem;
  align-self: flex-start;
  border: 1px solid rgba(138, 92, 56, 0.22);
  box-shadow: 0 10px 20px rgba(138, 92, 56, 0.08);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid {
  margin-top: 1.25rem;
}

.info-card,
.legal-card,
.admin-note {
  border-radius: 1.6rem;
  padding: 1.35rem 1.35rem 1.2rem;
}

.text-link {
  color: var(--nest-brown);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.legal-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.legal-card h2 {
  max-width: none;
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
}

.admin-note {
  margin-top: 1.25rem;
  border-color: rgba(242, 184, 73, 0.7);
  color: var(--deep);
  background: rgba(255, 249, 237, 0.9);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}

@media (max-width: 820px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-card {
    padding: 1.5rem;
  }

  h1,
  .app-brand-title,
  .app-tagline {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 1rem), var(--page-max));
    padding-top: 0.75rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
