:root {
  color-scheme: light;
  --background: #f5f2ed;
  --surface: #ffffff;
  --text: #24201d;
  --muted: #6f6862;
  --accent: #d84678;
  --accent-dark: #a82b58;
  --border: #dfd8d1;
  --danger: #a52a3a;
  --success: #24734a;
  --shadow: 0 18px 50px rgba(48, 37, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner,
main,
footer {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
}

main {
  padding: 56px 0 72px;
}

article,
.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 56px);
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.1rem;
}

p,
li {
  max-width: 78ch;
}

.meta,
.muted {
  color: var(--muted);
}

.notice {
  margin: 24px 0;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff5f8;
  padding: 16px 18px;
}

.notice.danger {
  border-left-color: var(--danger);
  background: #fff4f4;
}

.notice.success {
  border-left-color: var(--success);
  background: #f1fbf6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.card h2 {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(216, 70, 120, 0.16);
}

button,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 12px 24px;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--accent);
  color: #fff;
}

.form-row {
  margin: 20px 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding: 0 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  main {
    padding-top: 28px;
  }

  article,
  .panel {
    border-radius: 18px;
  }
}
