/*


 */

:root {
  --bg: #f6efe5;
  --surface: #fffaf3;
  --ink: #1f232d;
  --muted: #5b6272;
  --line: #dfd5c7;
  --brand: #1b6f74;
  --brand-dark: #14585c;
  --accent: #e56c5b;
  --danger: #b02a37;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, #ffe9d4, transparent 42%), var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(27, 111, 116, 0.35);
  outline-offset: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: #0e1014;
  border-bottom: 1px solid #212733;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #a7b0bf;
}

.top-nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav form {
  margin: 0;
}

.top-nav .nav-link {
  color: #f4f7ff;
  font-weight: 700;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.top-nav .nav-link:hover {
  color: #ffffff;
  border-color: #4e6184;
  text-decoration: none;
}

.top-nav .nav-link.is-active {
  color: #ffffff;
  border-color: #ffffff;
}

.top-nav .nav-cta {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.top-nav .nav-cta:hover {
  text-decoration: none;
}

.site-header .button {
  border-color: #3e4d67;
}

.site-header .button-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #111722;
}

.site-header .button-primary:hover {
  background: #e9eef9;
  border-color: #e9eef9;
}

.site-header .link-button {
  color: #f4f7ff;
}

.page-content {
  padding: 1rem 1rem 2.4rem;
}

.page-content-full {
  padding: 0 0 2.4rem;
}

.flash {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  max-width: 1080px;
}

.flash.notice {
  border-color: #a7d9be;
  background: #ecfbf2;
}

.flash.alert {
  border-color: #f0c2c7;
  background: #fff4f4;
}

.button,
button,
input[type="submit"] {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.button-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.link-button {
  background: none;
  border: 0;
  color: var(--brand);
  padding: 0;
  font-weight: 700;
}

.button.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.button-small {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.modern-panel {
  background: linear-gradient(160deg, #fffefb, #fff8f0);
  border-color: #dacbb8;
  box-shadow: 0 8px 22px rgba(12, 18, 27, 0.04);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  display: inline-block;
  border: 1px solid #ccdbd6;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  background: #edf7f3;
  color: #1e6562;
  font-size: 0.85rem;
  font-weight: 700;
}

.inline-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.6rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.62rem;
  background: #fff;
  font-family: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

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

.empty-state {
  color: var(--muted);
  font-style: italic;
}

.error-summary {
  background: #fff4f4;
  border: 1px solid #f0c2c7;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}

.login-card {
  max-width: 560px;
  margin: 0 auto;
}

.login-note {
  margin-top: 0.7rem;
}

.dashboard-hero {
  padding: 2.2rem 0 1rem;
}

.dashboard-hero-shell {
  background: linear-gradient(145deg, #fff8ef, #fff0e4 58%, #ffdfc9);
  border: 1px solid #e0ccb8;
  border-radius: 30px;
  padding: 1.6rem;
}

.dashboard-hero-shell h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 17ch;
}

.dashboard-stats-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e4d3c2;
  border-radius: 16px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.dashboard-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-shell-modern {
  padding-top: 0.4rem;
}

.dashboard-sidebar {
  position: sticky;
  top: 88px;
}

.dashboard-side-panel h2 {
  margin-top: 0;
}

.dashboard-nav {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.dashboard-nav a {
  display: block;
  font-weight: 700;
}

.dashboard-nav .active-nav-link {
  color: var(--ink);
  text-decoration: underline;
}

.dashboard-nav form {
  margin: 0.5rem 0 0;
}

.dashboard-nav-modern .dashboard-nav-link {
  display: block;
  border: 1px solid #dbcbb9;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.dashboard-nav-modern .dashboard-nav-link:hover {
  text-decoration: none;
  border-color: #c3b39d;
}

.dashboard-main {
  display: grid;
  gap: 1rem;
}

.dashboard-panel h2 {
  margin-top: 0;
}

.dashboard-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.dashboard-progress-value {
  font-weight: 800;
  color: var(--brand);
}

.dashboard-progress-track {
  margin: 0.75rem 0;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #efe7db;
  border: 1px solid #ddcdb8;
  overflow: hidden;
}

.dashboard-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #2e8f95);
}

.dashboard-progress-steps {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.dashboard-progress-steps li {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-progress-steps .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #d5c8b6;
  background: #fff;
}

.dashboard-progress-steps li.is-done,
.dashboard-progress-steps li.is-active {
  color: var(--ink);
}

.dashboard-progress-steps li.is-done .step-dot,
.dashboard-progress-steps li.is-active .step-dot {
  background: var(--brand);
  border-color: var(--brand);
}

.dashboard-panel pre {
  margin: 0.7rem 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fff;
  overflow-x: auto;
}

.dashboard-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-history-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-history-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.feed-hero {
  padding: 2.2rem 0 1rem;
}

.feed-hero-shell {
  background: linear-gradient(145deg, #fff8ef, #fff0e4 58%, #ffdfc9);
  border: 1px solid #e0ccb8;
  border-radius: 30px;
  padding: 1.6rem;
}

.feed-hero-shell h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.feed-page {
  padding-bottom: 1rem;
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
}

.feed-main {
  display: grid;
}

.feed-stream {
  display: grid;
  gap: 0.85rem;
}

.feed-sidebar {
  display: grid;
  gap: 1rem;
}

.feed-side-card {
  border-radius: 20px;
}

.feed-side-card h3 {
  margin-top: 0;
}

.feed-tag-list {
  display: grid;
  gap: 0.55rem;
}

.feed-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.feed-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.feed-filter-form .dashboard-actions {
  margin-top: 0;
}

.feed-filter-meta {
  margin: 0.8rem 0 0;
}

.feed-pagination {
  margin-top: 0.8rem;
}

.feed-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.post-feed-card {
  margin-bottom: 0;
}

.post-feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.post-feed-card-head .meta {
  margin: 0;
}

.post-feed-dot {
  margin: 0 0.3rem;
  opacity: 0.7;
}

.post-role-badge {
  border: 1px solid #bfd7d2;
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  background: #ebf8f5;
  color: #1c645f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-feed-title {
  margin: 0.45rem 0 0.5rem;
  line-height: 1.2;
}

.post-feed-excerpt {
  margin: 0 0 0.7rem;
}

.post-feed-footer {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profiles-stack {
  display: grid;
  gap: 1rem;
}

.profiles-filter-panel,
.profiles-card,
.profiles-empty-panel,
.profiles-help-panel {
  margin-bottom: 0;
  border-radius: 22px;
  padding: 1.15rem;
}

.profiles-filter-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.profiles-filter-form .field {
  margin-bottom: 0;
}

.profiles-filter-toggle {
  margin: 0;
  border: 1px solid #e1d6c8;
  border-radius: 12px;
  background: #fffdf9;
  padding: 0.62rem 0.75rem;
}

.profiles-filter-actions {
  margin-top: 0;
}

.profiles-filter-meta {
  margin: 0.45rem 0 0;
}

.profiles-stream {
  gap: 1rem;
}

.profiles-card-head {
  margin-bottom: 0.25rem;
}

.profiles-card .meta {
  margin: 0;
}

.profiles-tags {
  margin-top: 0.35rem;
}

.profiles-card-footer {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.profiles-help-list {
  margin-top: 0.55rem;
}

.profiles-help-list li {
  margin-bottom: 0.55rem;
}

.profiles-help-list li:last-child {
  margin-bottom: 0;
}

.profiles-help-actions {
  margin-top: 0.75rem;
}

.post-detail-wrap {
  padding: 1.5rem 0 0.8rem;
}

.post-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: start;
}

.post-detail-article h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.post-detail-meta {
  margin: 0.7rem 0 0.8rem;
}

.post-detail-tags {
  margin-bottom: 0.9rem;
}

.post-detail-body {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.post-detail-body p {
  margin-top: 0;
}

.post-detail-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-detail-sidebar {
  display: grid;
  gap: 1rem;
}

.post-side-card {
  border-radius: 20px;
}

.post-side-card h3 {
  margin-top: 0;
}

.post-comments-wrap {
  padding-bottom: 1.2rem;
}

.post-comments-card h3 {
  margin-top: 0;
}

.comment-composer {
  border: 1px solid #ddcebe;
  border-radius: 14px;
  background: #fffdf9;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.post-comment-list {
  display: grid;
  gap: 0.8rem;
}

.comment-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
}

.comment-card .meta {
  margin-top: 0;
}

.comment-body p {
  margin-top: 0;
}

.moderation-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.moderation-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem;
}

.moderation-item p {
  margin: 0.25rem 0;
}

.moderation-history li {
  margin-bottom: 0.65rem;
}

.moderation-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.moderation-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.moderation-check input {
  width: auto;
}

.moderation-bulk {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.moderation-bulk select {
  max-width: 220px;
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.notification-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.notification-item.is-unread {
  border-color: #b2d6cd;
  background: #f4fbf8;
}

.notification-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  color: #6e7381;
  font-weight: 800;
}

.landing-hero {
  padding: 3.2rem 0 1.4rem;
}

.admin-blog-hero {
  padding: 3rem 0 1.4rem;
}

.admin-blog-hero-shell {
  background: linear-gradient(140deg, #fff9f1, #fff3e7 60%, #ffe6d7);
  border: 1px solid #e6d2bf;
  border-radius: 30px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.admin-blog-hero-shell::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  background: radial-gradient(circle, rgba(27, 111, 116, 0.18), rgba(27, 111, 116, 0));
}

.admin-blog-hero-shell h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  max-width: 13ch;
  line-height: 1.04;
}

.hero-frame {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
}

.hero-copy {
  background: linear-gradient(145deg, #fff6f0 0%, #fff0ea 55%, #fee7dd 100%);
  border: 1px solid #e8cfc0;
  border-radius: 30px;
  padding: 2.1rem;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 111, 116, 0.18), rgba(27, 111, 116, 0));
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  line-height: 1.02;
  max-width: 14ch;
}

.hero-lead {
  margin: 1rem 0 1.5rem;
  color: #3a404c;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 160px;
  text-align: center;
}

.hero-chips {
  margin-top: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero-chips .tag-pill {
  border-color: #d8c4b6;
  background: rgba(255, 255, 255, 0.82);
  color: #214449;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-panel {
  background: linear-gradient(165deg, #171d35, #2e2b53 58%, #51305c);
  border-radius: 30px;
  color: #f6fffd;
  padding: 1.35rem;
  border: 1px solid #4a446e;
}

.hero-panel h3 {
  margin: 0.1rem 0 0.5rem;
  font-size: 1.42rem;
}

.hero-panel h4 {
  margin: 1rem 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-light {
  color: #d6d7ef;
  font-size: 0.92rem;
  margin: 0;
}

.hero-panel .tag-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e2fffb;
  border-color: rgba(255, 255, 255, 0.24);
}

.panel-stats {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.panel-stats div {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-weight: 800;
  font-size: 1.28rem;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.88;
}

.home-ribbon {
  padding: 0.2rem 0 1.1rem;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.ribbon-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 0.95rem;
}

.ribbon-card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.22;
}

.landing-content {
  padding: 1.2rem 0 0;
}

.landing-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 1.2rem;
}

.admin-blog-content {
  padding-top: 0.6rem;
}

.admin-blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.admin-blog-main {
  grid-column: 1;
}

.admin-blog-sidebar {
  grid-column: 2;
}

.section-heading h2 {
  margin-top: 0;
  font-size: 2rem;
}

.admin-feature-card {
  border: 1px solid #d8c8b4;
  border-radius: 20px;
  background: linear-gradient(160deg, #fffefb, #fff7ef);
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.admin-feature-card h3 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  line-height: 1.15;
}

.admin-feature-link {
  color: var(--ink);
}

.admin-feature-link:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

.admin-feature-footer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid #dcc8ad;
  font-size: 0.86rem;
  color: var(--muted);
}

.admin-feature-footer .home-feed-link {
  margin-left: auto;
}

.admin-blog-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.admin-blog-card {
  border: 1px solid #d8c8b4;
  border-radius: 20px;
  background: linear-gradient(160deg, #fffefb, #fff7ef);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.admin-blog-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.plain-list {
  margin: 0;
  padding-left: 1rem;
}

.plain-list li {
  margin-bottom: 0.45rem;
}

.latest-entries-card h3 {
  margin-top: 0;
}

.latest-entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.latest-entry-list li {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.latest-entry-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.latest-entry-link {
  display: inline-block;
  font-weight: 700;
  line-height: 1.25;
}

.latest-entry-list .meta {
  margin: 0.3rem 0 0;
}

.blog-surface {
  box-shadow: 0 8px 22px rgba(12, 18, 27, 0.05);
}

.home-side-card {
  border-radius: 20px;
}

.home-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.home-feed-card {
  border: 1px solid #d8c8b4;
  border-radius: 18px;
  background: linear-gradient(160deg, #fffefb, #fff7ef);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.home-feed-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.24;
}

.home-feed-meta {
  margin: 0;
}

.home-feed-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.home-feed-footer span {
  display: inline-flex;
  align-items: center;
}

.home-feed-link {
  margin-left: auto;
  font-weight: 800;
}

.home-feed-cta {
  margin-top: 1rem;
}

.feature-story {
  border: 1px solid #ccbda7;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffaf4, #fff2e7);
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.feature-story h3 {
  margin: 0.22rem 0 0.55rem;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.18;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.blog-card h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.landing-sidebar .card {
  margin-bottom: 0.95rem;
}

.newsletter-card {
  background: linear-gradient(160deg, #f2f8ff, #eaf3ff);
  border-color: #c6d8f4;
}

.newsletter-card h3 {
  margin: 0.1rem 0 0.45rem;
}

.quote-card {
  background: linear-gradient(160deg, #ffe7db, #ffe1d0);
  border-color: #efc9af;
}

.quote-card p {
  margin-top: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}

.quote-card span {
  color: #814936;
  font-size: 0.82rem;
  font-weight: 700;
}

.about-hero {
  background: linear-gradient(140deg, #131226, #2b274b 52%, #4f315a);
  color: #f8f7ff;
  padding: 4rem 0 3rem;
}

.about-identity {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.about-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 25% 25%, #ffb48f, #e36f5f 52%, #9f4465);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(9, 8, 20, 0.45);
}

.about-portrait span {
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-hero-shell h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  max-width: 20ch;
}

.about-hero-shell p {
  color: #dbdeef;
  max-width: 72ch;
}

.about-main {
  padding: 2rem 0 0;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
}

.about-block h2 {
  margin-top: 0;
}

.process-section {
  margin-bottom: 1rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.process-step h3 {
  margin: 0.2rem 0 0.4rem;
}

.process-no {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #d8c8b7;
  background: #fff3e7;
  color: #895432;
  padding: 0.15rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.service-card h3 {
  margin-top: 0;
}

.about-cta {
  background: linear-gradient(160deg, #eaf7f2, #f8fff6);
  border-color: #cadecf;
}

@media (max-width: 980px) {
  .hero-frame,
  .ribbon-grid,
  .home-feed-grid,
  .landing-grid,
  .admin-blog-grid,
  .feed-layout,
  .post-detail-grid,
  .admin-blog-cards,
  .process-grid,
  .services-grid,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .about-identity {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .admin-blog-main,
  .admin-blog-sidebar {
    grid-column: auto;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-filter-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .feed-filter-form .dashboard-actions {
    margin-top: 0.2rem;
  }

  .profiles-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .profiles-filter-toggle,
  .profiles-filter-actions {
    grid-column: 1 / -1;
  }

  .feed-pagination-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .grid,
  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-history-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-tag-row,
  .post-feed-card-head {
    flex-wrap: wrap;
  }

  .profiles-filter-form {
    grid-template-columns: 1fr;
  }

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

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy {
    padding: 1.2rem;
  }

  .about-portrait {
    width: 180px;
    height: 180px;
  }
}
