:root {
  color-scheme: light;
  --ink: #16201c;
  --muted: #5c6761;
  --line: #d8ded8;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --accent: #2f6f5e;
  --accent-dark: #214d42;
  --clay: #a8543d;
  --ochre: #c49642;
  --blue: #356f91;
  --shadow: 0 20px 60px rgba(22, 32, 28, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.page-shell,
.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.18), rgba(196, 150, 66, 0.1)),
    linear-gradient(180deg, #eef0e8 0%, #dfe3d9 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent 46%),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(22, 32, 28, 0.04) 35px 36px);
}

.shelf {
  position: absolute;
  left: 11%;
  right: 9%;
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.9fr 0.4fr 1.1fr 0.7fr;
  align-items: end;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 18px solid rgba(79, 61, 45, 0.35);
}

.shelf span {
  display: block;
  min-height: 120px;
  border-radius: 4px 4px 1px 1px;
  box-shadow: inset 0 -20px 0 rgba(0, 0, 0, 0.08);
}

.shelf span:nth-child(1) {
  height: 210px;
  background: var(--accent);
}

.shelf span:nth-child(2) {
  height: 150px;
  background: var(--ochre);
}

.shelf span:nth-child(3) {
  height: 190px;
  background: var(--blue);
}

.shelf span:nth-child(4) {
  height: 130px;
  background: var(--clay);
}

.shelf span:nth-child(5) {
  height: 220px;
  background: #6f695d;
}

.shelf span:nth-child(6) {
  height: 170px;
  background: #874f64;
}

.shelf-top {
  top: 9%;
}

.shelf-bottom {
  bottom: 13%;
  transform: scaleX(-1);
  opacity: 0.78;
}

.table {
  position: absolute;
  left: 18%;
  right: 16%;
  bottom: 32%;
  height: 20px;
  border-radius: 999px;
  background: rgba(91, 69, 50, 0.55);
}

.table::before,
.table::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 16px;
  height: 170px;
  background: rgba(91, 69, 50, 0.45);
}

.table::before {
  left: 18%;
}

.table::after {
  right: 18%;
}

.hero-content,
.admin-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede,
.admin-panel p {
  margin: 28px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.signup {
  margin-top: 36px;
  width: min(100%, 520px);
}

.signup label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.signup input:focus {
  outline: 3px solid rgba(47, 111, 94, 0.18);
  border-color: var(--accent);
}

.signup button,
.admin-link,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.signup button:hover,
.admin-link:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.cf-turnstile {
  margin-top: 14px;
  min-height: 65px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.form-status[data-state="error"] {
  color: #9b2d1f;
}

.form-status[data-state="success"] {
  color: var(--accent-dark);
}

.actions {
  margin-top: 28px;
}

.admin-shell {
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.14), transparent 40%),
    var(--paper);
}

.admin-panel {
  width: min(680px, 100%);
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-panel .admin-link {
  width: fit-content;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.text-link {
  width: fit-content;
  margin-top: 28px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

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

.admin-login {
  margin-top: 30px;
}

@media (max-width: 860px) {
  .page-shell,
  .admin-shell {
    padding: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-content,
  .admin-panel {
    padding: 28px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }
}

@media (max-width: 540px) {
  .signup-row {
    grid-template-columns: 1fr;
  }

  .signup button {
    width: 100%;
  }

  .cf-turnstile {
    transform: scale(0.9);
    transform-origin: left top;
  }
}
