:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #202126;
  --muted: #65656d;
  --line: #dedde3;
  --accent: #86609e;
  --accent-dark: #704a88;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.content-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.content-header a {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.content-shell {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.content-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.content-summary {
  max-width: 700px;
  margin: 18px 0 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.content-version { margin: -22px 0 28px; color: var(--muted); font-size: 13px; }
.content-table-wrap { overflow-x: auto; }
.content-table-wrap table { width: 100%; border-collapse: collapse; }
.content-table-wrap th,
.content-table-wrap td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content-table-wrap th { font-size: 13px; }

article {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(35, 31, 41, 0.06);
}

article p { margin: 0 0 1.25em; }
article p:last-child { margin-bottom: 0; }

.submission-card {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.submission-card h2 { margin: 0 0 22px; font-size: 24px; }
.site-submit-form { display: grid; gap: 16px; }
.site-submit-form label { display: grid; gap: 7px; font-weight: 700; }
.site-submit-form input,
.site-submit-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
}
.site-submit-form textarea { min-height: 120px; resize: vertical; }
.site-submit-form .consent-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; font-weight: 500; }
.site-submit-form .consent-row input { width: 16px; min-height: 16px; margin-top: 4px; padding: 0; }
.site-submit-form input:focus,
.site-submit-form textarea:focus { outline: 2px solid var(--text); outline-offset: 2px; }
.site-submit-form button {
  width: fit-content;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.content-form-hint { margin: 0; color: var(--muted); font-size: 13px; }
.content-notice { padding: 12px 14px; border-radius: 9px; }
.content-notice.success { color: #245d3a; background: #e9f7ee; }
.content-notice.error { color: #8b2730; background: #fbeaec; }
.trap-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.content-cta { margin: 28px 0 0; }
.content-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}
.content-cta a:hover { color: #ffffff; background: var(--accent); }

footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

#footer-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}
#footer-navigation a { color: inherit; text-decoration: none; }
#footer-navigation a:hover { color: var(--text); }

@media (max-width: 720px) {
  .content-shell { width: min(100% - 28px, 820px); padding: 42px 0 52px; }
  .content-summary { font-size: 16px; }
  article { padding: 22px; border-radius: 14px; }
  footer { align-items: flex-start; flex-direction: column; }
  #footer-navigation { justify-content: flex-start; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #17181d;
    --surface: #202127;
    --text: #f1f1f4;
    --muted: #b0b0b9;
    --line: #3a3b43;
    --accent: #c7a5d0;
    --accent-dark: #d5b8dd;
  }
}
