:root {
  --blue: #d9edf3;
  --blue-deep: #174c5f;
  --blue-ink: #102f3b;
  --brown: #4b3026;
  --brown-soft: #735144;
  --gold: #b98b45;
  --cream: #fff8ef;
  --cream-deep: #f5eadb;
  --ink: #223036;
  --muted: #5b6a70;
  --white: #ffffff;
  --danger: #7a1f1f;
  --shadow: 0 20px 70px rgba(25, 79, 99, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.crisis-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  background: var(--blue-ink);
  color: var(--white);
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 5vw;
  background: rgba(255, 248, 239, 0.96);
  border-bottom: 1px solid rgba(75, 48, 38, 0.16);
}

.brand {
  display: grid;
  color: var(--brown);
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
  min-width: 190px;
}

.brand-script,
.script {
  color: var(--gold);
  font-family: "Segoe Print", "Lucida Handwriting", "Bradley Hand", "Apple Chancery", cursive;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-script {
  font-size: 1.55rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

nav a {
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

main {
  min-height: 60vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 3rem;
  padding: 5.5rem 5vw;
  background:
    radial-gradient(circle at 86% 18%, rgba(185, 139, 69, 0.18), transparent 25%),
    linear-gradient(135deg, rgba(217, 237, 243, 0.92), rgba(255, 248, 239, 0.98));
}

.eyebrow {
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--brown);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  color: var(--brown);
  font-family: "Segoe Print", "Lucida Handwriting", "Bradley Hand", "Apple Chancery", cursive;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.05;
  text-wrap: balance;
  animation: visibleScriptFade 3.2s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-script-line {
  color: #b76f7b;
  font-family: "Segoe Print", "Lucida Handwriting", "Bradley Hand", "Apple Chancery", cursive;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.22;
  margin: 1.2rem 0 1.4rem;
  animation: visibleScriptFade 3.6s ease-in-out infinite reverse;
  will-change: opacity, transform;
}

@keyframes visibleScriptFade {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(18px) scale(0.97);
    filter: blur(1px);
  }

  50% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-copy p,
.page-hero p,
.content-section p,
.legacy-card p,
.card p,
.admin-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy > p {
  max-width: 700px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.button {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.95rem 1.3rem;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--brown);
  color: var(--white);
}

.button.secondary {
  border: 2px solid var(--brown);
  color: var(--brown);
}

.button.gold {
  background: var(--gold);
  color: var(--blue-ink);
}

.small-note,
.disclaimer {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.legacy-card {
  align-self: center;
  background: var(--white);
  border: 1px solid rgba(75, 48, 38, 0.14);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.hero-media {
  align-self: center;
}

.site-image {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 14px 42px rgba(75, 48, 38, 0.12);
}

.site-image-fallback {
  display: grid;
  gap: 0.8rem;
  min-height: 300px;
  place-items: center;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(217, 237, 243, 0.72), rgba(255, 248, 239, 0.96)),
    repeating-linear-gradient(45deg, rgba(185, 139, 69, 0.16) 0 8px, transparent 8px 18px);
  border: 1px dashed rgba(75, 48, 38, 0.35);
  color: var(--brown);
  padding: 1.5rem;
  text-align: center;
}

.site-image-fallback span {
  font-weight: 900;
}

.site-image-fallback small {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}

.photo-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  background: linear-gradient(135deg, #ead8bf, #f7efe5);
  border: 1px dashed rgba(75, 48, 38, 0.38);
  color: var(--brown);
  font-weight: 900;
  text-align: center;
}

.trust-row,
.card-grid,
.admin-grid {
  display: grid;
  gap: 1rem;
}

.trust-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(75, 48, 38, 0.16);
}

.trust-row article {
  background: var(--white);
  padding: 2rem 5vw;
}

.content-section,
.page-hero,
.admin-shell {
  padding: 4rem 5vw;
}

.page-hero {
  background: linear-gradient(135deg, rgba(217, 237, 243, 0.74), rgba(255, 248, 239, 0.98));
}

.page-hero p {
  max-width: 780px;
}

.content-section {
  background: var(--white);
}

.content-section.alt {
  background: var(--cream);
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card .button {
  margin-top: auto;
}

.card,
.admin-card,
.disclaimer-box,
.soft-panel,
.atom-card {
  background: var(--white);
  border: 1px solid rgba(75, 48, 38, 0.14);
  padding: 1.4rem;
}

.soft-panel {
  box-shadow: 0 10px 36px rgba(75, 48, 38, 0.08);
}

.disclaimer-box {
  border-left: 5px solid var(--gold);
  margin-top: 2rem;
}

.admin-shell {
  background: var(--cream);
}

.admin-grid {
  grid-template-columns: repeat(2, 1fr);
}

.admin-control-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.admin-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.admin-stats strong {
  color: var(--brown);
  display: block;
  font-size: 2rem;
}

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

.table-wrap {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(75, 48, 38, 0.14);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--blue);
  color: var(--blue-ink);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.button-column {
  display: grid;
  gap: 0.5rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.2rem;
}

.compact-section {
  margin-top: 2rem;
  padding: 2rem 0 0;
}

.post-body {
  display: grid;
  gap: 1.2rem;
  max-width: 920px;
}

.post-body .lede {
  color: var(--brown);
  font-size: 1.25rem;
  line-height: 1.75;
}

.post-section {
  border-top: 1px solid rgba(75, 48, 38, 0.14);
  padding-top: 1rem;
}

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

.atom-card {
  border-left: 4px solid var(--gold);
}

.faq-item {
  background: var(--cream);
  border: 1px solid rgba(75, 48, 38, 0.14);
  padding: 1rem;
}

.faq-item summary {
  color: var(--brown);
  cursor: pointer;
  font-weight: 900;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  background: var(--blue);
  color: var(--blue-ink);
  font-weight: 900;
  padding: 0.35rem 0.7rem;
}

.danger-zone {
  border-color: rgba(122, 31, 31, 0.4);
  background: #fff6f2;
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 820px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

input,
textarea,
select {
  border: 1px solid rgba(75, 48, 38, 0.28);
  border-radius: 0.35rem;
  font: inherit;
  min-height: 44px;
  padding: 0.75rem;
}

textarea {
  min-height: 150px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr 0.9fr;
  gap: 2rem;
  background: var(--brown);
  color: var(--cream);
  padding: 3rem 5vw;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  color: var(--cream);
}

.badge-grid {
  display: grid;
  gap: 0.5rem;
}

.badge-grid span {
  border: 1px solid rgba(255, 248, 239, 0.35);
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 1rem;
  width: min(680px, calc(100vw - 2rem));
  background: var(--white);
  border: 2px solid var(--brown);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-banner fieldset {
  border: 1px solid rgba(75, 48, 38, 0.2);
  display: grid;
  gap: 0.5rem;
}

.cookie-banner button {
  background: var(--brown);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 0.8rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-script-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

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

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

  nav {
    justify-content: flex-start;
  }

  .trust-row,
  .card-grid,
  .admin-grid,
  .admin-stats,
  .admin-filter-grid,
  .atom-grid {
    grid-template-columns: 1fr;
  }
}

.definition {
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-call {
  margin-top: 1.25rem;
}
