/* Arc3 Ventures — arc3ventures.com
   Shared by the homepage, the 404 and feedback pages, and every page
   tools/build_site.py builds from the Markdown in legal/.

   Palette is from the brand sheet (Arc3 Ventures Logo Lockups):
     Deep Navy  #0D1B2A     Copper     #BB7333
     Charcoal   #2B2F33     Warm Gray  #A7A29A */

/* ---------- tokens ---------- */

:root {
  /* Brand constants — identical in both themes. */
  --navy:       #0D1B2A;
  --copper:     #BB7333;
  --charcoal:   #2B2F33;
  --warm-gray:  #A7A29A;
  --light:      #F5F3F0;

  /* Light theme. */
  --bg:         #FBFAF8;
  --surface:    #FFFFFF;
  --ink:        #0D1B2A;
  --ink-soft:   #3B4756;
  --muted:      #6C7683;
  --rule:       #E3E1DC;
  --accent:     var(--copper);
  /* Copper on white is 4.2:1 — under AA for body text, so text-bearing copper
     is darkened while graphic copper stays exactly on brand. */
  --accent-ink: #96551F;
  --shadow:     0 1px 2px rgba(13, 27, 42, .04), 0 10px 30px -14px rgba(13, 27, 42, .18);

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Poppins is the brand's own wordmark type — "Arc3" Bold, "Ventures" Light,
     tagline Regular at 0.085em tracking (drawing A3-003). Not a substitute. */
  --display: "Poppins", "Futura", "Century Gothic", var(--sans);

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0D1B2A;
    --surface:    #14263A;
    --ink:        #F1F4F7;
    --ink-soft:   #C5CDD6;
    --muted:      #8A96A4;
    --rule:       #21384F;
    --accent-ink: #D9945A;
    --shadow:     0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  }
}

/* ---------- base ---------- */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .16vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: .5rem;
  background: var(--surface); color: var(--ink);
  padding: .6rem 1rem; border-radius: 6px; box-shadow: var(--shadow); z-index: 10;
}
.skip:focus { left: 1rem; }

/* Section label — the annotation voice from the drawing sheets: Poppins,
   uppercase, widely tracked. */
.label {
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .9rem;
}

/* ---------- brand marks ---------- */

/* All artwork is the exported set, never redrawn. The lockups have documented
   minimum widths below which the wordmark stops reading: horizontal compact is
   150px, so both uses below sit above it. */
.brand img { display: block; width: 11.5rem; height: auto; }
.foot-lockup { display: block; width: 10rem; height: auto; }

/* Only the matching file is fetched, and the media query re-evaluates live if
   the viewer changes theme. */
.mark-lg {
  display: block;
  width: 5.5rem;
  aspect-ratio: 1;
  background: center / contain no-repeat url("brand/arc3-mark-navy.svg");
}
@media (prefers-color-scheme: dark) {
  .mark-lg { background-image: url("brand/arc3-mark-white.svg"); }
}

/* ---------- header ---------- */

/* Navy in both themes, so it reads as one block with the hero and stays a
   persistent brand bar once you scroll past it onto light ground. */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  color: #F1F4F7;
}
@supports not (backdrop-filter: blur(1px)) { .site-head { background: var(--navy); } }

