/* ==========================================================================
   VentureOS — single stylesheet
   Mobile-first, system font stack, no external requests.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-band: #f4f6fb;
  --text: #1b2437;        /* dark navy — ~13:1 contrast on white */
  --muted: #4c5a70;       /* ~7:1 on white */
  --accent: #1d4ed8;      /* blue — 6.5:1 as text on white */
  --accent-ink: #173a9e;
  --border: #d8dee9;
  --card: #ffffff;
  --footer-bg: #101828;
  --footer-text: #e5e9f2;
  --footer-muted: #b3bccd;
  --draft-bg: #fff7e0;
  --draft-border: #b98b00;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-ink);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

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

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

/* ---------- Layout ---------- */

.container {
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main {
  padding-block: 2.5rem 4rem;
}

.prose {
  max-width: 46rem;
}

.prose > * + * {
  margin-top: 1.1em;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 2.5rem 0 0.6rem;
  scroll-margin-top: 4.5rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration-thickness: from-font;
  text-underline-offset: 2px;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-band);
  padding: 0.1em 0.35em;
  border-radius: 0.3rem;
}

small {
  color: var(--muted);
}

/* ---------- Header / navigation ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--accent-ink);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
}

.site-nav a:hover {
  color: var(--accent-ink);
  background: var(--bg-band);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-ink);
  background: var(--bg-band);
}

@media (min-width: 46em) {
  .header-inner {
    justify-content: space-between;
  }
}

/* ---------- Hero (home page) ---------- */

.hero {
  background: var(--bg-band);
  border-bottom: 1px solid var(--border);
  padding-block: 3rem 3.25rem;
  margin-bottom: 2.5rem;
}

.hero h1 {
  max-width: 34ch;
}

.hero .lead {
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  transition: background-color 120ms ease, color 120ms ease;
}

.btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

.btn-secondary:hover {
  background: var(--bg-band);
  color: var(--accent-ink);
}

/* ---------- Cards / sections ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-block: 1.5rem;
}

@media (min-width: 40em) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56em) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  color: var(--accent);
}

.band {
  background: var(--bg-band);
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
  margin-block: 2rem;
}

/* ---------- Notices ---------- */

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--bg-band);
  padding: 1rem 1.25rem;
  margin-block: 1.5rem;
}

.notice p {
  margin-bottom: 0.25rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-draft {
  border-color: var(--draft-border);
  border-left-color: var(--draft-border);
  background: var(--draft-bg);
}

.notice-draft .notice-title {
  color: #6d4d00;
}

.notice-title {
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- Email / contact ---------- */

.email-plain {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  background: var(--bg-band);
  border: 1px dashed var(--border);
  border-radius: 0.6rem;
  padding: 0.85rem 1.25rem;
  margin-block: 0.5rem 1.5rem;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field .hint {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}

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

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

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 2.5rem 1.5rem;
  font-size: 0.95rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 46em) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--footer-muted);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--footer-text);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .tagline {
  color: var(--footer-muted);
  max-width: 36ch;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: var(--footer-muted);
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--footer-text);
}

/* ---------- Misc ---------- */

.page-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.meta-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-top: 1rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 1.75rem;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.55rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
}
