:root {
  color-scheme: light;
  --ink: #1d2320;
  --muted: #647067;
  --line: #d9e1da;
  --paper: #fbfcf7;
  --panel: #ffffff;
  --sage: #58745f;
  --sage-dark: #2e5038;
  --gold: #b9832f;
  --clay: #a4553a;
  --blue: #385b83;
  --shadow: 0 20px 50px rgba(29, 35, 32, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 247, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--sage-dark);
  color: white;
  font-weight: 800;
}

.brand small,
.muted,
.section-head p,
label {
  color: var(--muted);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

main {
  padding: 0 clamp(18px, 4vw, 54px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(40px, 8vw, 92px) 0 28px;
}

.hero-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(rgba(29, 35, 32, 0.34), rgba(29, 35, 32, 0.54)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: white;
}

.eyebrow {
  color: #f0d292;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions,
.row,
.section-head,
.segmented,
footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
button,
input,
select,
textarea {
  font: inherit;
}

.button,
button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.primary {
  background: var(--sage-dark);
  color: white;
}

.secondary {
  border-color: var(--line);
  background: #f6f8f2;
  color: var(--sage-dark);
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
}

.danger-link {
  color: var(--clay);
}

.daily-card,
.panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.daily-card {
  align-self: end;
  padding: 28px;
}

.daily-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice {
  margin-bottom: 22px;
  padding: 14px 16px;
  box-shadow: none;
  border-left: 4px solid var(--clay);
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 18px;
  box-shadow: none;
}

.auth-panel,
.composer,
.panel {
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.wallet {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  background: #f4f6ef;
}

.wallet strong {
  font-size: 34px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head.compact {
  margin-top: 18px;
}

.section-head.first {
  margin-top: 0;
}

.section-head.compact h2 {
  margin: 0;
  font-size: 17px;
}

.section-head select {
  max-width: 220px;
}

.segmented {
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
}

.segmented button {
  flex: 1;
  min-height: 36px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: white;
  color: var(--sage-dark);
  box-shadow: 0 4px 12px rgba(29, 35, 32, 0.1);
}

.between {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 12px;
}

.answer {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.answer h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.answer blockquote {
  margin: 12px 0;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  color: #394139;
}

.answer ul {
  padding-left: 20px;
}

.list {
  display: grid;
  gap: 8px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.list.empty {
  color: var(--muted);
  font-size: 14px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcf7;
}

.item strong {
  display: block;
  margin-bottom: 4px;
}

footer {
  justify-content: center;
  flex-wrap: wrap;
  padding: 28px;
  color: var(--muted);
}

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px clamp(18px, 4vw, 54px);
  line-height: 1.7;
}

.legal h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 64px);
}

@media (max-width: 1080px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-actions,
  .row,
  .search-row,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .section-head select {
    max-width: none;
  }
}
