:root {
  color-scheme: light;
  --forest: #173f2b;
  --leaf: #2f7650;
  --lime: #d8ef84;
  --cream: #f6f0df;
  --paper: #fffdf5;
  --ink: #172019;
  --muted: #667069;
  --line: #d8d7c8;
  --danger: #a23e2a;
  font-family: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
}
button, input {
  font: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.app-shell {
  min-height: 100vh;
  padding-bottom: 78px;
}
.topbar {
  height: 70px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--forest);
  text-align: left;
  padding: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  font-size: 23px;
  transform: rotate(-3deg);
}
.brand strong, .brand small {
  display: block;
}
.brand strong {
  font-size: 17px;
  line-height: 1.1;
}
.brand small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f7e9a7;
  color: #6d5215;
}
.balance img {
  width: 20px;
  height: 20px;
}
main {
  max-width: 850px;
  margin: auto;
}
.brochure {
  background: var(--paper);
}
.brochure-hero {
  min-height: min(640px, calc(100vh - 70px));
  display: flex;
  align-items: end;
  padding: 28px 20px;
  color: white;
  background:
    linear-gradient(180deg, rgba(10, 31, 20, 0.05) 25%, rgba(10, 31, 20, 0.92)),
    url("/images/pumpkins.jpg") center/cover;
}
.brochure-lede {
  max-width: 620px;
}
.brochure-lede .eyebrow,
.brochure-lede h1 {
  color: var(--lime);
}
.brochure-lede h1 {
  font-size: clamp(47px, 13vw, 78px);
}
.brochure-lede > p:last-child {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
}
.brochure-body {
  padding: 38px 18px 48px;
}
.brochure-body h2 {
  margin: 0;
  max-width: 600px;
  color: var(--forest);
  font: 700 30px/1.05 Georgia, serif;
  letter-spacing: -0.025em;
}
.brochure-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 38px;
}
.brochure-steps article {
  position: relative;
  min-height: 132px;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}
