:root {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-muted: #6e6e73;
  --color-accent: #0071e3;
  --color-border: #d2d2d7;
  --color-error: #d70015;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.site-header nav a,
.inline-form button {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.site-header nav a:hover,
.inline-form button:hover {
  color: var(--color-accent);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  background: #fff;
}

.button.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.form-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.report-photo {
  display: block;
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  object-fit: cover;
}

.field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field-error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin: 0;
}

.field-help {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
}

.notice {
  background: #f0fbf4;
  border: 1px solid #34c759;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.site-footer {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
