:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6f6f6f;
  --line: #dfdfdf;
  --paper: #ffffff;
  --wash: #f5f3ef;
  --accent: #7b3f34;
  --accent-strong: #2f2a28;
  --focus: #0f6fff;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--wash);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  padding: 22px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.brand-text {
  overflow-wrap: anywhere;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding: 46px 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 36px;
  align-items: start;
  padding: 20px 0 54px;
}

.doc,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc {
  padding: clamp(24px, 5vw, 46px);
}

.doc h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.doc p,
.doc li {
  color: #303030;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.aside {
  position: sticky;
  top: 20px;
}

.panel {
  padding: 18px;
}

.panel-title {
  margin: 0 0 8px;
  font-weight: 760;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel + .panel {
  margin-top: 14px;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.link-list a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

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

.card {
  min-height: 180px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.card:hover {
  border-color: var(--ink);
}

.card small {
  color: var(--accent);
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card h2 {
  margin: 20px 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label,
legend {
  font-weight: 700;
}

fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 180px;
  resize: vertical;
  padding: 12px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--accent-strong);
  color: #ffffff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.notice {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 650;
}

.notice.is-visible {
  display: block;
}

.notice.success {
  background: #e8f4ec;
  color: #174a2a;
}

.notice.error {
  background: #f9e7e4;
  color: #6f1d16;
}

.footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 780px) {
  .brand-row,
  .doc-layout,
  .cards {
    grid-template-columns: 1fr;
  }

  .brand-row {
    align-items: flex-start;
  }

  .doc-layout {
    gap: 16px;
  }

  .aside {
    position: static;
  }

  .cards {
    display: grid;
  }

  .hero {
    padding-top: 30px;
  }
}
