/* swampbeach.fi – shared styles */
:root{
  --forest:#103d30;--deep:#0c2f26;--teal:#163f46;--paper:#f1f3e9;--sage:#dce5d5;
  --ink:#153c30;--muted:#597063;--mist:#b8cbb7;--accent:#f18b51;
  --line:#bccbbb;--line-dark:#436354;
  --gutter:clamp(16px,5vw,72px);--max:1296px;
  --sans:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --serif:'Instrument Serif',Georgia,'Times New Roman',serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
p,h1,h2,h3,ul,ol{margin:0}
.serif{font-family:var(--serif);font-weight:400;letter-spacing:0}
.accent{color:var(--accent)}

/* Sections: full-bleed background, content capped at --max */
.band{padding:64px max(var(--gutter),calc((100% - var(--max))/2))}
.band--forest{background:var(--forest);color:var(--paper)}
.band--deep{background:var(--deep);color:var(--paper)}
.band--teal{background:var(--teal);color:var(--paper)}
.band--sage{background:var(--sage)}
.band--paper{background:var(--paper)}

.divider{height:1px;background:var(--line);border:0;margin:0;width:100%}
.site-header .divider,.band--forest .divider,.band--deep .divider,.band--teal .divider{background:var(--line-dark)}

/* Header */
.site-header{background:var(--forest);color:var(--paper);padding:0 max(var(--gutter),calc((100% - var(--max))/2))}
main > .band--forest:first-child{padding-top:60px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;min-height:106px;flex-wrap:wrap;padding:20px 0}
.brand{font-weight:600;font-size:24px;line-height:1.2}
.brand:hover{text-decoration:none}
.nav-links{display:flex;align-items:center;gap:12px 38px;flex-wrap:wrap;font-size:14px}
.nav-meta{font-size:11px;color:var(--mist)}

/* Section label */
.label{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:500;line-height:1.3;text-transform:uppercase;color:var(--muted)}
.label::before{content:"";width:6px;height:6px;background:var(--accent);flex-shrink:0}
.site-header .label,.band--forest .label,.band--deep .label,.band--teal .label{color:var(--mist)}
.label--plain::before{display:none}

/* Buttons */
.actions{display:flex;flex-wrap:wrap;gap:12px 14px}
.btn{display:inline-flex;align-items:center;gap:22px;height:48px;padding:0 20px;border-radius:3px;border:1px solid transparent;font-size:14px;font-weight:500;white-space:nowrap}
.btn::after{content:"↗";font-size:19px;font-weight:400}
.btn:hover{text-decoration:none;filter:brightness(1.06)}
.btn--light{background:var(--sage);color:var(--forest)}
.btn--dark{background:var(--forest);color:var(--paper)}
.btn--ghost{border-color:var(--line-dark);color:var(--paper)}
.btn--ghost::after{color:var(--accent)}
.btn--outline{border-color:var(--line);color:var(--forest)}
.btn--text{height:28px;padding:0;color:var(--forest)}
.link{color:var(--forest);font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}

/* Typography helpers */
.muted{color:var(--muted)}
.mist{color:var(--mist)}
.lede{font-size:clamp(17px,1.6vw,22px);line-height:1.45}
.body-lg{font-size:16px;line-height:1.7;color:var(--muted)}
.caption{font-size:11px;line-height:1.5;color:var(--muted)}
.band--forest .caption{color:var(--mist)}
.h-display{font-family:var(--serif);font-weight:400;line-height:1.08;font-size:clamp(56px,7vw,96px)}
.h-section{font-family:var(--serif);font-weight:400;line-height:1.05;font-size:clamp(40px,4.5vw,64px)}
.h-block{font-family:var(--serif);font-weight:400;line-height:1.08;font-size:clamp(32px,3.4vw,48px)}
.photo{width:100%;object-fit:cover}

/* Two-column split used across pages */
.split{display:flex;gap:clamp(40px,6vw,90px);align-items:flex-start}
.split > .fixed{flex:0 0 auto}
.split > .grow{flex:1 1 0;min-width:0}
@media (max-width:960px){
  .split{flex-direction:column}
  .split > .fixed{width:100% !important;max-width:none}
}

/* ---------- Home ---------- */
.intro{display:flex;gap:80px;align-items:flex-start;padding:63px 0 64px}
.intro-copy{width:660px;max-width:100%;display:flex;flex-direction:column;gap:28px;flex-shrink:0}
.intro-title{font-family:var(--serif);font-weight:400;font-size:clamp(72px,9.2vw,132px);line-height:.94}
.intro-about{display:flex;flex-direction:column;gap:18px;max-width:550px}
.intro-portrait{flex:1;min-width:0;display:flex;flex-direction:column;gap:14px;padding-top:31px}
.intro-portrait img{height:536px}
.caption-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--mist)}
.caption-row .accent{font-size:15px}
.interests{display:flex;justify-content:space-between;align-items:center;gap:8px 24px;flex-wrap:wrap;min-height:62px;padding:14px 0;font-size:11px;color:var(--mist)}
.interests a{font-size:12px;color:var(--paper)}
@media (max-width:960px){
  .intro{flex-direction:column;gap:40px}
  .intro-copy{width:100%}
  .intro-portrait{padding-top:0;width:100%}
  .intro-portrait img{height:auto;aspect-ratio:3/4;max-height:640px}
}

