/* Wanbird — group site (self-contained; each venture site carries its own copy of the base)
   Palette comes from the mark (#1DA1F2) and the owner's chosen direction:
   warm off-white, blue mark, clean black type, generous space. */

:root {
  --paper: #F7F5F0;
  --ink: #000;
  --blue: #1DA1F2;       /* the mark's blue: shapes and large type only */
  --blue-deep: #0A6CB0;  /* readable blue for small text on paper */
  --muted: #55534E;
  --line: rgba(0, 0, 0, .16);
  --line-dark: rgba(255, 255, 255, .22);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --lean: 14deg;         /* the slant of the strokes in the mark */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem .9rem;
  z-index: 10;
}
.skip:focus { top: .75rem; }

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand img { width: 2rem; height: auto; display: block; }

.top nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: .975rem;
}
.top nav a {
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover { border-bottom-color: var(--blue); }

/* ---------- The blade: one stroke of the mark ---------- */

.blade {
  display: block;
  width: .5em;
  height: .82em;
  border: .045em solid var(--ink);
  border-radius: .06em .06em .26em .26em;
  margin-left: .2em; /* the lean pushes the top edge left; keep it on the margin */
  transform: skewX(var(--lean));
  transform-origin: bottom;
}
.is-open .blade,
.hero-name .blade {
  background: var(--blue);
  border-color: var(--blue);
}

/* ---------- Group ---------- */

.group { padding: clamp(3rem, 9vw, 8rem) var(--gutter) clamp(4rem, 10vw, 9rem); }

.group h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 21ch;
  text-wrap: balance;
}

.ventures { margin-top: clamp(3rem, 8vw, 7rem); }

.venture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(16rem, 24rem);
  align-items: center;
  column-gap: clamp(1rem, 2.4vw, 2.5rem);
  padding: clamp(1.4rem, 2.6vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(2.6rem, 6.6vw, 6.25rem); /* sizes the name and its blade together */
}
.venture:last-child { border-bottom: 1px solid var(--line); }

.venture h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -.045em;
}

.venture-info {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
}
.venture-info a {
  display: inline-block;
  margin-top: .6rem;
  color: var(--blue-deep);
  font-weight: 600;
  text-underline-offset: .22em;
  text-decoration-thickness: 2px;
}
.venture-info a:hover { color: var(--ink); }

/* The one load moment: the three strokes rise, as in the mark. */
@keyframes rise {
  from { transform: skewX(var(--lean)) scaleY(0); }
  to   { transform: skewX(var(--lean)) scaleY(1); }
}
.venture .blade { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.venture:nth-child(2) .blade { animation-delay: .12s; }
.venture:nth-child(3) .blade { animation-delay: .24s; }

/* ---------- Contact ---------- */

.contact {
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  background: var(--blue);
  color: var(--ink);
}
.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 16ch;
  text-wrap: balance;
}
.contact p { margin-top: 1.25rem; max-width: 44ch; font-size: 1.15rem; }

.button {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 1rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: .2rem .2rem .9rem .9rem; /* the rounded foot of a stroke */
  transition: background-color .15s, color .15s;
}
.button:hover { background: var(--paper); color: var(--ink); }
.contact :focus-visible { outline-color: var(--ink); }

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

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  background: var(--blue);
  border-top: 1px solid rgba(0, 0, 0, .25);
  font-size: .95rem;
}
.foot :focus-visible { outline-color: var(--ink); }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .venture {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 1rem;
  }
  .venture-info { grid-column: 1 / -1; max-width: 34rem; }
}

@media (max-width: 520px) {
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blade { animation: none !important; }
  .button { transition: none; }
}
