/* Tello Home: the articles pages (/articles/ and single articles). Server HTML from views/, no React.
   Same tokens as the app (site/src/index.css :root, palette 3) and the same header, menu sheet and close, so the
   articles read as the same site. Reading surface: the article body sits on white paper in Prussian ink inside the
   black frame (header, title block, close), the palette's one light surface (site/DESIGN.md, the light run).
   Orange appears once, on the close's WhatsApp glyph (.wa-big svg); site/tests/articles.test.js holds that budget. */

:root{
  --black:#000000; --prussian:#14213D; --orange:#FCA311; --alabaster:#E5E5E5; --white:#FFFFFF;
  --night-2:#111111; --night-line:#262626; --night-text:#ABABAB; --night-dim:#8C8C8C; --night-edge:#6B6B6B; --btn-edge:#5C5C5C;
  --muted-light:#4A5266;
  --black-rgb:0,0,0; --white-rgb:255,255,255; --prussian-rgb:20,33,61;
  --line-light:rgba(var(--black-rgb),.12);
  --canvas:var(--black); --on-canvas:var(--white); --on-canvas-2:var(--alabaster);
  --accent:var(--orange);
  --light-bg:var(--white); --light-card:var(--alabaster); --light-ink:var(--prussian);
  --focus-dark:var(--orange); --focus-light:var(--prussian);
  --selection-bg:var(--orange); --selection-ink:var(--black);
  --cta-light:var(--black); --cta-light-ink:var(--white); --cta-light-hover:var(--prussian);
  --glass-night:rgba(var(--black-rgb),.86);
  --sans:"Bricolage Grotesque",system-ui,sans-serif; --mono:"JetBrains Mono",ui-monospace,monospace;
  --ease:cubic-bezier(.16,.84,.3,1);
  /* the reading column and the wide column (hero image, wide blocks) */
  --col:min(700px,100% - 32px); --col-wide:min(1040px,100% - 32px);
}

/* fonts: the app's self-hosted files under stable names (articles/fonts/) */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:400 700;font-stretch:75% 100%;font-display:swap;src:url(fonts/bricolage-grotesque.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-400-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}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-400-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}

*{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:clip;scroll-padding-top:86px}
body{background:var(--canvas);color:var(--on-canvas);font-family:var(--sans);overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit}
::selection{background:var(--selection-bg);color:var(--selection-ink)}
:focus-visible{outline:2px solid var(--focus-dark);outline-offset:3px;border-radius:8px}
main:focus,section[tabindex="-1"]:focus{outline:none}
[data-light],.mnav{--focus-dark:var(--focus-light)}
.wrap{width:min(1320px,100% - 32px);margin-inline:auto}
@media(min-width:760px){.wrap{width:min(1320px,100% - 80px)}}
.a-col{width:var(--col);margin-inline:auto}
.mono{font-family:var(--mono);font-size:13px;letter-spacing:.03em}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;left:12px;top:12px;z-index:100;background:var(--white);color:var(--black);padding:10px 14px;border-radius:10px;transform:translateY(calc(-100% - 40px));opacity:0}
.skip:focus{transform:none;opacity:1}
.btn{display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 26px;border-radius:99px;font-size:16px;font-weight:600;white-space:nowrap;transition:background .2s,color .2s}
.btn svg{width:18px;height:18px;flex:none}
.dlink{color:var(--on-canvas-2);text-decoration:underline;text-decoration-color:var(--night-edge);text-decoration-thickness:1.5px;text-underline-offset:6px;transition:color .2s,text-decoration-color .2s}
.dlink:hover{color:var(--white);text-decoration-color:currentColor}

