/* Mere Capital: a venture fund's site. Cold mist, ink, verdigris, a little bronze. */
:root {
  --bg: #eef1f0; --surface: #f7f9f8; --ink: #121b1a; --muted: #576663; --line: #c8d1ce;
  --accent: #2a7064; --bronze: #875b30; --blood: #9a2b2b;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --old: "IM Fell English", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow { font: 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hidden-ink { color: var(--bg); }
.hidden-ink::selection { background: var(--blood); color: #fff; }

header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
header.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
header nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--ink); }
.label-turned { color: var(--blood) !important; }
.lang { display: flex; gap: 2px; font: 12px var(--mono); }
.lang button { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.lang button[aria-pressed="true"] { color: var(--ink); background: #dde5e2; }

.hero { padding-block: 88px 64px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: .96; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 0; max-width: 12ch; text-wrap: balance; }
.hero p { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 24px 0 0; }
.hero .since { font-family: var(--old); font-style: italic; font-size: 22px; color: var(--ink); margin-top: 28px; }

/* The one marked door: in the first screen, on a phone and on a desk. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px 56px; align-items: end; }
.start-a { display: grid; gap: 8px; padding: 24px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; transition: transform .25s; }
.start-a:hover { transform: translateY(-2px); } .start-a:hover .start-go { background: #fff; }
.start-eye { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #a9bab5; } .start-eye b { color: #8fd0c0; } .start-eye .label-turned { color: #ef8a7c !important; }
.start-a strong { font-size: 34px; line-height: 1.05; letter-spacing: -.02em; margin-top: 6px; }
.start-line { font-size: 17px; line-height: 1.45; color: #d5dfdc; }
.start-bar { height: 4px; border-radius: 2px; background: #2c3a38; overflow: hidden; margin-top: 4px; } .start-bar i { display: block; height: 100%; background: #8fd0c0; }
.start-go { justify-self: start; margin-top: 10px; padding: 12px 20px; border-radius: 10px; background: var(--bg); color: var(--ink); font-weight: 700; transition: background .2s; }
.hero .start p { font-size: 13.5px; margin: 12px 2px 0; } .start p a { color: var(--ink); white-space: nowrap; }
.co .st.here { background: var(--accent); color: #fff; }

section { border-top: 1px solid var(--line); padding-block: 56px; }
.head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 6px 0 0; }
.head .meta { font: 12.5px var(--mono); color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.co { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 196px; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s; }
a.co:hover { transform: translateY(-2px); border-color: var(--muted); }
.co .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co .st { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #dde5e2; color: var(--muted); }
.co .st.active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.co .st.stealth { background: var(--ink); color: var(--bg); }
.co h3 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.co .cat { font-size: 14px; color: var(--muted); margin-top: -6px; }
.co .line { font-size: 15px; margin-top: auto; }
.co .foot { font: 11.5px var(--mono); color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.co.new { animation: arrive 1.6s ease-out both; }
@keyframes arrive { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.co.redacted { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, #e9eeec 10px 20px); }
.bar { display: block; height: 16px; border-radius: 3px; background: var(--ink); }
.bar.w60 { width: 60%; } .bar.w40 { width: 40%; height: 26px; } .bar.w80 { width: 80%; } .bar.thin { height: 10px; opacity: .55; }

.letters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.letters .empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 22px; }
.letters .empty p { margin: 0; }
.letters .empty .when { font-family: var(--old); font-size: 24px; margin-top: 8px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.def { font-family: var(--old); font-size: 21px; line-height: 1.45; }
.def p { margin: 0 0 14px; }
.def b { font-family: var(--display); font-size: 15px; letter-spacing: .02em; }
.def i { color: var(--muted); }
.partner { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.partner .ph { width: 64px; height: 80px; border-radius: 6px; background: linear-gradient(160deg, #cfd8d5, #a9b7b3); display: grid; place-items: center; font: 9px var(--mono); color: var(--muted); text-align: center; flex: none; }
.partner b { display: block; font-size: 17px; }
.partner span { font-size: 13.5px; color: var(--muted); }
.principles { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.principles li { padding-left: 18px; position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--bronze); }

footer { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .letters, .about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  header nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-block: 30px 40px; } .hero h1 { margin-top: 12px; } .hero p { font-size: 17px; margin-top: 16px; } .hero .since { font-size: 20px; margin-top: 14px; } .start-a { padding: 20px; } .start-a strong { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .co.new { animation: none; } .start-a:hover, a.co:hover { transform: none; } }

/* LP letters */
.lp { display: grid; gap: 10px; }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.letter summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; gap: 2px; }
.letter summary::-webkit-details-marker { display: none; }
.letter summary .mono { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.letter summary b { font-size: 18px; }
.letter .paper { padding: 4px 22px 20px; font-family: var(--old); font-size: 18px; line-height: 1.55; }
.letter .paper p { margin: 0 0 10px; }
.letter .salute { position: relative; } .letter .salute .hidden-ink { position: absolute; left: 0; top: 1.4em; font-size: 15px; }
.letter .salute span:first-child { display: block; margin-bottom: 1.2em; }
.letter .sign { font-style: italic; text-align: right; }
.letter .ps { font-size: 16px; color: var(--muted); }
.letter .sc { font-family: var(--sans, inherit); font-size: 13px; letter-spacing: .14em; color: var(--ink); font-weight: 700; }

/* Annual Meeting banner (from 12 March 2027) */
.agm { padding-block: 0 24px; } .agm-link { display: grid; gap: 4px; background: #08090b; color: #e8e8e8; border-radius: 14px; padding: 20px 22px; text-decoration: none; border: 1px solid #23262c; }
.agm-link b { font-size: 22px; } .agm-link span:last-child { color: #c8915f; } .agm-link .eyebrow { color: #8e939b; }
.fam-link { background: #f3efe6; color: #15201d; border-color: #d8d1c2; font-family: "Cormorant Garamond", Georgia, serif; }
.fam-link b { font-size: 26px; font-weight: 600; } .fam-link span { font-family: var(--display); } .fam-link span:last-child { color: #8f2a2a; font-weight: 700; } .fam-link .eyebrow { color: #5d6763; font-family: var(--mono); }
