:root {
  --paper: #f5f1e9;
  --ink: #25201d;
  --muted: #706861;
  --line: #d8cec2;
  --panel: #fffaf2;
  --accent: #8b2f44;
  --accent-2: #1f6d70;
  --night: #16151a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 25px;
  font-weight: 900;
}

nav {
  display: flex;
  gap: 8px;
}

nav a,
.text-link {
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.language-switcher button {
  min-width: 42px;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--panel);
  background: var(--accent);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: clamp(34px, 7vw, 86px) clamp(18px, 6vw, 82px);
  background: linear-gradient(135deg, var(--night), #243836 58%, #f5f1e9 58%);
}

.hero-mark {
  width: min(58vw, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 8px;
  color: var(--panel);
  background: rgba(255, 250, 242, 0.08);
  font-size: clamp(96px, 22vw, 220px);
  font-weight: 900;
  line-height: 1;
}

.hero-copy {
  max-width: 760px;
  padding: clamp(22px, 4vw, 44px);
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.section,
.page-hero {
  padding: clamp(38px, 7vw, 86px) clamp(18px, 6vw, 82px);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards article,
.form-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(37, 32, 29, 0.11);
}

.form-shell {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  min-height: 130px;
  resize: vertical;
}

.button,
.form-shell button {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--panel);
  background: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 8vw, 86px);
}

@media (max-width: 860px) {
  .hero,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    background: linear-gradient(180deg, var(--night), #243836 42%, var(--paper) 42%);
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero-copy {
    padding: 20px;
  }
}
