:root {
  --bg: #f7efe4;
  --surface: rgba(255, 249, 241, 0.84);
  --surface-strong: #fffaf4;
  --ink: #171311;
  --muted: #6d6159;
  --line: rgba(23, 19, 17, 0.08);
  --line-strong: rgba(23, 19, 17, 0.16);
  --accent: #d56e37;
  --accent-deep: #a6481f;
  --shadow: 0 24px 70px rgba(33, 23, 18, 0.08);
  --danger: #9d2e2e;
  --danger-soft: #fff1ef;
  --success: #255f3e;
  --success-soft: #eef8f1;
  --radius-xl: 2rem;
  --radius-lg: 1.35rem;
  --radius-md: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(213, 110, 55, 0.18), transparent 23%),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 3rem;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(251, 246, 239, 0.72);
  border-bottom: 1px solid rgba(23, 19, 17, 0.04);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8f2;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
}

.header-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-links a {
  color: var(--muted);
  font-weight: 600;
}

.page-layout {
  padding-top: 3.2rem;
}

.page-intro h1,
.info-card h2 {
  font-family: "Fraunces", Georgia, serif;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.04rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card,
.form-shell,
.alert {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 1.2rem;
}

.info-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.info-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.alert {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
}

.alert strong {
  display: block;
}

.alert p,
.alert ul {
  margin: 0.5rem 0 0;
  line-height: 1.75;
}

.alert ul {
  padding-left: 1.2rem;
}

.alert--error {
  border-color: rgba(157, 46, 46, 0.12);
  background: var(--danger-soft);
  color: var(--danger);
}

.alert--success {
  border-color: rgba(37, 95, 62, 0.12);
  background: var(--success-soft);
  color: var(--success);
}

.form-shell {
  margin-top: 1.4rem;
  padding: 1.4rem;
}

.success-shell {
  display: grid;
  gap: 1rem;
}

.success-shell__content h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
}

.success-shell__content p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.success-shell__actions {
  display: flex;
  justify-content: flex-start;
}

.delete-form {
  display: grid;
  gap: 1.2rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field span,
.option-card legend {
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(213, 110, 55, 0.18);
  outline-offset: 1px;
  border-color: rgba(213, 110, 55, 0.45);
}

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

.option-card {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
}

.option-card label,
.checks label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.7;
}

.option-card label + label,
.checks label + label {
  margin-top: 0.65rem;
}

.checks {
  padding: 1rem;
  border: 1px dashed rgba(23, 19, 17, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.44);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8f2;
  font-weight: 700;
  cursor: pointer;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button--secondary:hover {
  text-decoration: none;
  background: #fffaf4;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

@media (max-width: 960px) {
  .info-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1rem, 100%);
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.9rem 0;
  }
}
