:root {
  --ink: #12243f;
  --muted: #66706a;
  --line: #dfe3df;
  --paper: #f7f8f5;
  --accent: #94714b;
  --green: #12243f;
  --white: #fff;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.site-nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eee;
}
.brand img {
  width: 180px;
  max-height: 58px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
}
.nav-links .pill,
.pill {
  background: var(--ink);
  color: #fff;
  padding: 12px 19px;
  border-radius: 99px;
  border: 0;
}
.menu {
  display: none;
  background: none;
  border: 0;
  font-size: 25px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 620px;
  background: #fff;
}
.hero-copy {
  max-width: 1040px;
  padding: clamp(56px, 8vw, 130px) clamp(24px, 8vw, 120px);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.hero h1 {
  font:
    clamp(48px, 6.4vw, 94px)/0.96 Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 22px 0 30px;
  max-width: 650px;
}
.hero p {
  font-size: 18px;
  max-width: 470px;
  color: #414945;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.button {
  display: inline-block;
  border: 0;
  border-radius: 99px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
section {
  padding: 90px clamp(24px, 8vw, 120px);
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.intro h2,
.section-title {
  font:
    clamp(36px, 4.5vw, 64px)/1.04 Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0;
}
.intro p {
  font-size: 19px;
  margin: 0;
  color: #45504a;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  min-height: 190px;
  border: 1px solid #eceeea;
}
.card h3 {
  font:
    27px Georgia,
    serif;
  font-weight: 400;
  margin: 10px 0;
}
.card p {
  color: var(--muted);
  margin: 0;
}
.dark {
  background: var(--green);
  color: #fff;
}
.dark p {
  color: #dbe5e0;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.form-wrap {
  max-width: 760px;
  margin: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 55px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 17px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #ccd2ce;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.field select {
  min-height: 48px;
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%2312243f' stroke-width='1.6'/%3E%3C/svg%3E")
    right 14px center/14px 8px no-repeat;
  color: var(--ink);
  padding-right: 42px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.help {
  font-size: 13px;
  color: var(--muted);
}
.notice {
  padding: 14px 17px;
  border-radius: 10px;
  background: #eaf2ed;
  margin: 18px 0;
}
.notice.error {
  background: #fae9e5;
  color: #8f3021;
}
.hidden {
  display: none !important;
}
.site-footer {
  padding: 45px clamp(24px, 8vw, 120px);
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}
.site-footer img {
  width: 155px;
  max-height: 55px;
  object-fit: contain;
}
.site-footer nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.admin-shell {
  min-height: 100vh;
  background: #f3f5f2;
}
.admin-bar {
  height: 76px;
  background: #fff;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.admin-layout {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: calc(100vh - 76px);
}
.sidebar {
  background: #fff;
  padding: 25px 15px;
  border-right: 1px solid var(--line);
}
.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 9px;
  margin-bottom: 3px;
  color: #46514c;
}
.sidebar a.active,
.sidebar a:hover {
  background: #e9efeb;
  color: var(--green);
  font-weight: 700;
}
.admin-main {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
}
.admin-main h1 {
  font:
    42px Georgia,
    serif;
  font-weight: 400;
  margin: 0 0 25px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.metric b {
  font:
    34px Georgia,
    serif;
  display: block;
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.toolbar input,
.toolbar select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 99px;
  background: #e8eee9;
  font-size: 12px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login .form-wrap {
  width: min(100%, 440px);
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  z-index: 20;
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
}
.check input {
  margin-top: 5px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
  padding: 15px;
}
legend {
  font-weight: 700;
  padding: 0 5px;
}
@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .menu {
    display: block;
  }
  .hero,
  .intro,
  .content-section-inner,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
  }
  .hero-copy {
    padding: 55px 24px 70px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  section {
    padding: 65px 24px;
  }
  .site-footer {
    display: block;
  }
  .site-footer nav {
    margin-top: 25px;
    flex-wrap: wrap;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: flex;
    overflow: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 3px;
  }
  .sidebar a {
    white-space: nowrap;
  }
  .admin-main {
    padding: 20px 14px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric b {
    font-size: 28px;
  }
  .admin-bar {
    padding: 0 15px;
  }
}
:root {
  --modal-bg: #1119;
}
.modal {
  position: fixed;
  inset: 0;
  background: var(--modal-bg);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 30;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 28px;
}
.nav-links.open {
  display: flex;
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 18px 24px;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 0;
}
.card {
  color: var(--ink);
}
.dark .card p {
  color: #525b64;
}
.content-section {
  background: var(--paper);
}
.content-section-alt {
  background: #fff;
}
.content-section-inner {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.content-section h2 {
  font:
    clamp(36px, 4.5vw, 64px)/1.04 Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0;
}
.content-section p {
  margin: 0;
  font-size: 19px;
  color: #45504a;
  white-space: pre-line;
}
.content-editor {
  max-width: 920px;
}
.content-editor h2 {
  font:
    28px Georgia,
    serif;
  font-weight: 400;
  margin-top: 28px;
}
.field label,
.help,
.metric span,
.data-table th,
.status {
  font-size: 14px;
}
.admin-main {
  min-width: 0;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input:disabled {
  background: #f1f2f4;
}
:focus-visible {
  outline: 3px solid #a98252;
  outline-offset: 3px;
}
.legacy-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pagination {
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .content-section-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .admin-bar {
    height: auto;
    min-height: 76px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
  }
  .admin-bar span {
    font-size: 14px;
  }
  .brand img {
    width: 210px;
  }
  .sidebar {
    max-width: 100vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.hero { grid-template-columns: 0.85fr 1.15fr; min-height: 0; }
.hero-copy { padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 72px); }
.hero-image { display: flex; align-items: center; background: #e8edf3; }
.hero-image img { display: block; width: 100%; height: auto; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
