:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-2: #fffaf2;
  --ink: #1b1914;
  --muted: #5c564c;
  --line: #e0d5c3;
  --green: #1c3d34;
  --green-2: #2d5a4a;
  --copper: #8d4534;
  --copper-soft: #f3e2d8;
  --danger: #8d2f2f;
  --shadow: 0 18px 40px rgba(48, 36, 22, 0.08);
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(141, 69, 52, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 2;
}
.brand {
  font-family: var(--serif);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.top nav, .cta-row, .auth-links { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.screen { display: none; }
.screen.active { display: block; }
.hero, .section, .panel, .auth-card { max-width: 68rem; margin: 0 auto; padding: 1.25rem; }
.hero { padding-top: 2.5rem; padding-bottom: 1rem; }
.eyebrow, .mark {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; margin: 0.4rem 0 1rem; }
.lede { font-size: 1.12rem; max-width: 42rem; color: var(--ink); }
.audience { font-weight: 700; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: #f7f3ea;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary, button.secondary {
  background: transparent;
  color: var(--green);
}
.button.ghost, button.ghost { border-color: transparent; background: transparent; color: var(--ink); }
button:disabled { opacity: 0.6; cursor: progress; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; list-style: none; padding: 0; }
.steps li, .card, .auth-card, .panel, .who li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.steps li { padding: 0.9rem; min-height: 6rem; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.cards, .who ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; padding: 0; list-style: none; }
.card, .who li { padding: 1rem; }
.badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 700;
}
.why { font-size: 1.35rem; max-width: 36rem; font-family: var(--serif); }
.final { padding-bottom: 4rem; }
.auth-card, .panel { max-width: 36rem; margin: 1.5rem auto 3rem; padding: 1.25rem; box-shadow: var(--shadow); }
label { display: block; font-size: 0.92rem; margin: 0.85rem 0 0.3rem; }
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.field-job { font-size: 1.45rem; margin: 0.2rem 0 0.8rem; }
.field-actions button { min-height: 3rem; flex: 1; }
.field-shutter { width: 100%; min-height: 3.4rem; font-size: 1.15rem; margin: 0.6rem 0; }
#field-camera {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; border-radius: 0.7rem; display: block; }
.tag-row { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.35rem; }
.tag-row select { width: auto; flex: 1; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1rem; margin: 0.8rem 0; }
.ledger div { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.7rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 0.7rem; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-weight: 700; }
.hint, .error, .note { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2rem; }
.app-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--green);
  color: #f7f3ea;
}
.app-bar a, .app-bar button { color: #f7f3ea; border-color: rgba(247, 243, 234, 0.4); }
.app-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-nav a[aria-current="page"] { background: #f7f3ea; color: var(--green); }
.app-main { max-width: 52rem; margin: 0 auto; padding: 1.25rem; }
.record-list { list-style: none; padding: 0; }
.record-list li, .record-list a.record {
  display: block;
  margin: 0.45rem 0;
  padding: 0.75rem 0.9rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  text-decoration: none;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.grid-2 label { margin-top: 0.55rem; }
#contract-deposit { width: auto; margin-right: 0.4rem; }
.invite-link {
  word-break: break-all;
  background: var(--copper-soft);
  padding: 0.8rem;
  border-radius: 0.8rem;
}
.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  z-index: 5;
}
.boot.done { display: none; }
@media (max-width: 800px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .top { align-items: flex-start; flex-direction: column; }
  .app-bar { flex-wrap: wrap; }
  .grid-2 { grid-template-columns: 1fr; }
}