.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.head-nav { display: flex; gap: 1.75rem; font-size: .9375rem; }
.head-nav a { color: #9AA7B5; text-decoration: none; transition: color .18s ease; }
.head-nav a:hover { color: #FFFFFF; }

@media (max-width: 44rem) { .head-nav { display: none; } }

/* ---------- hero ---------- */

/* Always navy, in both themes — the brand should be present on first paint
   rather than depending on the visitor's system setting. */
.hero {
  background: var(--navy);
  color: #F1F4F7;
  padding-block: clamp(4rem, 11vw, 8rem);
  position: relative;
  overflow: hidden;
}

/* A faint drafting grid, and the third arc sweeping out of the corner. Both are
   decoration and both stay well under the text. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(167, 162, 154, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 162, 154, .07) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(ellipse 80% 70% at 78% 40%, #000 20%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -14rem; top: 50%;
  width: 42rem; height: 42rem;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid transparent;
  border-left-color: rgba(187, 115, 51, .5);
  border-top-color: rgba(187, 115, 51, .22);
  pointer-events: none;
}
@media (max-width: 60rem) { .hero::after { display: none; } }

.hero-inner { position: relative; }

/* Set exactly as the brand specifies it: Poppins Regular, uppercase,
   0.085em tracking, copper. */
.tagline {
  font-family: var(--display);
  font-size: clamp(.8125rem, .75rem + .2vw, .9375rem);
  font-weight: 400;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 1.5rem + 4.1vw, 4.5rem);
  max-width: 15ch;
  margin-bottom: 1.75rem;
  color: #FFFFFF;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.62;
  color: #D3DAE2;
  max-width: 54ch;
}
.lede + .lede { margin-top: 1.1rem; }
.lede-quiet { color: #9AA7B5; font-size: 1.0625rem; max-width: 48ch; }

.cta {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 2.5rem; padding: .85rem 1.5rem;
  border-radius: 999px;
  background: var(--copper); color: #FFFFFF;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .18s ease;
}
.cta svg {
  width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s ease;
}
.cta:hover { background: #A2611F; color: #FFFFFF; }
.cta:hover svg { transform: translateX(3px); }

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

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--rule); }

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head h2, .contact h2, .about-grid h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.35rem);
}

/* ---------- lanes ---------- */

.lanes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.lane {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.section-alt .lane { background: var(--bg); }

.lane-num {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2rem);
  right: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--warm-gray);
  opacity: .7;
}

.lane-icon {
  width: 1.75rem; height: 1.75rem; display: block; margin-bottom: 1.1rem;
  fill: none; stroke: var(--copper); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.lane-icon .fill { fill: var(--copper); stroke: none; }

.lane h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.lane p { color: var(--ink-soft); }

.lane-note {
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--muted) !important;
}

/* ---------- about ---------- */

.about-grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr); align-items: start;
}
@media (min-width: 54rem) { .about-grid { grid-template-columns: 19rem minmax(0, 1fr); } }

.about-title-col .mark-lg { margin-top: 1.75rem; }

/* The drawing's own status callouts, reused as copy. */
.arc-status {
  margin: 1.75rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: .8125rem;
  letter-spacing: .06em;
  display: grid; gap: .5rem;
}
.arc-status > div { display: flex; justify-content: space-between; gap: 1rem; }
.arc-status dt { color: var(--muted); letter-spacing: .08em; }
.arc-status dd { margin: 0; color: var(--ink-soft); }
.arc-status .in-progress dt,
.arc-status .in-progress dd { color: var(--accent-ink); }

.about-body { display: grid; gap: 1.15rem; max-width: 62ch; }
.about-body p { color: var(--ink-soft); font-size: 1.0625rem; }

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

.contact { max-width: 46rem; }
.contact-lede { margin-top: .9rem; color: var(--muted); }

.mailto {
  display: inline-block; margin-top: 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 400; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: .1em;
  transition: color .18s ease;
}
.mailto:hover { color: var(--accent-ink); }

.entity {
  margin: clamp(2.25rem, 5vw, 3rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.entity dt {
  font-family: var(--display);
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .4rem;
}
.entity dd { margin: 0; font-size: 1rem; color: var(--ink); }

/* ---------- footer ---------- */

/* Echoes the title block along the bottom of the drawing. */
.site-foot {
  background: var(--navy);
  color: #9AA7B5;
  padding-block: 1.75rem;
}
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 1.5rem;
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .08em;
}
.foot-entity { color: #F1F4F7; }
.foot-meta { color: #7C8899; }

/* Filled in at build time with whichever legal documents are published, so the
   footer never links to a page that does not exist. */
.foot-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.foot-legal a { color: #9AA7B5; text-decoration: none; transition: color .18s ease; }
.foot-legal a:hover { color: #FFFFFF; text-decoration: underline; }

/* ---------- document pages: legal, 404 ---------- */

.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }

/* Long-form legal text reads best at roughly 70 characters a line. */
.doc-wrap { max-width: 48rem; }

.draft-banner {
  margin-bottom: 2rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--copper);
  border-left-width: 4px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--copper) 10%, var(--surface));
  color: var(--ink);
  font-size: .9375rem;
}

mark.placeholder {
  background: color-mix(in srgb, var(--copper) 30%, transparent);
  color: inherit;
  padding: 0 .15em;
  border-radius: 3px;
}

.legal { color: var(--ink-soft); }
.legal h1, .legal h2, .legal h3 { color: var(--ink); scroll-margin-top: 6rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 1.25rem; }
.legal h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); margin: 2.75rem 0 1rem; }
.legal h3 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.legal p, .legal ul, .legal ol, .legal blockquote, .legal .table-wrap { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li + li { margin-top: .35rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.legal blockquote {
  margin-inline: 0;
  padding: .75rem 1.1rem;
  border-left: 3px solid var(--copper);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
}
.legal blockquote p:last-child { margin-bottom: 0; }

.legal code, .draft-banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  padding: .05em .3em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
}

.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--rule);
}
.legal th { font-family: var(--display); font-weight: 600; color: var(--ink); background: var(--surface); }

