:root {
  color-scheme: light;
  --bg: #f5efe4;
  --panel: rgba(255, 252, 246, 0.92);
  --ink: #231815;
  --muted: #6b5b55;
  --line: rgba(35, 24, 21, 0.12);
  --accent: #c65d2e;
  --accent-strong: #a4471d;
  --success: #1d7a52;
  --error: #b33434;
  --shadow: 0 24px 60px rgba(77, 47, 34, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 93, 46, 0.18), transparent 28%),
    linear-gradient(145deg, #f8f3eb 0%, #efe3d0 100%);
}

a {
  color: var(--accent-strong);
}

button,
input {
  font: inherit;
}

.auth-shell,
.feed-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card,
.feed-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.auth-copy {
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.meta-label {
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.auth-form input:focus {
  outline: 2px solid rgba(198, 93, 46, 0.22);
  border-color: var(--accent);
}

button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}

button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.secondary-button {
  background: #efe2d4;
  color: var(--ink);
}

.secondary-button:hover {
  background: #e5d2bf;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--error);
}

.auth-link {
  margin: 20px 0 0;
  color: var(--muted);
}

.feed-meta {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.feed-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.feed-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