.projects{display:flex;flex-direction:column;gap:40px;padding-top:77px;padding-bottom:76px}
.projects-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px;flex-wrap:wrap}
.projects-intro > div{display:flex;flex-direction:column;gap:20px;max-width:620px}
.projects-intro > p{max-width:395px}
.project{display:flex;gap:64px;align-items:center}
.project-media{width:478px;flex-shrink:0}
.project-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:20px}
.project-info .h-block{font-size:clamp(34px,3.2vw,46px);line-height:1.05}
.project-info .body-lg{max-width:650px;line-height:1.6}
.status{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.status img{width:6px;height:6px}
.resources{display:flex;gap:26px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.resources a{text-decoration:underline;text-underline-offset:3px}
@media (max-width:960px){
  .project{flex-direction:column;align-items:stretch;gap:32px}
  .project-media{width:100%}
}

.app-card{background:var(--teal);color:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:24px;padding:28px;min-height:318px}
.app-card-label{display:flex;justify-content:space-between;width:100%;font-size:10px;color:var(--mist)}
.app-card img{width:176px;height:176px;border-radius:30px}
.app-card-name{font-size:14px;font-weight:500}

/* ---------- Product page ---------- */
.product{display:flex;gap:100px;align-items:center}
.product-copy{width:800px;max-width:100%;display:flex;flex-direction:column;gap:26px;flex-shrink:1}
.product-title{display:flex;flex-direction:column;gap:8px;font-family:var(--serif);line-height:1.08}
.product-title span:first-child{font-size:clamp(72px,7.8vw,112px)}
.product-title span:last-child{font-size:clamp(36px,3.75vw,54px)}
.product-copy .lede{max-width:710px;font-size:clamp(17px,1.4vw,20px);line-height:1.55}
.product .app-card{flex:1;min-width:260px;min-height:332px;padding:30px}
.product .app-card-label{justify-content:center}
@media (max-width:960px){
  .product{flex-direction:column;align-items:stretch;gap:48px}
  .product .app-card{min-width:0}
}

.shots-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:30px}
.shots{display:grid;grid-template-columns:repeat(5,1fr);gap:24px;margin:0;padding:0;list-style:none}
.shots figure{margin:0;display:flex;flex-direction:column;gap:16px}
.shots img{width:100%;height:500px;object-fit:contain}
.shots figcaption{font-size:12px;line-height:1.4;color:var(--muted)}
@media (max-width:1100px){.shots{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px){.shots{grid-template-columns:repeat(2,1fr);gap:16px}.shots img{height:auto;aspect-ratio:941/2048}}

.features{display:flex;flex-direction:column;gap:38px;padding:72px max(var(--gutter),calc((100% - var(--max))/2))}
.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:40px 64px}
.feature{display:flex;flex-direction:column;gap:16px}
.feature .num{font-size:11px;color:var(--muted)}
.feature .serif{font-size:clamp(30px,2.7vw,38px);line-height:1.08}
@media (max-width:760px){.feature-row{grid-template-columns:1fr}}

.stack{display:flex;flex-direction:column;gap:20px}
.stack--22{gap:22px}
.stack--24{gap:24px}

/* ---------- Simple page intro (support / privacy) ---------- */
.page-intro{display:flex;flex-direction:column;gap:24px}
.page-intro .sub{font-size:clamp(18px,1.6vw,23px);line-height:1.3}
.page-intro .meta{font-size:13px;color:var(--mist)}

/* Support */
.report{background:var(--sage);padding:28px;display:flex;flex-direction:column;gap:20px}
.report-title{font-size:14px;font-weight:500;color:var(--ink)}
.report ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px}
.report li{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.5;color:var(--muted)}
.report li::before{content:"";width:4px;height:4px;background:var(--forest);flex-shrink:0}
.email-lg{font-size:clamp(20px,2vw,27px);color:var(--forest);line-height:1.3;overflow-wrap:anywhere}
.faq{display:flex;flex-direction:column;gap:26px}
.faq-item{display:flex;flex-direction:column;gap:16px}
.faq-item .serif{font-size:clamp(26px,2.4vw,32px);line-height:1.08}

