/*
 * The front page's new look (the founder approved it on 26 September 2026:
 * marketing/landing-proto/index3.html and check.html) and the checker on a
 * page of its own. Built on the tokens the pages already define, so the dark
 * theme follows. Loaded after each page's own styles.
 */
@font-face{font-family:"Loupe Display";src:url(/fonts/loupe-display.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Loupe Text";src:url(/fonts/newsreader-var.woff2) format("woff2");font-weight:200 800;font-display:swap}
:root{--display3:"Loupe Display","Loupe Schola",Georgia,serif;--text3:"Loupe Text","Loupe Schola",Georgia,serif;
  --paper3:#F7F4EE;--brass:#C9A96A;--brass-ink:#8C6D33;--cta-ink:#15181E;--cta-on:#FFFFFF}
@media screen and (prefers-color-scheme:dark){:root:not([data-theme="light"]){--paper3:var(--paper);--brass-ink:#C9A96A;--cta-ink:#ECE8E1;--cta-on:#14161B}}
:root[data-theme="dark"]{--paper3:var(--paper);--brass-ink:#C9A96A;--cta-ink:#ECE8E1;--cta-on:#14161B}
body.v3{background:var(--paper3)}

/* the header: the wordmark with its brass full stop, three links and the one action */
.top3{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--paper3) 92%,transparent);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:0}
.top3 .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.4rem}
.mark3{font:400 1.9rem/1 var(--display3);color:var(--navy);text-decoration:none;letter-spacing:-.005em;white-space:nowrap}
.mark3 b{font-weight:400;color:var(--brass-ink)}
.nav3{display:flex;align-items:center;gap:1.4rem;font:500 .95rem/1 var(--sans)}
.nav3 a{color:var(--ink-2);text-decoration:none}
.nav3 a:hover{color:var(--navy)}
.nav3 .nav-signin{padding:0;border:0;border-radius:0;color:var(--ink-2)}
.nav3 .cta3{background:var(--cta-ink);color:var(--cta-on);border-radius:10px;padding:.72rem 1.05rem;white-space:nowrap}
.nav3 .cta3:hover{color:var(--cta-on);opacity:.9}
.nav3 .cta3[aria-current="page"]{background:transparent;color:var(--navy);box-shadow:inset 0 0 0 1.5px var(--rule-2)}
.nav3 .theme-toggle{width:2.1rem;height:2.1rem}

/* the lead: the line, and what Loupe does in one breath */
.lead3{padding:4.2rem 0 3rem}
.lead3 .wrap{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(2rem,5vw,6rem);align-items:end}
.lead3 h1{margin:0;font:400 clamp(3.2rem,1.6rem + 5.6vw,7rem)/.94 var(--display3);color:var(--navy);letter-spacing:-.018em;max-width:none}
.lead3 p{margin:0;font:400 clamp(1.1rem,1rem + .35vw,1.3rem)/1.5 var(--text3);color:var(--ink-2);font-variation-settings:"opsz" 16;max-width:34rem}

/* the film: widened by landing.js from the column to the whole screen */
.film3{position:relative;margin-bottom:clamp(3rem,6vw,5.5rem)}
.card3{position:relative;margin:0 auto;overflow:hidden;border-radius:24px;background:#051834;aspect-ratio:16/9;
  width:min(76rem - 2 * var(--gutter),100% - 2 * var(--gutter))}
.card3 video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* the end: the page's own words and buttons on the film's last frame */
.end3{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;
  padding:0 6%;pointer-events:none;opacity:0;
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 40%,transparent 50%);mask-image:linear-gradient(to right,#000 0%,#000 40%,transparent 50%);
  -webkit-mask-size:300% 100%;mask-size:300% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:100% 0;mask-position:100% 0}
.end3.on{opacity:1;pointer-events:auto;-webkit-mask-position:0 0;mask-position:0 0;
  transition:-webkit-mask-position 1.1s cubic-bezier(.3,.7,.2,1),mask-position 1.1s cubic-bezier(.3,.7,.2,1)}
.end-mark{margin:0;font:400 clamp(2.6rem,1.6rem + 3.6vw,5rem)/1 var(--display3);letter-spacing:-.01em;margin-top:-.4em;color:#fff;max-width:none}
.end-mark b{font-weight:400;color:var(--brass)}
.end-line{margin:.9rem 0 0;font:400 clamp(1rem,.9rem + .45vw,1.35rem)/1.35 var(--text3);color:#E9E4DA;max-width:none}
.end-acts{margin-top:1.6rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem}
.btn-paper,.btn-line{display:inline-flex;align-items:center;min-height:2.9rem;padding:0 1.25rem;border-radius:10px;font:600 .98rem/1 var(--sans);text-decoration:none}
.btn-paper{background:#F7F4EE;color:#0A3161}
.btn-paper:hover{background:#fff;color:#0A3161}
.btn-line{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7)}
.btn-line:hover{color:#fff;box-shadow:inset 0 0 0 1.5px #fff}
.btn-paper:focus-visible,.btn-line:focus-visible{outline:2px solid #fff;outline-offset:3px}
.end3 .short{display:none}
/* the film's one control: it moves for more than five seconds, so it can be
   paused (WCAG 2.2.2). Nothing is drawn on the film (the founder, 27 September
   2026: "я хочу чтобы естественно смотрелось"): a tap or a click on the film
   pauses it (landing.js), and this button shows only to a keyboard, when it
   has the focus. Gone once the film has ended. */
.filmctl{position:absolute;left:16px;bottom:16px;z-index:2;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;
  background:rgba(5,24,52,.55);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);color:#fff;cursor:pointer;opacity:0;transition:opacity .2s}
.filmctl[hidden]{display:none}
.filmctl svg{width:16px;height:16px;display:block}
.filmctl .i-play,.filmctl.paused .i-pause{display:none}
.filmctl.paused .i-play{display:block}
.filmctl:focus-visible{opacity:1;outline:2px solid #fff;outline-offset:3px}

/* the front page's footer (the founder liked it on 27 September 2026:
   marketing/landing-proto/footer-art.css). The top of a very large loupe rises
   above it, its rim in brass, and the pictures inside it cut from one to the
   next (landing.js). */
.fart{position:relative;height:clamp(180px,24vw,340px);overflow:hidden;background:var(--paper3);margin-top:4rem}
.fart .disc{position:absolute;left:50%;top:18%;width:260vw;height:260vw;transform:translateX(-50%);border-radius:50%;overflow:hidden;background:#051834;
  box-shadow:0 0 0 clamp(3px,.45vw,7px) #B08D4E,0 -20px 60px rgba(5,24,52,.12)}
.fart .slide{position:absolute;left:50%;top:0;width:100vw;height:clamp(180px,24vw,340px);transform:translateX(-50%);background-size:cover;background-position:center;opacity:0}
.fart .slide.on{opacity:1}
.fart .slide.statue{background-position:50% 35%}
/* A page of an opinion, close up. The prototype drew the whole scan at 180% of
   the width, 56% down; only a 1200 x 844 window of it can ever show, so that
   window is the file, drawn at the same scale and place. */
.fart .slide.scan{background-size:100% auto;background-position:0 calc(.56 * clamp(180px,24vw,340px) - 38.367vw)}
.foot3{background:#051834;color:#C4BFB5;padding:3.2rem 0 3rem;font:400 .95rem/1.5 var(--text3)}
.foot3 .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr));gap:2rem}
.foot3 p{margin:0;max-width:22rem}
.foot3 a,.foot3 .link{display:block;padding:.18rem 0;margin:0;border:0;background:none;color:#C4BFB5;font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.foot3 .link[hidden]{display:none}
.foot3 a:hover,.foot3 .link:hover{color:#fff}
.foot3 a:focus-visible,.foot3 .link:focus-visible{outline:2px solid #fff;outline-offset:2px}
.foot3 .fmark{display:inline-block;padding:0;margin-bottom:.8rem;font:400 1.8rem/1 var(--display3);color:#fff}
.foot3 .fmark b{font-weight:400;color:var(--brass)}
.foot3 h2{margin:0 0 .8rem;font:700 .78rem/1 var(--sans);color:#fff;letter-spacing:.02em}
.foot3 .small{grid-column:1 / -1;max-width:none;margin-top:1.5rem;font:400 .8rem/1.5 var(--sans);color:#8B8F98}
@media print{.fart{display:none}.foot3{background:none;color:#000}.foot3 a,.foot3 .fmark,.foot3 h2,.foot3 .small{color:#000}}

/* the checker's own page: the filing goes onto a sheet of pleading paper */
.check-page{padding:3rem 0 3.5rem}
.check-col{max-width:54rem;margin:0 auto}
.check-page h1{margin:0;font:400 clamp(2.6rem,1.8rem + 2.4vw,4rem)/1.02 var(--display3);color:var(--navy);letter-spacing:-.012em;max-width:none}
.check-page .lede{margin:.8rem 0 0;color:var(--ink-2);font:400 1.15rem/1.5 var(--text3);font-variation-settings:"opsz" 16;max-width:40rem}
.check-page .tool{margin:0;padding:0;background:none;border:0;box-shadow:none;max-width:none}
.sheetin{margin-top:1.8rem;position:relative;background:var(--sheet);border:1px solid var(--rule-2);border-radius:14px;
  box-shadow:0 22px 50px rgba(10,49,97,.10);min-height:24rem;padding:1.3rem 1.6rem 1.4rem 4.1rem}
.sheetin.over{border-color:var(--navy);box-shadow:0 0 0 3px color-mix(in srgb,var(--navy) 22%,transparent),0 22px 50px rgba(10,49,97,.10)}
.sheetin .hdr{display:flex;justify-content:space-between;gap:1rem;font:.74rem/1 var(--sans);color:var(--ink-3);margin:0 0 1rem -2.5rem}
/* ten numbers down the margin, so the sheet is ten ruled lines tall: 10 x 2.2rem */
.sheetin .lines{position:absolute;left:0;top:3.2rem;width:2.7rem;text-align:right;font:.7rem/2.2rem var(--sans);color:var(--ink-3);opacity:.7;user-select:none}
.sheetin::after{content:"";position:absolute;left:3.3rem;top:3rem;bottom:1.2rem;border-left:1px solid var(--rule-2);pointer-events:none}
.check-page .sheetin textarea{display:block;width:100%;min-height:22rem;margin:0;padding:0;border:0;border-radius:0;resize:vertical;box-shadow:none;
  background:repeating-linear-gradient(to bottom,transparent 0 calc(2.2rem - 1px),var(--rule) calc(2.2rem - 1px) 2.2rem);
  font:400 1.1rem/2.2rem var(--serif);color:var(--ink);outline:0}
.check-page .sheetin textarea::placeholder{color:var(--ink-3);font-style:italic}
.check-page .controls{margin-top:1.4rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.4rem}
.check-page .drop{display:inline-flex;align-items:center;gap:.5rem;min-height:0;width:auto;margin:0;padding:.2rem 0;border:0;border-radius:0;
  background:none;color:var(--navy);font:700 1rem/1.2 var(--sans);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.3em;cursor:pointer}
.check-page .drop .ico{width:1.05rem;height:1.05rem}
.check-page .drop .fname:not(:empty){font-weight:400;text-decoration:none;color:var(--ink-2)}
.check-page .drop .fname:not(:empty)::before{content:"· "}
.check-page .options{margin-top:1rem}
.check-page .finetext{margin-top:1rem}
.check-page .precount{margin:.6rem 0 0}

/* the placeholder sections below the film keep the site's own look */
@media (max-width:860px){
  .lead3 .wrap{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:700px){
  .hide-s{display:none}
  .nav3{gap:.9rem}
  .mark3{font-size:1.6rem}
  .lead3{padding:2.4rem 0 2.2rem}
  .card3{aspect-ratio:4/5}
  .end3{padding:0 8%}
  .end-acts{gap:.5rem;margin-top:1.1rem}
  .btn-paper,.btn-line{min-height:2.5rem;padding:0 .8rem;font-size:.86rem}
  .end-line{font-size:.95rem}
  .end-mark{font-size:2.5rem}
  .end3 .long{display:none}
  .end3 .short{display:inline}
  .foot3 .wrap{grid-template-columns:1fr 1fr}
  .foot3 .wrap > div:first-child{grid-column:1 / -1}
  .check-page{padding-top:2rem}
  .sheetin{padding-left:3.1rem;min-height:20rem}
  .sheetin .lines{width:2rem}
  .sheetin::after{left:2.5rem}
  .sheetin .hdr{margin-left:-1.6rem}
}
/* a phone keeps all four: the wordmark, the theme switch, signing in and the
   action (the founder, 27 September 2026: the switch had been hidden here) */
@media (max-width:400px){
  .nav3{gap:.55rem}
  .mark3{font-size:1.42rem}
  .nav3 .cta3{padding:.62rem .78rem}
  .nav3 .theme-toggle{width:2rem;height:2rem}
}
@media (prefers-reduced-motion:reduce){.end3.on{transition:none}}
