:root {
  --bg: #1b130e;
  --bg-2: #241a13;
  --card: #2c2018;
  --card-hover: #36281e;
  --line: #4a3626;
  --text: #f6ead9;
  --muted: #c7b29a;
  --faint: #8f7a64;
  --wood: #c98a4b;
  --wood-dark: #8a5527;
  --amber: #f2b45c;
  --ok: #9fd38a;
  --err: #ff9a85;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(201,138,75,.22), transparent 55%),
    repeating-radial-gradient(circle at 50% 0%, transparent 0 34px, rgba(201,138,75,.045) 34px 36px);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
}
main {
  width: 100%;
  max-width: 460px;
  /* Extra bottom room: Netlify's free plan pins a "Powered by Netlify" badge to the bottom-right corner. */
  padding: calc(40px + env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tree-ring badge */
.badge {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 200deg, var(--amber), var(--wood), var(--wood-dark), var(--wood), var(--amber));
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 6px rgba(201,138,75,.10);
}
.badge svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.badge.small { width: 64px; height: 64px; padding: 3px; }

h1 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .2px;
  line-height: 1.1;
  margin: 18px 0 6px;
  text-align: center;
}
h2 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  max-width: 340px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(242,180,92,.10);
  border: 1px solid rgba(242,180,92,.25);
  padding: 5px 11px;
  border-radius: 999px;
}
.section-label {
  align-self: flex-start;
  margin: 26px 2px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--faint);
}

/* Link rows */
nav { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.link:hover { background: var(--card-hover); border-color: var(--wood); }
.link:active { transform: scale(.98); }
.link:focus-visible, .btn:focus-visible, .back:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.link.featured {
  background: linear-gradient(135deg, #3a2819, #2c2018 70%);
  border-color: var(--wood);
}
.icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
}
.icon svg { width: 24px; height: 24px; fill: currentColor; }
.i-tiktok { background: #000; box-shadow: inset 0 0 0 1px #333; }
.i-tiktok svg { filter: drop-shadow(1.5px 1px 0 #fe2c55) drop-shadow(-1.5px -1px 0 #25f4ee); }
.i-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.i-youtube { background: #ff0033; }
.i-facebook { background: #0866ff; }
.i-x { background: #000; box-shadow: inset 0 0 0 1px #333; }
.i-x svg { width: 20px; height: 20px; }
.i-wood { background: linear-gradient(135deg, var(--wood), var(--wood-dark)); }
.i-wood svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-letter {
  background: #3b2a1d;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--amber);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.label strong { font-size: 17px; font-weight: 800; }
.label span {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.label span.wrap { white-space: normal; line-height: 1.35; }
.arrow { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.link:hover .arrow { transform: translateX(3px); color: var(--amber); }

/* Cards and forms */
.card {
  width: 100%;
  background: linear-gradient(160deg, #3a2819, var(--card) 65%);
  border: 1px solid var(--wood);
  border-radius: 20px;
  padding: 20px 18px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.card.plain { background: var(--card); border-color: var(--line); box-shadow: none; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text); }
.field .opt { font-weight: 500; color: var(--faint); }
input[type=email], input[type=text], input[type=url], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px stops iOS from zooming into the field */
  color: var(--text);
  background: #1f1610;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: #7d6a57; }
input:focus, textarea:focus, select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,180,92,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; font-size: 14px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--amber); }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--wood));
  color: #2a1a0d;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .65; cursor: progress; }
.fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--faint); text-align: center; }
.fine a { color: var(--amber); text-underline-offset: 2px; }
.status { margin: 12px 0 0; font-size: 15px; font-weight: 700; text-align: center; min-height: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.hidden { display: none !important; }
.done { text-align: center; padding: 8px 0 4px; }
.done strong { display: block; font-family: "Fredoka", sans-serif; font-size: 22px; margin-bottom: 4px; color: var(--text); }
.done span { color: var(--muted); font-size: 15px; }

/* Two small cards side by side */
.duo { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo .link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 0; }
.duo .label strong { font-size: 16px; }
.duo .label span { white-space: normal; line-height: 1.35; }

/* Sub-pages */
.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 2px;
  margin-bottom: 8px;
}
.back:hover { color: var(--amber); }
.stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; }
.stat b { display: block; font-family: "Fredoka", sans-serif; font-size: 24px; font-weight: 700; color: var(--amber); line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.asof { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.list { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.list li strong { display: block; font-size: 16px; margin-bottom: 3px; }
.list li span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

footer {
  margin-top: 30px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 360px) {
  .stat b { font-size: 20px; }
  .duo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .link, .arrow, .btn { transition: none; }
}
