/* carda.network — the brand world (owner, 2026-09-30).
   The website is a brand surface, not an app screen: its own type (Archivo, condensed
   black for display), paper, grain and the logo's four tile hues. The app's rules
   (SF Pro, the grey ground, tokens.ts) do not bind it. */
/* Archivo, hosted here (fonts/OFL.txt). One variable file per script: width 62–125, weight 100–900. */
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --paper: #EEE9DF;
  --ink: #16130F;
  --ink2: #4A443B;
  /* the logo's four tiles, and what each one means in the app */
  --terra: #D9653F; /* new people */
  --rose: #D65582;  /* interactions */
  --teal: #2F9A96;  /* events */
  --amber: #DDA02E; /* tasks */
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%; font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
main { overflow-x: clip; }
.cond { font-stretch: 62%; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .86; }

/* paper grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .13; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } }

/* The bar scrolls away with the page, so it never sits on a page's words: phones first (2026-10-02, owner: text
   looked cut off on mobile), then every width (2026-11-24, owner's capture: the bar over a help guide's intro). */
nav {
  position: absolute; inset: 0 0 auto; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(18px, 3.4vw, 44px);
}
.brand { font-stretch: 62%; font-weight: 900; font-size: 30px; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; line-height: 1; }
.links a { margin-left: 26px; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.links a:hover::after, .links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* a letter that stretches when you point at it */
.ch { display: inline-block; transition: font-stretch .7s var(--ease); }
@media (hover: hover) and (pointer: fine) { .stretch .ch:hover { font-stretch: 125%; } }

footer { position: relative; z-index: 2; background: var(--ink); color: var(--paper); padding: 48px clamp(18px, 3.4vw, 44px) 30px; overflow: hidden; }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 34px; }
footer .row > span:last-child { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .row a { text-decoration: none; opacity: .75; transition: opacity .3s; }
footer .row a:hover { opacity: 1; }
footer .word { font-size: clamp(120px, 31vw, 560px); line-height: .78; margin: 0 0 -.06em -.02em; display: block; }

/* ---------- Support, Privacy, Terms ---------- */
.doc-head { background: var(--c); padding: 150px clamp(18px, 3.4vw, 44px) 56px; position: relative; }
.doc-head h1 { font-size: clamp(64px, 12vw, 190px); margin: 0; }
.doc-head .meta { margin: 22px 0 0; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.doc-head .wave { position: absolute; left: 0; right: 0; bottom: -40px; width: 100%; height: 42px; }
.doc-head .wave path { fill: var(--c); }
.doc { max-width: 44em; padding: 90px clamp(18px, 3.4vw, 44px) 110px; margin: 0 auto 0 clamp(0px, 8vw, 140px); }
.doc .lead { font-size: clamp(21px, 2vw, 26px); line-height: 1.4; font-weight: 500; margin: 0 0 48px; text-wrap: pretty; }
.doc h2 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 44px); line-height: .95; margin: 52px 0 12px; }
.doc p { margin: 0 0 14px; color: var(--ink2); text-wrap: pretty; }
.doc a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc .note { font-size: 14px; margin-top: 48px; }
/* ---------- Help (owner, 2026-10-07, pick B): a home of guide tiles, one page per guide ----------
   Each guide wears the hue of its homepage chapter (capture terra, memory rose, stay on top
   amber, see your network teal). The app's buttons are drawn small inside a step (.key),
   never screenshots, so a guide changes only when a tap changes. Built by scripts/build-help.py. */
