:root {
  --blue: #0E84CA;
  --gray: #8A8A8A;
  --ink: #2B2B2B;
  --paper: #FFFFFF;
  --rule: #E8E8E8;
  --field: #FCFCFC;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #3BA3E0;
    --gray: #9A9A9A;
    --ink: #EDEDED;
    --paper: #121212;
    --rule: #2A2A2A;
    --field: #1A1A1A;
  }
}

*, *::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; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 34rem;
}

/* Mark — the serif H from the business card */
.mark { text-align: center; }

.glyph {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--blue);
}

h1 {
  margin: 1.75rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
}

.statement {
  margin: 3.5rem 0 0;
  padding: 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: left;
}

/* Ventures — collapsed to a single line until opened */
.ventures {
  margin-top: 3.5rem;
  border-top: 1px solid var(--rule);
}

details {
  border-bottom: 1px solid var(--rule);
}

summary {
  position: relative;
  padding: 1.25rem 2rem 1.25rem 0.25rem;
  font-size: 1rem;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  transition: opacity 120ms ease;
}

summary::-webkit-details-marker { display: none; }

summary:hover { opacity: 0.7; }

summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Thin plus that rotates into a minus when open */
summary::after,
summary::before {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.7rem;
  height: 1px;
  background: var(--gray);
  transition: transform 200ms ease;
}

summary::before { transform: rotate(90deg); }

details[open] summary::before { transform: rotate(0deg); }

.body {
  padding: 0 0.25rem 1.75rem;
}

.body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Inline links inside the section copy */
.body p:not(.actions) a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 120ms ease;
}

.body p:not(.actions) a:hover,
.body p:not(.actions) a:focus-visible { opacity: 0.7; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem !important;
  font-size: 0.875rem;
}

.actions a { text-decoration: none; }

.actions .primary {
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.actions .secondary { color: var(--gray); }

.actions a:hover,
.actions a:focus-visible { color: var(--blue); }

/* Contact */
#contact { margin-top: 4rem; }

h2 {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

form label {
  display: block;
  margin-bottom: 1.25rem;
}

form label span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* Honeypot — off-screen, never shown to a person */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

button {
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: opacity 120ms ease;
}

button:hover { opacity: 0.88; }

button:disabled { opacity: 0.5; cursor: default; }

.form-status {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--gray);
  min-height: 1.2em;
}

.form-status.ok { color: var(--blue); }

.form-status.error { color: #C0392B; }

@media (prefers-color-scheme: dark) {
  .form-status.error { color: #E88B7D; }
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.social a {
  display: block;
  color: var(--blue);
  transition: opacity 120ms ease;
}

.social a:hover,
.social a:focus-visible { opacity: 0.7; }

.social svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.social svg .fill {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 30rem) {
  body { padding: 2.5rem 1.25rem; }
  .glyph { font-size: 3.25rem; }
  .statement { margin-top: 2.75rem; font-size: 1rem; }
  .ventures { margin-top: 2.75rem; }
  #contact, footer { margin-top: 3rem; }
}
