:root {
  --ink: #17201b;
  --muted: #59655d;
  --paper: #fbfaf5;
  --line: #d9ded4;
  --green: #236b4f;
  --green-dark: #114532;
  --gold: #c58a2c;
  --blue: #285c7f;
  --white: #ffffff;
  --danger: #a13b32;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 32, 27, 0.1);
  background: rgba(251, 250, 245, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 180px;
  max-width: min(45vw, 180px);
  height: auto;
}

.admin-brand-logo {
  width: 150px;
  max-width: 100%;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.82rem;
}

.nav {
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a:hover,
.text-link:hover {
  color: var(--green-dark);
}

.nav-cta {
  color: var(--green-dark);
}

.logout-form {
  margin: 0;
}

.logout-form button,
.actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #18231e;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 26, 21, 0.86), rgba(15, 26, 21, 0.54) 46%, rgba(15, 26, 21, 0.2)),
    url("https://images.unsplash.com/photo-1492496913980-501348b61469?auto=format&fit=crop&w=1800&q=80") center/cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 80px) clamp(42px, 8vw, 90px);
  color: var(--white);
}

.status,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
td,
th {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #211407;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button.outline {
  border-color: var(--line);
  color: var(--green-dark);
}

.section,
.page-hero,
.content-page,
.form-shell,
.detail-grid {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: clamp(58px, 8vw, 96px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.copy p,
.content-page p,
.page-hero p,
.form-intro p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.steps,
.example-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps article,
.example-grid article,
.detail-grid article,
.idea-row,
.panel-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps article,
.example-grid article,
.detail-grid article {
  min-height: 210px;
  padding: 22px;
}

.steps span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--blue);
  font-weight: 900;
}

.steps p,
.example-grid p,
.idea-row p,
.detail-grid p {
  margin: 0;
  color: var(--muted);
}

.examples {
  border-top: 1px solid var(--line);
}

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

.chip {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.status-badge,
.status-note {
  color: var(--green-dark);
  font-weight: 850;
}

.status-badge {
  border: 1px solid rgba(35, 107, 79, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(35, 107, 79, 0.08);
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 800;
}

.empty-state {
  border: 1px solid #ead8ac;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff5dc;
  color: #4f3912;
}

.page-hero {
  padding: clamp(62px, 9vw, 110px) 0 36px;
}

.page-hero.compact {
  min-height: 56vh;
  display: grid;
  align-content: center;
}

.page-hero h1 {
  max-width: 880px;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.page-hero p {
  max-width: 720px;
  margin-top: 20px;
}

.content-page {
  max-width: 820px;
  padding: 10px 0 90px;
}

.content-page h2 {
  margin: 42px 0 18px;
  color: #8b918b;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.content-page p,
.content-page li {
  font-size: 1.15rem;
}

.content-page a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accordion-list {
  margin-top: 44px;
  border-top: 2px solid #41c5c9;
  padding-top: 26px;
}

.accordion-list details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.accordion-list details + details {
  border-top: 0;
}

.accordion-list summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.accordion-list summary::-webkit-details-marker {
  display: none;
}

.accordion-list summary::before {
  content: "+";
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
}

.accordion-list details[open] summary::before {
  content: "-";
}

.accordion-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.accordion-list details p {
  margin: 0;
  padding: 20px 28px;
}

.accordion-list details p + p {
  padding-top: 0;
}

.idea-list {
  display: grid;
  gap: 14px;
}

.idea-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 80px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding: clamp(62px, 9vw, 110px) 0;
}

.form-shell.wide {
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1.2fr);
}

.form-intro h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.panel-form {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 4vw, 34px);
}

.panel-form label {
  color: var(--ink);
  font-weight: 800;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffefb;
  color: var(--ink);
}

.panel-form textarea {
  resize: vertical;
}

.panel-form span,
.validation,
.field-hint {
  color: var(--danger);
  font-size: 0.9rem;
}

.field-hint {
  margin: 0 0 8px;
  color: var(--muted);
}

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

.check-row input {
  width: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 22px;
  background: var(--green-dark);
  color: var(--white);
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.admin-sidebar nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.admin-main {
  padding: clamp(24px, 4vw, 48px);
}

.admin-heading {
  margin-bottom: 26px;
}

.admin-heading h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.admin-heading p {
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.stats-grid strong {
  display: block;
  font-size: 2.4rem;
}

.stats-grid span {
  color: var(--muted);
}

.admin-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

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

.admin-form {
  max-width: 900px;
}

@media (max-width: 920px) {
  .site-header,
  .admin-body {
    display: block;
  }

  .nav {
    width: 100%;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .hero {
    min-height: 690px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(15, 26, 21, 0.58), rgba(15, 26, 21, 0.9)),
      url("https://images.unsplash.com/photo-1492496913980-501348b61469?auto=format&fit=crop&w=1100&q=80") center/cover;
  }

  .split,
  .steps,
  .example-grid,
  .detail-grid,
  .form-shell,
  .form-shell.wide,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .steps article,
  .example-grid article,
  .detail-grid article {
    min-height: 0;
  }

  .steps span {
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .button,
  .idea-row {
    width: 100%;
  }

  .idea-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .site-footer {
    flex-direction: column;
  }
}
