:root {
  --bg: #f5efe7;
  --surface: #fffdf8;
  --surface-strong: #fff8ee;
  --ink: #1f1a16;
  --muted: #6a5d51;
  --line: #e7d8c8;
  --accent: #b65432;
  --accent-strong: #8e3e23;
  --danger: #a2302a;
  --success: #1f7e61;
  --info: #365f9f;
  --shadow: 0 18px 36px rgba(40, 28, 20, 0.1);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 8% 11%, #f6dcca 0, transparent 36%),
    radial-gradient(circle at 91% 9%, #d9ead8 0, transparent 30%),
    linear-gradient(150deg, #f8f3ed 0%, #efe6da 100%);
}

.atmosphere {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.45;
}

.orb-one {
  top: -80px;
  left: -50px;
  background: #f4bb96;
}

.orb-two {
  right: -70px;
  bottom: 20%;
  background: #bad4b6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(0.9rem, 2.2vw, 2rem);
  border-bottom: 1px solid rgba(135, 92, 59, 0.2);
  background: rgba(250, 245, 239, 0.84);
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a,
.nav-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: all 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active,
.nav-btn:hover {
  background: #f1dfce;
  border-color: #d8b89f;
  color: var(--ink);
}

.inline-form {
  margin: 0;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.7rem) 0 4rem;
}

.flash {
  margin-bottom: 0.95rem;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  border: 1px solid;
  font-size: 0.95rem;
}

.flash-success {
  background: #effaf4;
  border-color: #b8dfcd;
  color: #1b664f;
}

.flash-error {
  background: #fff2f0;
  border-color: #f1c4be;
  color: #8d2b24;
}

.flash-info {
  background: #edf3ff;
  border-color: #c3d3f2;
  color: #24497d;
}

.page-shell-auth .flash {
  width: min(860px, 100%);
  margin-inline: auto;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--surface) 0%, var(--surface-strong) 100%);
  box-shadow: var(--shadow);
  animation: rise 0.45s ease both;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -75px;
  right: -50px;
  background: rgba(182, 84, 50, 0.14);
}

.hero-card.compact {
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.73rem;
  font-weight: 700;
  color: #7e6d5d;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero-card h1 {
  margin: 0.55rem 0 0.4rem;
  max-width: 20ch;
  font-size: clamp(1.8rem, 4.7vw, 2.9rem);
}

.hero-quote {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-style: italic;
}

.hero-actions,
.form-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.feed-section {
  margin-top: 1rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.post-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card,
.form-shell,
.auth-shell,
.article-shell,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(49, 31, 21, 0.07);
}

.post-card {
  animation: rise 0.42s ease both;
}

.post-card h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.43rem;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.content-preview,
.article-content {
  margin: 0.35rem 0 0;
  color: #413931;
  white-space: pre-wrap;
}

.text-link {
  display: inline-block;
  margin-top: 0.62rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status.published {
  background: #e8f7f0;
  color: #1c795b;
}

.status.draft {
  background: #f5ece2;
  color: #7a5f42;
}

.form-shell h1,
.auth-shell h1,
.article-shell h1,
.empty-state h1 {
  margin-bottom: 0.35rem;
}

.auth-shell {
  width: min(860px, 100%);
  margin-inline: auto;
  padding: clamp(1.05rem, 2.5vw, 1.75rem);
}

.form-shell p,
.auth-shell p,
.empty-state p {
  margin-top: 0;
  color: var(--muted);
}

.post-form {
  display: grid;
  gap: 0.66rem;
}

label {
  font-weight: 700;
  margin-top: 0.2rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7c6b5;
  border-radius: 10px;
  padding: 0.66rem 0.76rem;
  font: inherit;
  background: #fffefc;
}

input:focus,
textarea:focus {
  outline: 2px solid #f0c6ab;
  border-color: #c16e4a;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.55rem;
  font-weight: 600;
}

.checkbox-row input {
  width: 1rem;
  height: 1rem;
}

.alert {
  margin-bottom: 0.75rem;
  border: 1px solid #efc2bc;
  border-radius: 10px;
  background: #fff1ee;
  color: #8c2b23;
  padding: 0.7rem 0.8rem;
}

.alert h2 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
}

.alert ul {
  margin: 0;
  padding-left: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-soft {
  color: var(--ink);
  background: #fdf2e6;
  border-color: #ddc3ad;
}

.btn-soft:hover {
  background: #f6e4d2;
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-danger:hover {
  background: #80231e;
}

.error-state {
  text-align: center;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.2rem;
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
  }

  .site-footer {
    width: min(1120px, calc(100% - 1.2rem));
  }
}