.not-found h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0 0 1rem; }
.not-found p { color: var(--ink-soft); max-width: 42rem; }
.not-found .cta { margin-top: 1.75rem; }

/* ---------- feedback ---------- */

/* The script shows and hides whole blocks with the hidden attribute, which any
   display rule below would otherwise override. */
.feedback [hidden] { display: none !important; }

.feedback h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0 0 1rem; }
.feedback h1:focus { outline: none; }
.fb-lede { color: var(--ink-soft); max-width: 42rem; }
.fb-lede + .fb-lede { margin-top: .75rem; }

.fb-form { display: grid; gap: 1.75rem; margin-top: 2.25rem; }

/* Cards around real radio buttons, not replacements for them: the radio is
   still what keyboards, screen readers and form reset work with. */
.fb-kinds {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  min-width: 0; margin: 0; padding: 0; border: 0;
}
.fb-kinds legend,
.fb-field label { padding: 0; font-family: var(--display); font-weight: 600; color: var(--ink); }
.fb-kinds legend { margin-bottom: .75rem; }

.fb-kind {
  display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; row-gap: .15rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fb-kind input {
  grid-row: 1 / span 2; align-self: start;
  width: 1.05rem; height: 1.05rem; margin: .3rem 0 0;
  accent-color: var(--copper);
}
.fb-kind-name { font-weight: 600; color: var(--ink); }
.fb-kind-hint { grid-column: 2; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.fb-kind:hover { border-color: var(--warm-gray); }
.fb-kind:has(input:checked) { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.fb-kind:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
.fb-kind input:focus-visible { outline: none; }

.fb-field { display: grid; gap: .4rem; }
/* Borders at --muted rather than --rule: an input's edge is the only thing
   marking where to type, so it needs 3:1 contrast, and --rule is decoration. */
.fb-field input,
.fb-field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--muted); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font: inherit;
  transition: border-color .18s ease;
}
.fb-field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.fb-field input:hover,
.fb-field textarea:hover { border-color: var(--ink-soft); }
.fb-field input:focus-visible,
.fb-field textarea:focus-visible { border-color: var(--copper); outline-offset: 1px; }

.fb-hint,
.fb-note { font-size: .875rem; color: var(--muted); }
.fb-note { max-width: 42rem; }

.fb-error {
  padding: .75rem 1rem;
  border: 1px solid #B42318; border-left-width: 4px; border-radius: 8px;
  background: color-mix(in srgb, #B42318 8%, var(--surface));
  color: var(--ink);
}

/* Off-screen rather than display: none, which some bots check for. */
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fb-submit { justify-self: start; margin-top: 0; border: 0; font-family: inherit; cursor: pointer; }
.fb-submit:disabled { opacity: .65; cursor: progress; }
.fb-submit:disabled:hover { background: var(--copper); }
.fb-submit:disabled svg { transform: none; }

.fb-again {
  margin-top: 1.75rem; padding: .7rem 1.25rem;
  border: 1px solid var(--muted); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: .9375rem; font-weight: 500;
  cursor: pointer;
}
.fb-again:hover { border-color: var(--ink); }