.brochure-steps article > b {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  color: var(--forest);
}
.brochure-steps strong {
  display: block;
  color: var(--forest);
  font-size: 17px;
}
.brochure-steps p,
.join-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.join-panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--forest);
  color: white;
}
.join-panel .eyebrow {
  color: var(--lime);
}
.join-panel h2,
.join-panel p {
  color: white;
}
.server-links {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.server-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-radius: 13px;
  background: var(--paper);
  color: var(--forest);
  text-decoration: none;
}
.server-links span {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}
.brochure-note {
  margin: 22px auto 0;
  max-width: 580px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.welcome {
  min-height: calc(100vh - 148px);
  display: grid;
  grid-template-rows: minmax(190px, 42vh) auto;
}
.welcome-photo {
  background:
    linear-gradient(180deg, transparent 45%, rgba(23, 63, 43, 0.55)),
    url("/images/strawberries.jpg") center/cover;
}
.welcome-copy {
  margin-top: -34px;
  padding: 28px 22px 36px;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  position: relative;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--leaf);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--forest);
  font-size: clamp(30px, 9vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.welcome-copy > p:not(.eyebrow, .fine-print, .status) {
  color: #4f5e53;
  line-height: 1.5;
  max-width: 520px;
}
.primary, .secondary {
  min-height: 44px;
  border-radius: 13px;
  padding: 11px 16px;
  border: 0;
  font-weight: 800;
}
.primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 4px 0 #0d291b;
}
.primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0d291b;
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: var(--lime);
  color: var(--forest);
}
.wide {
  width: 100%;
}
.test-notice-panel {
  margin: 8px 0 24px;
  padding: 14px 16px;
  border: 1px dashed #b5b5a8;
  border-radius: 14px;
  background: var(--paper);
}
.test-notice-panel summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 800;
}
.test-notice-panel > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.test-notice-actions {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.test-notice-actions button {
  min-height: 54px;
  padding: 15px 20px;
}
.fine-print, .status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.status {
  text-align: center;
}
.page {
  padding: 22px 16px 30px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}
.page-heading h1 {
  font-size: 36px;
}
.plot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.plot-card {
  min-height: 188px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 19px;
  padding: 0;
  background: #8c6747 url("/images/dirt.jpg") center/cover;
  color: white;
  box-shadow: 0 2px 0 rgba(42, 31, 20, 0.25);
  text-align: left;
}
.plot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(16, 24, 18, 0.86));
}
.plot-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.plot-info {
  position: absolute;
  z-index: 1;
  left: 13px;
  right: 13px;
  bottom: 12px;
}
.plot-info strong, .plot-info small {
  display: block;
}
.plot-info strong {
  font-size: 18px;
}
.plot-info small {
  opacity: 0.86;
  margin-top: 2px;
}
.empty-plot {
  display: grid;
  place-items: center;
  text-align: center;
}
.empty-plot::before {
  content: "+";
  font-size: 42px;
  font-weight: 200;
  z-index: 1;
}
.empty-plot .plot-info {
  text-align: center;
}
.state-pill {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--forest);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.notification-list {
  display: grid;
  gap: 9px;
}
.notice {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: inherit;
  text-align: left;
}
.notice.unread {
  border-color: #93b360;
  box-shadow: inset 4px 0 var(--leaf);
}
.notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e8efc4;
  font-size: 20px;
}
.notice strong, .notice small {
  display: block;
}
.notice small {
  color: var(--muted);
  margin-top: 3px;
}
.empty-state {
  border: 1px dashed #b5b5a8;
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
}
fieldset {
  margin: 0 0 16px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
legend {
  padding: 0 6px;
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--forest);
  font-weight: 700;
}
fieldset > p {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.warning-fieldset {
  border-color: #d5a580;
}
.master-toggle, .toggle-grid label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.master-toggle {
  padding: 12px;
  margin-bottom: 8px;
  background: #eef5d0;
  border-radius: 13px;
}
.master-toggle small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.toggle-grid {
  display: grid;
}
.toggle-grid label {
  min-height: 43px;
  border-bottom: 1px solid #e5e3d6;
}
input[type="checkbox"] {
  width: 38px;
  height: 22px;
  accent-color: var(--leaf);
}
.bottom-nav {
  position: fixed;
  z-index: 8;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 5px max(10px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 253, 245, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(15px);
}
.bottom-nav button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  position: relative;
}
.bottom-nav button span {
  display: block;
  font-size: 19px;
  height: 24px;
}
.bottom-nav button.active {
  color: var(--forest);
}
#notice-count {
  position: absolute;
  top: 1px;
  left: calc(50% + 8px);
  min-width: 17px;
  height: 17px;
  padding: 1px 4px;
  border-radius: 99px;
  background: var(--danger);
  color: white;
  font-size: 10px;
}
dialog {
  width: min(92vw, 460px);
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
dialog::backdrop {
  background: rgba(9, 24, 16, 0.68);
  backdrop-filter: blur(3px);
}
.dialog-card {
  padding: 24px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 99px;
  background: #eee9db;
  font-size: 24px;
  z-index: 2;
}
.dialog-hero {
  height: 180px;
  margin: -24px -24px 19px;
  border-radius: 24px 24px 0 0;
  background: center/cover;
}
.dialog-card h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 28px;
  color: var(--forest);
}
.dialog-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.crop-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 54vh;
  overflow: auto;
}
.crop-choice {
  min-height: 100px;
  padding: 10px;
  border: 0;
  border-radius: 13px;
  color: white;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
  background: center/cover;
  box-shadow: inset 0 -55px 35px -30px rgba(0, 0, 0, 0.75);
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88vw;
  padding: 11px 15px;
  border-radius: 999px;
  background: #16231b;
  color: white;
  font-size: 13px;
  box-shadow: 0 7px 30px rgba(0, 0, 0, 0.3);
}
@media (min-width: 700px) {
  .brochure-hero {
    padding: 52px;
  }
  .brochure-body {
    padding: 56px 42px 70px;
  }
  .brochure-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .join-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 30px;
  }
  .server-links {
    margin: 0;
  }
  .welcome {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: min(650px, calc(100vh - 70px));
  }
  .welcome-photo {
    height: auto;
  }
  .welcome-copy {
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
  }
  .plot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page {
    padding: 36px 28px;
  }
}