/* ---------- Long documents (privacy / guide) ---------- */
.doc{display:flex;gap:clamp(40px,6.5vw,96px);align-items:flex-start}
.doc-nav{width:280px;flex-shrink:0;display:flex;flex-direction:column;gap:24px;position:sticky;top:24px}
.toc{list-style:none;padding:0;display:flex;flex-direction:column;gap:18px}
.toc li{display:flex;gap:14px;align-items:baseline}
.toc .n{width:20px;flex-shrink:0;font-size:11px;color:var(--muted)}
.toc a{font-size:13px;line-height:1.5;color:var(--forest)}
.doc-nav .note{font-size:13px;line-height:1.6;color:var(--muted)}
.doc-body{flex:1;min-width:0;max-width:824px;display:flex;flex-direction:column;gap:38px}
.doc-section{display:flex;flex-direction:column;gap:18px;scroll-margin-top:24px}
.doc-heading{display:flex;gap:18px;align-items:baseline}
.doc-heading .n{font-size:11px;color:var(--muted);flex-shrink:0}
.doc-heading h2{font-family:var(--serif);font-weight:400;font-size:clamp(28px,2.6vw,36px);line-height:1.08;color:var(--ink)}
.doc-section > p{font-size:16px;line-height:1.7;color:var(--muted)}
.doc-section h3{font-size:17px;font-weight:600;line-height:1.5;color:var(--ink)}
.bullets{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.6;color:var(--muted)}
.bullets li{display:flex;gap:12px}
.bullets li::before{content:"•"}
.code-box{background:var(--sage);padding:20px;font-family:var(--mono);font-size:14px;line-height:1.5;color:var(--forest);overflow-wrap:anywhere}
.doc-body .person{font-size:16px;color:var(--ink)}
.doc-body .mail{font-size:16px;color:var(--forest);text-decoration:underline;text-underline-offset:3px}
@media (max-width:960px){
  .doc{flex-direction:column}
  .doc-nav{width:100%;position:static}
}

/* Guide variant: wider body, bigger headings */
.doc--guide{gap:clamp(40px,5vw,72px)}
.doc--guide .doc-nav{width:264px;gap:28px}
.doc--guide .toc{gap:20px}
.doc--guide .toc li{gap:12px}
.doc--guide .doc-body{max-width:960px;gap:52px}
.doc--guide .doc-section{gap:24px}
.doc--guide .doc-heading{gap:20px}
.doc--guide .doc-heading .n{font-size:12px}
.doc--guide .doc-heading h2{font-size:clamp(32px,3.1vw,44px)}

