:root {
  --ink: #f6f7f7;
  --panel: #ffffff;
  --line: #dcdcde;
  --text: #1e1e1e;
  --muted: #646970;
  --accent: #3858e9;
  --accent-2: #2145e6;
  --accent-soft: #e3e8fd;
  --good: #008a20;
  --danger: #d63638;
  --font: "Recoleta", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10001;
  background: var(--accent); color: #fff; padding: 10px 14px;
  border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Soft WP.com-like atmosphere */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(56, 88, 233, 0.12), transparent 55%),
    radial-gradient(700px 420px at 90% 0%, rgba(6, 117, 196, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f7 40%, #f0f0f1 100%);
}
.grid-fx { display: none; }

.site-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: block; flex-shrink: 0;
}
.mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px; color: #fff;
  letter-spacing: 0.02em;
}
.logo strong {
  font-family: var(--font);
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); text-transform: none;
}
.logo span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; font-family: var(--sans); }
.nav-links {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 15px; font-weight: 600;
}
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; color: inherit; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { text-decoration: none; }
.btn-ghost {
  border-color: var(--line); color: var(--text); background: #fff;
}
.btn-ghost:hover { border-color: #a7aaad; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-2); color: #fff; }

.page {
  position: relative; z-index: 1;
  padding: 40px 0 80px;
}
.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400; margin: 0 0 12px; line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-hero p {
  color: var(--muted); max-width: 40rem; margin: 0 0 28px; line-height: 1.6; font-size: 1.1rem;
}
.meta-line { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.prose {
  max-width: 48rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  line-height: 1.7;
  color: #2c3338;
  font-size: 16px;
  box-shadow: var(--shadow);
}
.prose h2 {
  font-family: var(--font);
  font-size: 1.35rem; margin: 1.6em 0 0.55em; color: var(--text); font-weight: 500;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.3em 0 0.4em; color: var(--text); }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--accent); }
.prose code {
  font-size: 0.9em; background: #f0f0f1; padding: 0.1em 0.35em; border-radius: 3px;
}

.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 24px; padding: 40px 0 48px;
  color: var(--muted); font-size: 14px;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-grid strong {
  display: block; color: var(--text); margin-bottom: 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-grid a {
  display: block; color: var(--muted); margin-bottom: 8px; text-decoration: none;
}
.footer-grid a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font);
  font-size: 1.2rem; color: var(--text); font-weight: 600;
}
.footer-copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start;
}
.form-card, .info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--line); background: #fff;
  color: var(--text); font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.form-ok { color: var(--good); font-size: 14px; margin-top: 12px; display: none; }
.form-err { color: var(--danger); font-size: 14px; margin-top: 12px; display: none; }
.checkbox-field label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer;
}
.checkbox-field input { margin-top: 3px; flex-shrink: 0; }

/* Cookie banner — light WP.com style */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10000;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: none;
}
.cookie-banner.show { display: block; animation: cookieIn 0.35s ease; }
.cookie-banner h2 { margin: 0 0 8px; font-size: 1.05rem; font-family: var(--font); font-weight: 500; }
.cookie-banner p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { padding: 9px 14px; font-size: 13px; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { width: 100%; order: 3; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
