/* GisGap: shared styles for index.html, contact.html and privacy.html
   Minimal light layout: light grey page, black text, one column of content,
   wordmark on top, footer links at the bottom. */

:root {
  --bg: #F5F6F7;
  --surface: #FFFFFF;
  --line: #DFE2E6;
  --line-strong: #C4C9D0;
  --text: #111317;
  --text-soft: #30353C;
  --text-muted: #565C66;
  --accent: #2747D9;
  --button: #111317;
  --button-text: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1120px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Header */
.site-header .container { padding-block: 40px 0; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--text); }

main { flex: 1; }

/* Shared type */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lead { margin: 0; color: var(--text-soft); max-width: 30em; }

/* Guide (home) */
.guide {
  padding-block: 72px 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.guide__intro {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checklist {
  flex: 1 1 400px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; margin-top: 3px; color: var(--accent); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.form--wide { max-width: 560px; }

.form__row { display: flex; flex-wrap: wrap; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-soft); }

.input,
.textarea,
.select {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.input--pill { flex: 1 1 220px; width: auto; border-radius: 999px; }
.textarea { height: auto; min-height: 160px; padding: 14px 18px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #8A9099; }

.button {
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background: #2B2F36; }
.button--self { align-self: flex-start; }

.privacy-note {
  margin: 0;
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.privacy-note svg { flex: none; margin-top: 2px; }

/* Contact form result messages: hidden until contact.php redirects to #sent or #error */
.form-alert {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 15px;
}
.form-alert:target { display: block; }
.form-alert--ok { background: #EAF6EF; border-color: #9CCFB1; color: #145C34; }
.form-alert--error { background: #FCEDED; border-color: #E3A3A3; color: #8A1C1C; }

/* Honeypot field for spam bots: off-screen, never shown to people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Coming soon */
.soon {
  padding-block: clamp(64px, 12vh, 140px) 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .status__dot { animation: none; } }

.topics {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topics li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  color: var(--text-soft);
}

.soon .form { padding-top: 16px; }

/* Inner pages (contact, privacy) */
.page {
  padding-block: 72px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page__head { display: flex; flex-direction: column; gap: 16px; }

.contact-grid { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-grid > * { flex: 1 1 360px; min-width: 0; }

.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-aside h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--text); }
.contact-aside p { margin: 0; color: var(--text-soft); }

.prose { max-width: 68ch; color: var(--text-soft); }
.prose h2 {
  margin: 48px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 600; }

.placeholder { color: var(--accent); }

/* Footer */
/* Black footer. Contrast on #111317: white 18.6:1, #B8BEC6 grey 9.9:1, focus ring #8FA3FF 7.8:1 (WCAG AA needs 4.5:1 for text, 3:1 for focus rings). */
.site-footer {
  --footer-bg: #111317;
  --footer-text: #B8BEC6;
  --footer-strong: #FFFFFF;
  --footer-focus: #8FA3FF;
  background: var(--footer-bg);
  color: var(--footer-text);
}
.site-footer :focus-visible { outline-color: var(--footer-focus); }
.site-footer .container {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--footer-text);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--footer-strong); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .button { width: 100%; }
  .button--self { align-self: stretch; }
}
