:root {
  --ink: #1c2421;
  --muted: #66736d;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #ddd7ca;
  --gold: #9a6b24;
  --green: #24584a;
  --soft: #eee8da;
  --shadow: 0 12px 28px rgba(28, 36, 33, 0.08);
}

* { 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;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.96);
  backdrop-filter: blur(12px);
}

.brand,
.admin-header a:first-child {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.94rem;
}

nav a {
  border-radius: 6px;
  color: var(--muted);
  padding: 8px 10px;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  background: #fff;
  color: var(--ink);
}

.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 52px);
}

.hero-copy { max-width: 780px; }

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f3efe6);
  box-shadow: var(--shadow);
}

.hero-panel span,
.hero-panel small,
.eyebrow,
.card-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel strong {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.eyebrow,
.card-meta {
  margin: 0 0 10px;
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.45rem, 5.2vw, 4.9rem);
}

h2 { font-size: clamp(1.72rem, 3vw, 2.55rem); }
h3 { font-size: 1.22rem; margin-bottom: 8px; }

.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: #46514c;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--green);
}

.section {
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 52px);
}

.band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.wide {
  max-width: 860px;
  margin-top: 0;
  font-size: 1.08rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.quick-grid a {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.card,
.admin-card,
.message-box {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.text-link { color: var(--green); font-weight: 800; }

.article {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 86px) 20px;
  font-size: 1.08rem;
}

.contact-form,
.admin-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.flash {
  padding: 12px 14px;
  border: 1px solid #b8d7c8;
  border-radius: 6px;
  background: #eef8f2;
  color: #20503e;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 52px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer p { margin: 3px 0; }
.site-footer strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; }

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-card {
  min-height: 120px;
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.narrow { max-width: 420px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 62px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 8px 12px;
  }

  .site-header nav {
    display: none;
    position: absolute;
    inset: 62px 14px auto 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .hero-panel { padding: 20px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { display: grid; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .brand { font-size: 1.12rem; }
  h1 { font-size: 2.25rem; }
  .hero-actions,
  .quick-grid,
  .site-header nav.open {
    grid-template-columns: 1fr;
  }
  .hero-actions { display: grid; }
}