/* ── header: the app's header (site/src/index.css .hdr) as a night glass bar (glass-night, 86%) on every width ── */
.hdr{position:sticky;top:0;z-index:50;color:var(--white);background:var(--glass-night);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 1px 0 var(--night-line)}
.hdr .wrap{height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{display:flex;align-items:center;gap:10px;min-height:44px;white-space:nowrap;font-weight:650;font-size:17px;letter-spacing:-.01em}
.logo .mark{width:30px;height:30px;background:currentColor;-webkit-mask:var(--logo-mark) center/contain no-repeat;mask:var(--logo-mark) center/contain no-repeat}
.hdr nav{display:flex;align-items:center;gap:28px;font-size:15px}
.hdr nav>a:not(.ico-btn){color:var(--alabaster);transition:color .2s}
.hdr nav>a:not(.ico-btn):hover{color:var(--white)}
.hdr nav>a[aria-current="page"]{color:var(--white);text-decoration:underline;text-decoration-color:var(--night-edge);text-decoration-thickness:1.5px;text-underline-offset:6px}
.ico-btn{display:inline-grid;place-items:center;width:44px;height:44px;flex:none;border-radius:99px;border:1px solid var(--btn-edge);color:var(--white);transition:background .2s,border-color .2s}
.ico-btn svg{width:20px;height:20px}
.ico-btn:hover{background:rgba(var(--white-rgb),.1);border-color:var(--night-edge)}
.menu-btn{display:none;height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--btn-edge);background:none;color:inherit;font-weight:550;font-size:14px;cursor:pointer;transition:background .2s}
.menu-btn:hover,.menu-btn[aria-expanded="true"]{background:rgba(var(--white-rgb),.1)}
.mnav,.mnav-cta{display:none}
@media(max-width:819px){
  .hdr nav{gap:8px}
  .hdr nav>a:not(.ico-btn){display:none}
  .menu-btn{display:inline-flex;align-items:center;min-width:72px;justify-content:center}
  .mnav{position:fixed;inset:70px 0 auto;z-index:49;background:var(--white);color:var(--light-ink);border-radius:0 0 18px 18px;padding:8px 16px 20px;box-shadow:0 24px 60px -20px rgba(var(--black-rgb),.45);flex-direction:column;max-height:calc(100svh - 70px);overflow-y:auto;overscroll-behavior:contain}
  .mnav.open{display:flex}
  .mnav a:not(.mnav-cta){display:flex;align-items:center;min-height:52px;padding:0 12px;border-radius:12px;font-size:19px;font-weight:550}
  .mnav a:not(.mnav-cta):hover{background:var(--alabaster)}
  .mnav a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:6px}
  .mnav .mnav-cta{display:flex;justify-content:center;margin-top:12px;background:var(--cta-light);color:var(--cta-light-ink)}
  .mnav .mnav-cta:hover{background:var(--cta-light-hover)}
  /* no scripting: the sheet is a plain list of links under the header */
  html:not([data-js]) .menu-btn{display:none}
  html:not([data-js]) .mnav{display:flex;position:relative;inset:auto;z-index:auto;max-height:none;overflow:visible;border-radius:0;box-shadow:none}
}

/* ── title block (black) ── */
.a-top{padding:clamp(56px,8vw,112px) 0 clamp(48px,6vw,80px)}
.a-top h1{font-weight:650;font-variation-settings:"wdth" 82;font-size:clamp(38px,5vw,68px);line-height:.98;letter-spacing:-.035em;text-wrap:balance}
.a-dek{margin-top:24px;color:var(--on-canvas-2);font-size:clamp(19px,1.6vw,22px);line-height:1.45;max-width:46ch;text-wrap:pretty}
.a-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:30px;color:var(--night-text)}
.a-meta>span+span::before{content:"·";margin-right:18px;color:var(--night-edge)}
.a-badge{padding:2px 10px;border-radius:99px;border:1px solid var(--night-edge);color:var(--white)}
.a-badge+span::before{display:none}
.a-edit{display:inline-flex;align-items:center;min-height:28px;text-decoration:underline;text-underline-offset:4px;transition:border-color .2s}
.a-edit:hover{border-color:var(--white)}
/* with a featured image: it straddles the black and the paper */
.has-image .a-top{padding-bottom:clamp(140px,16vw,220px)}
.a-hero{width:var(--col-wide);margin:calc(-1 * clamp(100px,12vw,180px)) auto 0}
.a-hero img{width:100%;border-radius:14px;border:1px solid var(--line-light);box-shadow:0 30px 60px -34px rgba(var(--black-rgb),.45)}
.a-hero figcaption{width:var(--col);margin:12px auto 0;font-family:var(--mono);font-size:13px;letter-spacing:.03em;color:var(--muted-light)}

/* ── the paper: white ground, Prussian ink ── */
.a-paper{display:flow-root;background:var(--light-bg);color:var(--light-ink);padding-block:clamp(56px,7vw,96px) clamp(80px,10vw,140px)}
.has-image .a-paper{padding-top:0}
.has-image .a-body{margin-top:clamp(44px,5vw,72px)}

