:root {
  color-scheme: light;
  --bg: #f4efe7;
  --panel: rgba(255, 251, 246, 0.9);
  --ink: #1e1c19;
  --muted: #6d665d;
  --line: rgba(30, 28, 25, 0.12);
  --primary: #9d3c20;
  --primary-dark: #6b240f;
  --accent: #d5b165;
  --shadow: 0 18px 55px rgba(49, 33, 21, 0.12);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 177, 101, 0.32), transparent 26%),
    radial-gradient(circle at bottom right, rgba(157, 60, 32, 0.16), transparent 24%),
    var(--bg);
}

body,
input,
textarea,
button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  padding: 24px;
}

.hero-copy h1,
.panel-head h2,
.feed-head h3 {
  margin: 0;
}

.lede {
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary-dark);
}

.hero-card {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 233, 221, 0.88));
  border: 1px solid rgba(157, 60, 32, 0.14);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2f8f4e;
  box-shadow: 0 0 0 6px rgba(47, 143, 78, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 24px;
}

.intake-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(30, 28, 25, 0.14);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px 16px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button {
  background: var(--primary);
  color: #fff8f3;
  box-shadow: 0 12px 24px rgba(157, 60, 32, 0.24);
}

.ghost-button {
  background: rgba(157, 60, 32, 0.08);
  color: var(--primary-dark);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.submit-status {
  margin: 0;
  color: var(--muted);
}

.feed-columns {
  display: grid;
  gap: 18px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-head span {
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(157, 60, 32, 0.1);
  font-weight: 700;
  color: var(--primary-dark);
}

.entry-list {
  display: grid;
  gap: 12px;
}

.entry-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.entry-meta time,
.empty-state {
  color: var(--muted);
}

.entry-preview {
  margin: 0;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(157, 60, 32, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

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

  .shell {
    width: min(100vw - 20px, 1180px);
  }
}
