/* Anneal Capital Partners. Colours, fonts and tracked caps follow the intro
   deck ("Quarry"). Layout: split, like the deck cover; stacks on phones.
   Fonts are self-hosted (SIL Open Font License). */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
:root {
  --bg: #f7f8f6; --fg: #1f2622; --muted: #57615b; --line: #d5dcd7; --soft: #dfe5e1;
  --card: #ebefec; --accent: #2e6b4f;
  --panel: #1f2622; --panel-fg: #f7f8f6; --panel-muted: #a9b3ad; --panel-line: #3b4640; --panel-accent: #a9c7b6;
  --band: #1f2622; --band-fg: #c9d1cc;
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2622; --fg: #f7f8f6; --muted: #a9b3ad; --line: #3b4640; --soft: #3b4640;
    --card: #27302b; --accent: #7fb397;
    --panel: #151a17; --panel-fg: #f7f8f6; --panel-muted: #a9b3ad; --panel-line: #2f3833; --panel-accent: #7fb397;
    --band: #151a17; --band-fg: #a9b3ad;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh;
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* Tracked caps: the letter-spacing sits on the letters. Each word is its
   own span so no extra tracking lands on the spaces between words. */
.caps {
  font-family: var(--body); font-weight: 700; font-size: 12px; line-height: 1.4;
  text-transform: uppercase; color: var(--accent);
  display: flex; flex-wrap: wrap; column-gap: .55em; row-gap: 2px;
}
.caps > span { letter-spacing: .2em; margin-right: -.2em; }

/* The email link: a 2px green rule that thickens on hover. */
.email {
  color: var(--fg); font-weight: 500; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color .25s ease, text-decoration-thickness .25s ease;
}
.email:hover { color: var(--accent); text-decoration-thickness: 3px; }
.copy {
  font: inherit; font-size: 13px; color: var(--muted); background: none;
  border: 0; padding: 4px 0; cursor: pointer;
}
.copy:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Three bars, the logo's crossbar idea. On load they start slightly out of
   line and settle into order once, the way annealing settles a metal. */
.bars { display: grid; gap: 6px; width: 120px; }
.bars span { display: block; height: 4px; background: var(--soft); border-radius: 1px; }
.bars span:nth-child(1) { width: 100%; --dx: -16px; --r: -2.5deg; }
.bars span:nth-child(2) { width: 72%; background: var(--accent); --dx: 20px; --r: 2deg; }
.bars span:nth-child(3) { width: 86%; --dx: -9px; --r: -1.5deg; }
.settle { animation: settle 1.6s cubic-bezier(.2, .7, .15, 1) .2s both; }
.bars span { animation: settle-bar 1.8s cubic-bezier(.2, .7, .15, 1) both; }
.bars span:nth-child(2) { animation-delay: .12s; }
.bars span:nth-child(3) { animation-delay: .24s; }
@keyframes settle-bar {
  from { transform: translateX(var(--dx)) rotate(var(--r)); opacity: .35; }
  to { transform: none; opacity: 1; }
}
@keyframes settle {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .settle, .bars span { animation: none; }
}

footer {
  background: var(--band); color: var(--band-fg); font-size: 13px;
  padding: 18px var(--gutter-r) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gutter);
}
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.split { display: grid; grid-template-columns: 46fr 54fr; min-height: 100vh; min-height: 100svh; }
.panel {
  background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; padding: 64px 32px;
}
.panel img { width: clamp(200px, 19vw, 260px); }
.panel .bars span { background: var(--panel-line); }
.panel .bars span:nth-child(2) { background: var(--panel-accent); }
.panel .bars { justify-items: center; }
.content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px clamp(32px, 7vw, 112px); max-width: 760px;
}
.lead {
  font-family: var(--display); font-weight: 700; letter-spacing: -.012em;
  font-size: clamp(26px, 2.5vw, 36px); line-height: 1.22; max-width: 20ch; margin-top: 18px; text-wrap: balance;
}
.sub { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 40ch; margin-top: 18px; }
.contact { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; font-size: 18px; }
.fine { margin-top: 56px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .panel { padding: 56px 24px 48px; gap: 32px; padding-top: max(56px, env(safe-area-inset-top, 0px)); }
  .panel img { width: 176px; }
  .content { padding: 44px var(--gutter-r) calc(36px + env(safe-area-inset-bottom, 0px)) var(--gutter); justify-content: flex-start; }
  .lead { font-size: 26px; }
  .contact { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fine { margin-top: 44px; }
}

/* 404 page */
.home-logo { display: block; border-radius: 4px; }
.content .sub .email { font-weight: 500; }
.content .contact + .sub { margin-top: 18px; }