/* the article body: 19px on a 700px column (about 70 characters a line, measured), 1.65 leading */
.a-body{font-size:19px;line-height:1.65;font-variation-settings:"wdth" 100;font-feature-settings:"kern","liga"}
.a-body>*{width:var(--col);margin-inline:auto}
.a-body>*+*{margin-top:1.15em}
.a-body h2,.a-body h3,.a-body h4{color:var(--light-ink);text-wrap:balance}
.a-body h2{font-weight:650;font-variation-settings:"wdth" 82;font-size:clamp(28px,2.7vw,36px);line-height:1.05;letter-spacing:-.03em;margin-top:2em}
.a-body h3{font-weight:600;font-size:clamp(21px,1.9vw,24px);line-height:1.2;letter-spacing:-.015em;margin-top:1.8em}
.a-body h4{font-weight:600;font-size:19px;line-height:1.3;margin-top:1.6em}
.a-body h2+*,.a-body h3+*,.a-body h4+*{margin-top:.6em}
.a-body p{text-wrap:pretty}
.a-body strong,.a-body b{font-weight:650}
.a-body em,.a-body i{font-style:italic}
.a-body a{text-decoration:underline;text-decoration-color:rgba(var(--prussian-rgb),.4);text-decoration-thickness:1.5px;text-underline-offset:4px;transition:text-decoration-color .2s}
.a-body a:hover{text-decoration-color:currentColor}
.a-body ul,.a-body ol{padding-left:1.4em}
.a-body li+li{margin-top:.45em}
.a-body li>ul,.a-body li>ol{margin-top:.45em}
.a-body li::marker{color:var(--muted-light)}
.a-body ol li::marker{font-family:var(--mono);font-size:.8em}
.a-body hr,.a-body .wp-block-separator{border:0;border-top:1px solid var(--line-light);margin-block:2.6em}
/* quotes: a 1px Prussian rule and a larger, heavier line */
.a-body blockquote,.a-body .wp-block-quote{border-left:1px solid var(--light-ink);padding-left:24px;font-size:22px;line-height:1.45;font-weight:500;letter-spacing:-.005em}
.a-body blockquote p+p{margin-top:.7em}
.a-body blockquote cite,.a-body .wp-block-quote cite{display:block;margin-top:14px;font-family:var(--mono);font-size:13px;font-style:normal;font-weight:400;letter-spacing:.03em;color:var(--muted-light)}
.a-body .wp-block-pullquote{border-block:1px solid var(--line-light);padding-block:28px;text-align:center}
.a-body .wp-block-pullquote blockquote{border:0;padding:0;font-size:clamp(24px,2.4vw,30px);font-weight:600;letter-spacing:-.02em}
/* figures and images */
.a-body figure,.a-body .wp-block-image{margin-block:2em}
.a-body figure img,.a-body .wp-block-image img{border-radius:12px;border:1px solid var(--line-light)}
.a-body figcaption,.a-body .wp-element-caption{margin-top:12px;font-family:var(--mono);font-size:13px;line-height:1.5;letter-spacing:.03em;color:var(--muted-light)}
.a-body .alignwide{width:var(--col-wide)}
.a-body .alignfull{width:100%}
.a-body .alignfull img{border-radius:0;border-inline:0}
.a-body .aligncenter{text-align:center}
.a-body .aligncenter img{margin-inline:auto}
.a-body .wp-block-image.size-medium img,.a-body .wp-block-image.size-thumbnail img{width:auto}
@media(min-width:960px){
  .a-body .alignleft{float:left;width:auto;max-width:44%;margin:.3em 28px 1em calc((100% - 700px) / 2)}
  .a-body .alignright{float:right;width:auto;max-width:44%;margin:.3em calc((100% - 700px) / 2) 1em 28px}
}
.a-body::after{content:"";display:table;clear:both}
.has-text-align-center{text-align:center}.has-text-align-right{text-align:right}.has-text-align-left{text-align:left}
/* code */
.a-body code,.a-body kbd{font-family:var(--mono);font-size:.84em;background:var(--light-card);border-radius:6px;padding:.12em .38em}
.a-body pre,.a-body .wp-block-code{font-family:var(--mono);font-size:15px;line-height:1.6;background:var(--light-card);border:1px solid var(--line-light);border-radius:10px;padding:18px 20px;overflow-x:auto;tab-size:2}
.a-body pre code{background:none;padding:0;font-size:inherit;border-radius:0}
/* tables: hairlines, tabular figures, sideways scroll on phones */
.a-body .wp-block-table{overflow-x:auto}
.a-body table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45;font-variant-numeric:tabular-nums}
.a-body th,.a-body td{text-align:left;vertical-align:top;padding:10px 14px 10px 0;border-bottom:1px solid var(--line-light)}
.a-body thead th{font-weight:600;border-bottom-color:var(--light-ink)}
.a-body .wp-block-table figcaption{margin-top:10px}
/* embeds (YouTube etc.): the block's aspect class */
.a-body .wp-block-embed__wrapper{position:relative}
.a-body .wp-has-aspect-ratio .wp-block-embed__wrapper::before{content:"";display:block;padding-top:56.25%}
.a-body .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before{padding-top:75%}
.a-body .wp-has-aspect-ratio iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px}
.a-body iframe{max-width:100%}
/* core's layout base (global styles, not printed here); the per-block gap and justification come from the
   block-supports CSS head.php prints (.wp-container-*) */
