:root {
  --bg: #f7f4ef;
  --surface: #fffdf8;
  --surface-alt: #f1e9dd;
  --text: #2e2a26;
  --muted: #6f655c;
  --border: #ded3c5;
  --accent: #9c4f3a;
  --accent-2: #7a3d2c;
  --max-wide: 1080px;
  --max-narrow: 760px;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(46, 42, 38, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
}

.container {
  width: min(100% - 32px, var(--max-wide));
  margin: 0 auto;
}

.container-wide {
  max-width: var(--max-wide);
}

.container-narrow {
  max-width: var(--max-narrow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand-link {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.hero {
  padding: 64px 0 42px;
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  color: #221f1b;
  line-height: 1.25;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

.lede {
  max-width: 70ch;
  color: #4b433b;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}

.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.anchor-row a {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 44px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  color: var(--muted);
  margin-top: 0;
}

.archive {
  margin: 16px 0 0;
  padding-left: 20px;
}

.archive li {
  margin-bottom: 10px;
}

.page {
  padding: 42px 0 56px;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.5vw, 32px);
}

.prose p {
  margin: 0 0 14px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 26px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfc2b1;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
}

.field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-note {
  color: var(--muted);
  margin: 0;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #eee4d8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  padding: 26px 0;
}

.footer-brand {
  font-weight: 700;
  margin: 0 0 8px;
}

.footer-desc,
.footer-line {
  color: #544b43;
}

.footer-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.footer-nav {
  display: grid;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0 20px;
  color: #5a5048;
  font-size: 0.92rem;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 44px;
  }

  .container {
    width: min(100% - 24px, var(--max-wide));
  }

  .section {
    padding: 34px 0;
  }
}