.key { display: inline-block; vertical-align: baseline; line-height: 1.5; padding: 0 .55em; border-radius: .55em; background: #fff; color: var(--ink); border: 1px solid rgba(22,19,15,.16); box-shadow: 0 1px 0 rgba(22,19,15,.08); font-size: .86em; font-weight: 600; white-space: nowrap; }
/* inline-block, so a key's word sits on the sentence's baseline (2026-10-08, owner: keys sat off the line) */
.key svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .32em; }
.key.round { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: calc(1.5em + 2px); height: calc(1.5em + 2px); padding: 0; border-radius: 50%; line-height: 1; }
.key.round svg { margin: 0; }
.key.mic { background: var(--terra); border-color: transparent; color: #fff; }
.nw { white-space: nowrap; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 18px; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 14px 2.2em; color: var(--ink2); line-height: 1.75; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -.08em; font-stretch: 62%; font-weight: 900; font-size: 1.45em; line-height: 1.2; color: var(--c, var(--ink)); }
.good { margin: 34px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.good h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.good p { margin: 0; }
.hub-head { background: var(--ink); color: var(--paper); padding: 150px clamp(18px,3.4vw,44px) 54px; }
.hub-head h1 { font-size: clamp(64px, 12vw, 190px); margin: 0; }
.hub-head p { margin: 18px 0 0; font-size: clamp(20px,2vw,26px); max-width: 26em; color: rgba(238,233,223,.82); }
.hub { padding: 64px clamp(18px,3.4vw,44px) 40px; max-width: 1180px; }
.hub h2 { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(30px,3.2vw,44px); line-height: .95; margin: 0 0 18px; }
.start { list-style: none; padding: 0; margin: 0 0 72px; counter-reset: s; max-width: 44em; }
.start li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; padding: 14px 0; border-top: 2px solid var(--ink); }
.start li:last-child { border-bottom: 2px solid var(--ink); }
.start li::before { content: counter(s); font-stretch: 62%; font-weight: 900; font-size: 34px; line-height: 1; }
.start a { font-weight: 800; font-size: 20px; text-decoration: none; }
.start span { display: block; color: var(--ink2); font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0 0 72px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 18px 18px 16px; border-radius: 22px; background: var(--c); color: var(--ink); text-decoration: none; overflow: hidden; }
.tile:first-child { grid-column: span 2; }
.tile img { display: block; height: 118px; width: 100%; object-fit: contain; margin: 4px 0 auto; transition: transform .6s var(--ease); }
.tile:first-child img { height: 150px; }
.tile:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.tile b { position: relative; margin-top: 12px; font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: .9; }
.tile span { position: relative; margin-top: 6px; max-width: 16em; font-size: 15px; line-height: 1.35; }
.tile em { position: absolute; left: 14px; top: 14px; z-index: 2; font-style: normal; font-size: 13px; font-weight: 700; background: var(--paper); border-radius: 999px; padding: 3px 9px; }
.faq { max-width: 44em; margin: 0 0 40px; }
.faq details { border-top: 2px solid var(--ink); padding: 14px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: .8; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink2); }
.hub .note, .guide .note { font-size: 16px; }
.art-head { background: var(--c); padding: 120px clamp(18px,3.4vw,44px) 46px; position: relative; display: grid; grid-template-columns: 1fr; align-items: end; gap: 10px; }
.art-head.pic { grid-template-columns: 1fr minmax(160px, 38%); }
.art-head .crumb { position: absolute; top: 92px; left: clamp(18px,3.4vw,44px); font-weight: 700; font-size: 15px; text-decoration: none; }
.art-head h1 { font-size: clamp(52px, 10vw, 150px); margin: 0; }
.art-head p { margin: 14px 0 0; font-size: clamp(19px,1.9vw,24px); max-width: 22em; }
.art-head .pro { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; background: var(--paper); border-radius: 999px; padding: 3px 9px; }
.art-head img { width: 100%; height: auto; margin-bottom: -46px; position: relative; z-index: 2; }
.art-head .wave { position: absolute; left: 0; right: 0; bottom: -40px; width: 100%; height: 42px; }
.art-head .wave path { fill: var(--c); }
.guide h2 { scroll-margin-top: 100px; }
.in-guide { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: 16px; }
.in-guide a { text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { display: block; padding: 16px 18px; border-radius: 18px; background: #fff; text-decoration: none; }
.pager a.next { text-align: right; background: var(--n); }
.pager small { display: block; font-size: 13px; font-weight: 700; opacity: .7; }
.pager b { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 150px; border-radius: 18px; padding: 14px; }
  .tile img { height: 92px; }
  .tile b { font-size: 27px; }
  .tile span { font-size: 13.5px; }
  .art-head.pic { grid-template-columns: 1fr; }
  .art-head img { width: 62%; justify-self: end; margin: -6px -10px -40px 0; }
  .pager b { font-size: 22px; }
}
.mail { display: inline-block; font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 8.2vw, 80px); line-height: .9; text-decoration: none !important; margin: 4px 0 26px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .links a:not(:first-child) { display: none; }
  .doc { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* Help's home opens on ink: its bar is paper and scrolls away, so the name never sits on paper unseen */
.on-ink nav { position: absolute; color: var(--paper); }