.a-body :where(.is-layout-flex){display:flex;flex-wrap:wrap;align-items:center;gap:1em}
.a-body :where(.is-layout-flex.is-vertical){flex-direction:column;align-items:flex-start}
.a-body :where(.is-layout-grid){display:grid;gap:1em}
.a-body .is-layout-flex>*,.a-body .is-layout-grid>*{margin:0}
/* buttons and columns written in the editor. Defaults sit in :where() (one class of specificity), so the block-supports
   CSS that head.php prints after this file (a block's own gap, justification) wins over them. */
.a-body :where(.wp-block-buttons){display:flex;flex-wrap:wrap;gap:12px}
.a-body .wp-block-button__link{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:99px;background:var(--cta-light);color:var(--cta-light-ink);font-size:16px;font-weight:600;text-decoration:none}
.a-body .wp-block-button__link:hover{background:var(--cta-light-hover)}
.a-body :where(.wp-block-columns){display:flex;gap:28px}
/* stacking as core's block library does it: wrap on phones unless the author unticked "Stack on mobile" */
.a-body .wp-block-columns{flex-wrap:wrap!important}
@media(min-width:782px){.a-body .wp-block-columns{flex-wrap:nowrap!important}}
.a-body .wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap!important}
.a-body .wp-block-column{flex:1 1 240px;min-width:0}
.a-body .wp-block-column>*+*{margin-top:1em}
/* galleries: a wrapping grid of cropped images */
.a-body :where(.wp-block-gallery){display:flex;flex-wrap:wrap;gap:16px}
.a-body .wp-block-gallery>figure{flex:1 1 220px;margin:0}
.a-body .wp-block-gallery img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}

/* "In plain terms": the summary box at the top of a case study (a Group block with the class tello-summary). An
   alabaster panel on the paper, title in the display face at a modest size, the list at body size. Under another
   theme it is just a heading and a list. */
.a-body .tello-summary{background:var(--light-card);border-radius:14px;padding:clamp(24px,3vw,36px) clamp(22px,3.2vw,40px);margin-block:1.6em 0}
.a-body .tello-summary>*{width:auto;max-width:none;margin:0}
.a-body .tello-summary .tello-summary__title{font-weight:650;font-variation-settings:"wdth" 82;font-size:clamp(22px,2vw,26px);line-height:1.1;letter-spacing:-.02em;margin:0}
.a-body .tello-summary .tello-summary__title+*{margin-top:.75em}
.a-body .tello-summary ul{padding-left:1.2em;font-size:18px;line-height:1.55}
.a-body .tello-summary li+li{margin-top:.5em}

/* related work and the way back */
.a-end{margin-top:clamp(56px,7vw,88px);padding-top:28px;border-top:1px solid var(--line-light);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px 28px}
.a-related{display:flex;flex-direction:column;gap:8px}
.a-related .mono{color:var(--muted-light)}
.a-related a{font-size:clamp(20px,1.8vw,26px);font-weight:600;letter-spacing:-.02em;line-height:1.2}
.a-related a,.a-all{text-decoration:underline;text-decoration-color:rgba(var(--prussian-rgb),.35);text-decoration-thickness:1.5px;text-underline-offset:6px;transition:text-decoration-color .2s}
.a-related a:hover,.a-all:hover{text-decoration-color:currentColor}
.a-all{display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:550}

