:root {
  --iron: #1d1f22;
  --iron-2: #2a2d31;
  --ash: #f6f3ee;
  --paper: #fffdf9;
  --ink: #23262a;
  --muted: #5f646b;
  --line: #e2ddd4;
  --ember: #c4531d;
  --ember-dark: #9e4115;
  --ember-soft: #fbe9df;
  --ok: #2f6b3a;
  --err: #a12a2a;
  --radius: 10px;
  --max: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; }

a { color: var(--ember-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  background: var(--iron);
  color: var(--ash);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ash);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.brand svg { width: 30px; height: 30px; }
.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  color: #d9d4cb;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  font-family: var(--sans);
  cursor: pointer;
}
.btn:hover { background: var(--ember-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--ash);
  border: 1px solid #5a5e64;
}
.btn-ghost:hover { background: var(--iron-2); }

/* Hero */
.hero {
  background: var(--iron);
  color: var(--ash);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 83, 29, 0.35), rgba(196, 83, 29, 0) 70%);
  pointer-events: none;
}
.hero .eyebrow {
  color: #e59a6f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero p.lede {
  font-size: 1.2rem;
  color: #d9d4cb;
  max-width: 620px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--ash); }
.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ember-soft);
  color: var(--ember-dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }

/* Process */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--iron);
  color: var(--ash);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
}
.steps p { color: var(--muted); margin: 0; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principles li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 0; }
.principles strong { display: block; }
.principles span { color: var(--muted); }

/* Form */
.commission {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
form.card { padding: 28px; }
.field { margin-bottom: 18px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc8bc;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
  border-color: var(--ember);
}
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
}
.form-status.ok { display: block; background: #e6f2e8; color: var(--ok); }
.form-status.err { display: block; background: #f7e3e3; color: var(--err); }
.expect {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.expect li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--muted);
}
.expect li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--ember);
  transform: rotate(45deg) scale(0.7);
}

/* Footer */
.site-footer {
  background: var(--iron);
  color: #b8b2a8;
  padding: 36px 0;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #e59a6f; }

/* Simple pages */
.simple {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.simple p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

@media (max-width: 800px) {
  .about, .commission { grid-template-columns: 1fr; gap: 28px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  section { padding: 56px 0; }
  .hero { padding: 52px 0 64px; }
  .nav { gap: 14px; }
}
