/* soilboundapp.com - shared styles. Colours follow the game: forest green, cream, kraft and wood. */
:root {
  --green: #2e842c;
  --green-dark: #1f6b2a;
  --green-soft: #eef6ea;
  --green-line: #cfe3c8;
  --cream: #f3ecd9;
  --paper: #fffdf7;
  --tan: #d9c9a6;
  --wood: #6b4425;
  --gold: #e6a92b;
  --gold-dark: #a9740f;
  --ink: #2c3a26;
  --muted: #5d6a56;
  --faint: #8a8f80;
  --error: #a3352a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .brand-font {
  font-family: "Sniglet", "Trebuchet MS", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

a { color: var(--green-dark); }
a:hover { color: var(--green); }

/* ---------------------------------------------------------------- header and footer */

.topbar {
  background: var(--green-dark);
  border-bottom: 4px solid var(--wood);
}
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Sniglet", "Trebuchet MS", Arial, sans-serif;
  font-size: 24px;
}
.topbar-brand:hover { color: #fff; }
.topbar-brand img { width: 36px; height: 36px; border-radius: 9px; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: #e4f1df; text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: #fff; text-decoration: underline; }

.footer {
  margin-top: 48px;
  background: var(--wood);
  color: #f1e3cb;
  font-size: 15px;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer a { color: #fff3dc; }

/* ---------------------------------------------------------------- home */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 64px;
  background: #3b2a18 url("images/garden.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 14, 6, 0.55) 0%, rgba(25, 14, 6, 0.25) 45%, rgba(25, 14, 6, 0.75) 100%);
}
.hero-inner { position: relative; max-width: 720px; }
.hero-logo { width: min(440px, 86vw); height: auto; display: block; margin: 0 auto 8px; }
.hero h1 {
  color: #fff7e6;
  font-size: clamp(26px, 5vw, 38px);
  margin: 0 0 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.hero p {
  color: #f6ead2;
  font-size: 19px;
  margin: 0 auto 26px;
  max-width: 560px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.pill {
  display: inline-block;
  background: var(--gold);
  color: #3e2c0c;
  font-family: "Sniglet", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
  padding: 12px 30px;
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--gold-dark);
  text-decoration: none;
}

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 0;
}
.section > h2 { text-align: center; font-size: 30px; margin: 0 0 24px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--paper);
  border: 2px solid var(--tan);
  border-radius: 20px;
  padding: 22px 22px 18px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 2px solid var(--green-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
}
.feature h3 { font-size: 22px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- reading pages */

.page {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 16px;
}
.card {
  background: var(--paper);
  border: 2px solid var(--tan);
  border-radius: 22px;
  padding: 32px clamp(18px, 5vw, 44px) 36px;
}
.card h1 { font-size: clamp(28px, 5vw, 36px); margin: 0 0 6px; }
.card h2 { font-size: 24px; margin: 34px 0 8px; padding-top: 10px; border-top: 2px solid #eee4cc; }
.card h3 { font-size: 19px; margin: 22px 0 6px; }
.card ul { padding-left: 22px; }
.card li { margin: 6px 0; }
.meta { color: var(--faint); margin: 0 0 22px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #eee4cc; }
th { background: var(--green-soft); color: var(--green-dark); }
td:first-child { width: 34%; }

.faq { border-top: 2px solid #eee4cc; padding: 16px 0 4px; }
.faq:first-of-type { border-top: 0; }
.faq h3 { margin: 0 0 4px; }
.faq p { margin: 0 0 10px; color: var(--muted); }

.contact-box {
  background: var(--green-soft);
  border: 2px solid var(--green-line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 8px 0 26px;
}
.contact-box a { font-weight: 700; font-size: 19px; }

/* ---------------------------------------------------------------- account links (auth.html) */

.auth { max-width: 520px; margin: 44px auto 0; padding: 0 16px; text-align: center; }
.auth .card { padding-top: 28px; }
.auth-emoji { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.auth p { color: var(--muted); }
.auth form { text-align: left; margin-top: 18px; }
.auth label { display: block; font-weight: 700; margin: 14px 0 6px; }
.auth input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--tan);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.auth input:focus { outline: 3px solid var(--green-line); border-color: var(--green); }
.button {
  display: block;
  width: 100%;
  margin-top: 22px;
  font: inherit;
  font-family: "Sniglet", "Trebuchet MS", Arial, sans-serif;
  font-size: 20px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 5px 0 var(--green-dark);
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: default; }
.form-message { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; }
.form-message.error { color: var(--error); }
.form-message.ok { color: var(--green-dark); }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav { gap: 12px; font-size: 15px; }
  .hero { min-height: 480px; }
  td:first-child { width: auto; }
}