/* ── the index ── */
.a-top-index{padding-bottom:clamp(56px,7vw,96px)}
.a-top-index h1{font-size:clamp(48px,8vw,124px);line-height:.92;letter-spacing:-.045em}
.a-intro{margin-top:26px;color:var(--on-canvas-2);font-size:19px;line-height:1.5;max-width:46ch}
.a-list{list-style:none;border-top:1px solid var(--line-light)}
.a-card{position:relative;display:grid;gap:20px 48px;padding:clamp(28px,3.4vw,44px) 0;border-bottom:1px solid var(--line-light)}
@media(min-width:860px){.a-card.has-image{grid-template-columns:minmax(0,1fr) 280px;align-items:start}}
.a-card-text{display:flex;flex-direction:column;gap:12px;max-width:62ch}
.a-card h2{font-weight:650;font-variation-settings:"wdth" 82;font-size:clamp(26px,2.6vw,38px);line-height:1.02;letter-spacing:-.03em;text-wrap:balance}
.a-card h2 a{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:6px;transition:text-decoration-color .2s}
.a-card:hover h2 a{text-decoration-color:currentColor}
/* the whole row is the title's link */
.a-card h2 a::after{content:"";position:absolute;inset:0}
.a-card p{font-size:17px;line-height:1.55;text-wrap:pretty}
.a-card .a-card-meta{font-size:13px;color:var(--muted-light)}
.a-card-img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:12px;border:1px solid var(--line-light)}
@media(max-width:859px){.a-card-media{order:-1}}
.a-pages{display:flex;flex-wrap:wrap;gap:8px;margin-top:40px;font-size:16px}
.a-pages .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border-radius:99px;border:1px solid var(--line-light)}
.a-pages a.page-numbers:hover{background:var(--light-card)}
.a-pages .current{background:var(--light-ink);border-color:var(--light-ink);color:var(--white)}
.a-pages .dots{border:0}
.a-empty{padding-block:clamp(20px,4vw,48px);max-width:52ch}
.a-empty h2{font-weight:650;font-variation-settings:"wdth" 82;font-size:clamp(32px,3.4vw,50px);line-height:.98;letter-spacing:-.035em}
.a-empty p{margin-top:16px;font-size:19px;line-height:1.55}
.a-empty .a-all{margin-top:18px}

/* ── contact close: the app's (site/src/index.css .contact); the orange glyph is the last thing that glows ── */
.contact{position:relative;overflow:hidden;background:var(--canvas);color:var(--white);padding-top:clamp(100px,12vw,170px);text-align:center}
.contact>.wrap,.contact footer{position:relative}
.contact-mark{position:absolute;left:50%;top:48%;width:min(1100px,120vw);aspect-ratio:1;transform:translate(-50%,-50%);background:var(--white);opacity:.06;-webkit-mask:var(--logo-line) center/contain no-repeat;mask:var(--logo-line) center/contain no-repeat;pointer-events:none}
.contact h2.big{font-weight:650;font-variation-settings:"wdth" 82;font-size:clamp(48px,8vw,124px);line-height:.92;letter-spacing:-.045em;text-wrap:balance}
.contact>.wrap>p{color:var(--on-canvas-2);font-size:19px;line-height:1.5;max-width:44ch;margin:28px auto 44px}
.wa-big{display:inline-flex;flex-direction:column;align-items:center;gap:10px;padding:8px 20px 12px;border-radius:22px}
.wa-big svg{width:124px;height:124px;color:var(--accent);margin-bottom:10px;transition:transform .4s var(--ease)}
.wa-big:hover svg{transform:scale(1.04)}
.wa-big b{font-size:18px;font-weight:600}
.wa-big span{color:var(--night-text)}
.contact .email{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;font-size:16px}
.contact footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-block:28px;margin-top:clamp(90px,12vw,150px);border-top:1px solid var(--night-line);color:var(--night-dim);font-size:14px;text-align:left}

/* phones: an 18px body (about 40 characters a line on a 375px screen, never smaller than the app's 16px floor) */
@media(max-width:759px){
  .a-body{font-size:18px;line-height:1.62}
  .a-body blockquote,.a-body .wp-block-quote{font-size:20px;padding-left:18px}
  .a-body pre,.a-body .wp-block-code{font-size:14px;padding:16px;border-radius:8px}
  .a-hero img{border-radius:10px}
  .a-body .tello-summary{padding:22px 20px;border-radius:12px}
  .a-body .tello-summary ul{font-size:17px}
  /* the meta line wraps here: the gap separates the items, so no stray dot starts a line */
  .a-meta{gap:6px 14px}
  .a-meta>span+span::before{display:none}
}

@media(prefers-reduced-motion:reduce){
  .wa-big svg,.wa-big:hover svg{transition:none;transform:none}
  .btn,.dlink,.ico-btn,.menu-btn{transition:none}
}
@media print{
  .hdr,.mnav,.contact,.skip{display:none}
  body,.a-top{background:var(--white);color:var(--black)}
  .a-dek,.a-meta{color:var(--black)}
}