.guide-intro{display:flex;gap:64px;align-items:center}
.guide-intro-copy{width:754px;max-width:100%;flex-shrink:1;display:flex;flex-direction:column;gap:28px}
.guide-intro-copy .serif{font-size:clamp(46px,5.4vw,78px);line-height:1.08}
.guide-intro-copy .lede{font-size:clamp(16px,1.3vw,18px);line-height:1.65;color:var(--mist)}
.guide-intro figure{flex:1;min-width:0;margin:0;display:flex;flex-direction:column;gap:12px}
.guide-intro figure img{height:360px}
@media (max-width:960px){
  .guide-intro{flex-direction:column;align-items:stretch;gap:40px}
  .guide-intro figure img{height:auto;aspect-ratio:3/2}
}

.explain{display:flex;flex-direction:column;gap:18px;margin:0}
.explain > div{display:flex;gap:24px}
.explain dt{width:240px;flex-shrink:0;font-size:15px;font-weight:600;line-height:1.6;color:var(--ink)}
.explain dd{margin:0;flex:1;font-size:16px;line-height:1.65;color:var(--muted)}
@media (max-width:640px){.explain > div{flex-direction:column;gap:4px}.explain dt{width:auto}}

.note-box{background:var(--sage);padding:24px;display:flex;gap:22px}
.note-box::before{content:"";width:3px;background:var(--accent);flex-shrink:0}
.note-box > div{display:flex;flex-direction:column;gap:10px;font-size:16px}
.note-box strong{font-weight:600;color:var(--ink)}
.note-box p{line-height:1.7;color:var(--muted)}

/* Architecture diagram */
.arch{background:var(--teal);color:var(--paper);padding:28px;display:flex;flex-direction:column;gap:24px}
.arch-flow{display:flex;gap:14px;align-items:center}
.arch-col{display:flex;flex-direction:column;gap:18px}
.arch-col--site{width:234px;flex-shrink:0}
.arch-col--remote{width:318px;flex-shrink:0}
.arch-col--out{flex:1;min-width:0;gap:16px}
.arch-zone{font-size:10px;color:var(--mist)}
.arch-node{border:1px solid var(--line-dark);padding:18px;display:flex;flex-direction:column;gap:8px}
.arch-node strong{font-size:17px;font-weight:500}
.arch-node span,.arch-note{font-size:12px;line-height:1.5;color:var(--mist)}
.arch-down{font-size:12px;color:var(--mist);text-align:center}
.arch-link{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;flex-shrink:0;width:62px}
.arch-link--rtmp{width:48px;font-size:10px}
.arch-link .arrow{font-size:28px;line-height:1;color:var(--accent)}
.arch-link small{font-size:10px;color:var(--mist)}
.arch-obs{background:var(--sage);color:var(--forest);padding:22px;display:flex;flex-direction:column;gap:16px}
.arch-obs .serif{font-size:34px;line-height:1.2}
.arch-obs .divider{background:var(--line)}
.arch-obs ul{list-style:none;padding:0;font-size:14px;line-height:1.8}
@media (max-width:1100px){
  .arch-flow{flex-direction:column;align-items:stretch}
  .arch-col--site,.arch-col--remote{width:100%}
  .arch-link,.arch-link--rtmp{width:auto;flex-direction:row;justify-content:center}
  .arch-link .arrow{transform:rotate(90deg)}
}

