/* Loopline public pages: base, type, section rhythm and the sample player.
   Tokens and the header, footer, button, chip, panel and floating-CTA
   primitives live in design-system.css (imported here so every public page that
   links site.css gets them). See docs/loopline-brand.md. */
@import url("./design-system.css?v=20260929-r1");

/* Aliases kept for public stylesheets written against the paper theme
   (landing.css, template-pages.css, auth.css, clip landing). They now resolve
   to the dark marketing tokens. */
:root{
  --paper:var(--bg);--paper-2:var(--panel);--card:var(--panel);
  --muted:var(--ink-2);
  --rule:var(--line);--rule-strong:var(--line-2);--rule-ink:var(--line);
  --copper:var(--accent);--copper-text:var(--accent-2);--copper-btn:var(--accent);--copper-btn-hover:var(--accent-2);
  --night:var(--bg);--night-2:var(--panel);--night-rule:var(--line);--night-text:var(--ink);--night-muted:var(--ink-2);--night-accent:var(--accent);
  --mono:var(--font-mono);--display:var(--font-display);--body:var(--font-ui);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 16px);background:var(--bg)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 var(--font-ui);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
h1,h2,h3,h4,p,figure,blockquote,dl,dd,ul,ol{margin:0}
ul[role=list],ol[role=list]{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
img,video,svg{display:block;max-width:100%}
img{height:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
em,i,cite{font-style:normal}
em{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent);color:var(--on-accent)}
.wrap{width:min(var(--wrap),calc(100% - 2 * var(--gutter)));margin-inline:auto}
.skip{position:fixed;left:16px;top:-80px;z-index:80;padding:12px 16px;border-radius:10px;background:var(--primary);color:var(--on-primary);font-weight:700}
.skip:focus{top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Type */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;letter-spacing:-.035em;line-height:1.05;text-wrap:balance}
.ll-h1{font-size:clamp(42px,5.4vw,76px);font-weight:700;letter-spacing:-.045em;line-height:1.02}
.ll-h2{font-size:clamp(32px,4vw,56px);line-height:1.05}
.ll-h2 .dim{color:var(--ink-3)}
.ll-lead{max-width:580px;font-size:18px;line-height:1.6;color:var(--ink-2)}
.ll-eyebrow{display:flex;align-items:center;gap:10px;font:600 12px/1.3 var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.ll-eyebrow .rule{display:inline-block;width:22px;height:1px;background:currentColor}
.ll-eyebrow .num{color:var(--ink)}
.ll-idx{font:600 12px/1.3 var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.ll-fine{font-size:13px;line-height:1.55;color:var(--ink-3)}
.ll-fine a{text-decoration:underline;text-underline-offset:2px}
.ll-mono{font-family:var(--font-mono);font-size:.86em;letter-spacing:0}
.ll-link{display:inline-flex;align-items:center;gap:8px;padding-bottom:3px;border-bottom:1px solid currentColor;font-size:14px;font-weight:600}
.ll-link:hover{color:var(--accent)}

/* Section rhythm */
.ll-section{padding-block:clamp(64px,8vw,112px)}
.ll-section-head{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:clamp(28px,4vw,48px)}
.ll-section-head h2{margin-top:14px}
.ll-section-head>p,.ll-section-head>div>p.ll-side{max-width:440px;color:var(--ink-2);font-size:16px;line-height:1.6}
.ll-dark{background:var(--bg);color:var(--ink)}
@media (max-width:760px){.ll-section-head{display:block}.ll-section-head>p{margin-top:16px}.ll-lead{font-size:16px}.ll-h1{font-size:clamp(38px,10.5vw,46px)}}

/* Sample player: native controls are replaced by a bar outside the frame, so
   burned-in captions stay readable. Without JavaScript the native controls stay. */
.ll-player{position:relative;min-width:0;container-type:inline-size}
.ll-frame{position:relative;aspect-ratio:9/16;background:#141416;border-radius:var(--r-card);overflow:hidden}
.ll-frame video{width:100%;height:100%;object-fit:cover;background:#141416}
.ll-frame.is-wide{aspect-ratio:16/9}
.ll-bigplay{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(10,10,11,.6);color:#fff;display:grid;place-items:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:transform .18s,background-color .18s}
.ll-bigplay:hover{transform:scale(1.05);background:rgba(10,10,11,.8)}
.ll-bigplay svg{width:20px;height:20px;margin-left:3px}
.ll-player.is-playing .ll-bigplay{display:none}
.ll-progress{height:2px;margin-top:8px;border-radius:2px;background:var(--line)}
.ll-progress span{display:block;height:100%;width:0;border-radius:2px;background:var(--accent)}
.ll-bar{display:flex;align-items:center;gap:6px;min-height:36px;padding-top:4px}
.ll-bar[hidden]{display:none}
.ll-bar button{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 9px 0 0;border:0;background:transparent;font:600 12px/1 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.ll-bar button:hover{color:var(--accent)}
.ll-bar button svg{width:12px;height:12px;flex:none}
.ll-bar button+button{padding-left:9px;border-left:1px solid var(--line)}
.ll-time{white-space:nowrap;margin-left:auto;font:500 12px/1 var(--font-mono);letter-spacing:.06em;color:var(--ink-3);font-variant-numeric:tabular-nums}
@container (max-width:280px){.ll-time{display:none}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
