/* Franca for Business, email: the demo and the developer guide. Franca's own colours and type (paper, ink, rust). */
:root{
  --paper:#F3F2EE;--card:#FBFAF7;--ink:#2B2C2E;--soft:#5D6064;--rust:#C27A5C;--rust-text:#9A5C44;--rule:#D8D7D1;--edge:#C6C5BE;--code:#EAE8E1;
  --sans:'Hanken Grotesk',system-ui,-apple-system,sans-serif;--serif:'Instrument Serif',Georgia,serif;--mono:'IBM Plex Mono',ui-monospace,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#18191B;--card:#232427;--ink:#EDEAE4;--soft:#A3A5A7;--rust:#D98C6C;--rust-text:#D98C6C;--rule:#323436;--edge:#45484B;--code:#232427;color-scheme:dark}}
:root[data-theme="dark"]{--paper:#18191B;--card:#232427;--ink:#EDEAE4;--soft:#A3A5A7;--rust:#D98C6C;--rust-text:#D98C6C;--rule:#323436;--edge:#45484B;--code:#232427;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--ink)}a:hover{color:var(--rust-text)}
.wrap{max-width:1180px;margin:0 auto;padding:0 max(16px,min(4vw,48px))}
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;padding:18px 0;border-bottom:1px solid var(--rule)}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brand img{border-radius:9px}
.wordmark{display:inline-block;width:98px;height:27px;background:currentColor;-webkit-mask:url(assets/franca-wordmark.svg) no-repeat center/contain;mask:url(assets/franca-wordmark.svg) no-repeat center/contain}
.wordmark.small{width:76px;height:21px}
.brand em{font-family:var(--serif);font-style:italic;font-size:25px;line-height:1;color:var(--rust-text);padding-top:3px}
.top nav{display:flex;gap:22px;font-size:15px;font-weight:700}
.top nav a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.eyebrow{margin:0;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.h1{margin:16px 0 20px;font-weight:800;font-size:clamp(40px,6vw,82px);line-height:1;letter-spacing:-.045em;text-wrap:balance;max-width:15ch}
.h2{margin:56px 0 16px;font-weight:800;font-size:clamp(28px,3.4vw,44px);line-height:1.06;letter-spacing:-.035em;text-wrap:balance}
.h1 em,.h2 em{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.02em;color:var(--rust-text)}
.hero{padding:clamp(36px,7vh,84px) 0 clamp(20px,4vh,40px)}
.lede{margin:0;max-width:60ch;font-size:clamp(18px,1.6vw,21px);color:var(--soft)}

/* the stage: your email on the left, each reader's on the right */
.stage{display:grid;grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);align-items:start;margin-top:18px}
.label{margin:0 0 8px;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.subject{margin:0 0 12px;min-height:54px;font-size:19px;font-weight:700;line-height:1.35;letter-spacing:-.01em}
.from .subject{margin-top:62px}
.paper{border-radius:18px;overflow:hidden;background:#fffdf8;box-shadow:0 30px 60px -38px rgba(43,44,46,.55),0 0 0 1px var(--rule)}
.paper iframe{display:block;width:100%;height:760px;border:0;background:#f6f1e7;transition:opacity .35s ease}
.to.busy iframe{opacity:.25}
.people{display:flex;gap:2px 20px;height:62px;margin-bottom:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.people::-webkit-scrollbar{display:none}
.people button{flex:none}
.people button{appearance:none;border:0;background:none;padding:6px 0 8px;font:inherit;font-size:16px;color:var(--soft);cursor:pointer;text-align:left;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.people button b{display:block;font-weight:800;color:var(--ink);letter-spacing:-.01em}
.people button span{font-size:13px}
.people button[aria-selected="true"]{border-bottom-color:var(--rust)}
.people button[aria-selected="true"] span{color:var(--rust-text)}
.people button:focus-visible,.pill:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--rust);outline-offset:3px}
/* the words crossing over */
.thread{position:sticky;top:42vh;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;height:60px;margin-top:300px}
.thread i{width:5px;height:5px;border-radius:50%;background:var(--rust);opacity:.2;animation:cross 1.6s ease-in-out infinite}
.thread i:nth-child(2){animation-delay:.12s}.thread i:nth-child(3){animation-delay:.24s}.thread i:nth-child(4){animation-delay:.36s}.thread i:nth-child(5){animation-delay:.48s}.thread i:nth-child(6){animation-delay:.6s}.thread i:nth-child(7){animation-delay:.72s}
@keyframes cross{0%,100%{opacity:.15;transform:scale(.8)}40%{opacity:1;transform:scale(1.5)}}
.stage.live .thread i{animation-duration:.5s}
.controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:22px}
.pill{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--ink);color:var(--paper);font:inherit;font-weight:700;cursor:pointer;text-decoration:none;transition:transform .15s,background-color .2s}
.pill:hover{background:var(--rust-text);color:#fff}.pill:active{transform:scale(.97)}.pill[disabled]{opacity:.5;cursor:default}
.check{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:var(--soft);cursor:pointer;min-height:44px}
.check input{width:18px;height:18px;accent-color:var(--rust)}
.status{margin:0;font-size:15px;color:var(--soft)}
.status b{color:var(--rust-text)}

.prose{max-width:760px}
.prose p{margin:0 0 16px}
.prose code,.steps code,.docs code{font-family:var(--mono);font-size:.86em;background:var(--code);padding:2px 6px;border-radius:6px;white-space:nowrap}
.steps{margin:22px 0 0;padding:0;list-style:none;counter-reset:s}
.steps li{position:relative;padding:14px 0 14px 58px;border-top:1px solid var(--rule);counter-increment:s}
.steps li:last-child{border-bottom:1px solid var(--rule)}
.steps li::before{content:counter(s);position:absolute;left:4px;top:6px;font-family:var(--serif);font-style:italic;font-size:40px;line-height:1.1;color:var(--rust-text)}
.quiet{color:var(--soft)}
.tryrow{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;align-items:start}
textarea,select{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--card);border:1px solid var(--edge);border-radius:14px;padding:14px 16px}
textarea{resize:vertical;line-height:1.5}
select{min-height:46px;padding:0 12px}
.tryside{display:flex;flex-direction:column;gap:10px}
.tryside label{font-size:14px;font-weight:700}
.result{margin:18px 0 0;padding:20px 22px;white-space:pre-wrap;font:inherit;font-size:18px;line-height:1.55;background:var(--card);border-left:3px solid var(--rust);border-radius:0 14px 14px 0;animation:rise .5s ease}
.result[dir="rtl"],.result:dir(rtl){border-left:0;border-right:3px solid var(--rust);border-radius:14px 0 0 14px}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.code{margin:18px 0;padding:18px 20px;overflow-x:auto;font-family:var(--mono);font-size:13.5px;line-height:1.6;background:#232427;color:#EDEAE4;border-radius:14px;white-space:pre;tab-size:2}
.code .c{color:#9a9c9e}.code .s{color:#E2A589}
.more{font-weight:700}
.foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:80px;padding:26px 0 40px;border-top:1px solid var(--rule);color:var(--soft);font-size:15px}
.foot p{margin:0}

/* developer guide */
.docs{max-width:820px;padding-bottom:20px}
.docs h1{margin:44px 0 12px;font-weight:800;font-size:clamp(36px,5vw,60px);line-height:1.02;letter-spacing:-.04em}
.docs h1 em{font-family:var(--serif);font-style:italic;font-weight:400;color:var(--rust-text)}
.docs h2{margin:52px 0 10px;font-weight:800;font-size:28px;letter-spacing:-.03em;line-height:1.15}
.docs h3{margin:30px 0 6px;font-size:19px;font-weight:800;letter-spacing:-.01em}
.docs p,.docs li{margin:0 0 12px}
.docs ul{padding-left:20px}
.docs table{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:15.5px}
.docs th,.docs td{text-align:left;vertical-align:top;padding:10px 12px 10px 0;border-top:1px solid var(--rule)}
.docs th{font-size:12px;font-family:var(--mono);font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--soft);border-top:0}
.docs td:first-child{white-space:nowrap}
.docs .note{padding:2px 0 2px 18px;border-left:3px solid var(--rust);color:var(--soft)}
.toc{display:flex;flex-wrap:wrap;gap:6px 20px;margin:18px 0 0;padding:0;list-style:none;font-weight:700;font-size:15px}

@media (max-width:860px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .from .subject{margin-top:0;min-height:0}
  .thread{position:static;flex-direction:column;height:auto;margin:22px auto}
  .paper iframe{height:560px}
  .tryrow{grid-template-columns:minmax(0,1fr)}
  .top nav{gap:16px}
  .prose code,.steps code,.docs code{white-space:normal;overflow-wrap:anywhere}
  .docs table{display:block;overflow-x:auto}
  .docs td:first-child{white-space:normal}
}
@media (prefers-reduced-motion:reduce){.thread i,.result{animation:none}html{scroll-behavior:auto}}