/* Linear flow (video / commentary / score paths) */
.flow{background:var(--sage);padding:24px;display:flex;flex-direction:column;gap:20px}
.flow-title{font-size:10px;text-transform:uppercase;color:var(--muted)}
.flow-steps{list-style:none;padding:0;display:flex;gap:10px;align-items:center}
.flow-steps li{flex:1;min-width:0;display:flex;gap:10px;align-items:center}
.flow-steps li:not(:last-child)::after{content:"→";width:20px;flex-shrink:0;font-size:24px;color:var(--forest)}
.flow-node{flex:1;min-width:0;min-height:124px;background:var(--paper);padding:16px;display:flex;flex-direction:column;gap:10px}
.flow-node strong{font-size:15px;font-weight:600;line-height:1.4;color:var(--ink)}
.flow-node span{font-size:12px;line-height:1.55;color:var(--muted)}
@media (max-width:760px){
  .flow-steps{flex-direction:column;align-items:stretch}
  .flow-steps li{flex-direction:column;align-items:stretch}
  .flow-steps li:not(:last-child)::after{content:"↓";width:auto;text-align:center}
  .flow-node{min-height:0}
}

.setup{background:var(--sage);padding:28px;display:flex;flex-direction:column;gap:22px}
.setup .code{font-family:var(--mono);font-size:14px;line-height:1.6;color:var(--forest);overflow-wrap:anywhere}
.setup ol{list-style:none;padding:0;display:flex;flex-direction:column;gap:14px;counter-reset:step}
.setup li{display:flex;gap:16px;counter-increment:step}
.setup li::before{content:counter(step) ".";font-size:14px;color:var(--forest);line-height:1.3}
.setup li div{display:flex;flex-direction:column;gap:6px;font-size:15px}
.setup li strong{font-weight:600;color:var(--ink)}
.setup li p{line-height:1.6;color:var(--muted)}

.lead-strong{font-size:17px;font-weight:600;color:var(--ink)}
.plain-list{list-style:none;padding:0;font-size:16px;line-height:1.75;color:var(--muted)}
.plain-list li::before{content:"• "}

.roles{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.roles > div{background:var(--sage);padding:18px;display:flex;flex-direction:column;gap:12px}
.roles strong{font-size:14px;font-weight:600;color:var(--ink)}
.roles p{font-size:13px;line-height:1.6;color:var(--muted)}
@media (max-width:900px){.roles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.roles{grid-template-columns:1fr}}

.steps{list-style:none;padding:0;counter-reset:step}
.steps li{display:flex;gap:24px;padding:20px 0;border-top:1px solid var(--line);counter-increment:step}
.steps li::before{content:counter(step,decimal-leading-zero);width:36px;flex-shrink:0;font-family:var(--serif);font-size:32px;line-height:1.1;color:var(--forest)}
.steps li div{display:flex;flex-direction:column;gap:6px;font-size:16px}
.steps strong{font-weight:600;color:var(--ink)}
.steps p{line-height:1.7;color:var(--muted)}

.repos{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.repos > div{border:1px solid var(--line);padding:24px;display:flex;flex-direction:column;gap:16px}
.repos .tag{font-size:10px;color:var(--muted)}
.repos a{font-size:18px;font-weight:500;color:var(--forest)}
.repos code{font-family:var(--mono);font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
@media (max-width:640px){.repos{grid-template-columns:1fr}}

/* ---------- Contact + footer ---------- */
.contact{display:flex;flex-direction:column;gap:30px;padding-top:52px;padding-bottom:28px}
.contact-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px;flex-wrap:wrap}
.contact-row > div:first-child{display:flex;flex-direction:column;gap:16px;max-width:850px}
.contact-row .serif{font-size:clamp(34px,3.4vw,48px);line-height:1.08}
.contact-mail{font-size:clamp(20px,1.9vw,26px);line-height:1.3;overflow-wrap:anywhere}
.location{display:flex;flex-direction:column;gap:8px;align-items:flex-end;font-size:15px}
.location small{font-size:10px;color:var(--mist)}
.footer{display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;font-size:12px;color:var(--mist)}
.footer a{color:var(--paper)}
.contact--home{gap:38px;padding-top:60px}
.contact--home .contact-row > div:first-child{gap:18px;max-width:960px}
.contact--home .contact-row .serif{font-size:clamp(38px,4.3vw,62px);line-height:1.05}
.contact--home .contact-mail{font-size:clamp(22px,2vw,29px)}
@media (max-width:640px){.location{align-items:flex-start}}
