/* Minimal, neutral styling for ByLanks v1 */
:root{
  --bg:#ffffff;
  --text:#0b0b0b;
  --muted:#6b6b6b;
  --accent:#111111;
  --max-width:68ch;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{
  width:90%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:clamp(1rem,2.5vw,2rem) 0;
}
.site-header{
  border-bottom:1px solid #eee;
}
.brand{
  display:inline-block;
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:0.14em;
  text-decoration-thickness:1px;
  font-weight:600;
  padding:0.75rem 0;
}
.brand:hover,.brand:focus-visible{opacity:0.8}
.nav{float:right}
.nav a{display:inline-block;color:var(--muted);text-decoration:none;margin-left:1rem;font-size:0.95rem}
.nav a:hover,.nav a:focus-visible{color:var(--text);text-decoration:underline}
.nav a.nav-primary{
  background:var(--accent);
  color:#fff;
  padding:0.34rem 0.72rem;
  border-radius:6px;
}
.nav a.nav-primary:hover,.nav a.nav-primary:focus-visible{
  color:#fff;
  text-decoration:none;
  opacity:0.9;
}
.main{padding-top:1rem}
.hero h1{
  font-size:clamp(1.5rem,3.4vw,2.1rem);
  margin:0 0 0.5rem 0;
  font-weight:700;
}
.intro{color:var(--muted);margin:0 0 1rem 0}
.ctas{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.6rem;
  margin:1rem 0 2rem 0;
}
.btn{
  display:inline-block;
  padding:0.5rem 0.9rem;
  border-radius:6px;
  text-decoration:none;
  background:var(--accent);
  color:#fff;
  font-weight:600;
  margin-right:0;
}
.btn.outline{background:transparent;border:1px solid #ddd;color:var(--text)}
.link{color:var(--muted);text-decoration:underline}
.access-surface{display:grid;gap:1.05rem}
.access-block{padding-top:0.15rem}
.route-line{margin:0;color:var(--text)}
.route-notes{border-top:1px solid #efefef;padding-top:0.95rem}
.quiet-note{margin:0;color:var(--muted);font-size:0.92rem;line-height:1.5}
.option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0.8rem}
.option-card{
  border:1px solid #e7e7e7;
  border-radius:8px;
  padding:0.85rem;
  background:#fff;
}
.option-card h2{font-size:1rem;line-height:1.35;margin:0 0 0.45rem}
.option-card p{margin:0.35rem 0}
.receipt-block{
  border:1px solid #ececec;
  border-radius:8px;
  padding:0.85rem;
  background:#fcfcfc;
}
.receipt-block .intro{margin-bottom:0.55rem}
.channels-block{margin-top:0.4rem;padding-top:0.8rem;border-top:1px solid #efefef}
.channels-block h2{margin:0 0 0.5rem 0;font-size:0.95rem;font-weight:600}
.channels-block p{margin:0.35rem 0}
.proof{margin:1.5rem 0}
.proof ul{padding-left:1.15rem;margin:0;color:var(--muted)}
.signup{border-top:1px solid #f0f0f0;padding-top:1rem;margin-top:1.5rem}
.signup-form{display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap}
.signup-form input[type="email"]{padding:0.5rem;min-width:220px;border:1px solid #e7e7e7;border-radius:4px}
.signup-form button{padding:0.5rem 0.9rem;border-radius:6px;border:0;background:#111;color:#fff;font-weight:600}
footer{border-top:1px solid #eee;margin-top:3rem;padding:1rem 0;color:var(--muted);font-size:0.9rem;text-align:center}
small.note{color:var(--muted)}
@media (max-width:600px){
  .nav{float:none;margin-top:0.5rem}
  .container{width:94%}
  .access-surface{gap:0.95rem}
  .option-grid{grid-template-columns:1fr}
  .ctas{margin:0.85rem 0 1.5rem 0}
}

/* Form styles */
.form{max-width:580px;margin:1.5rem 0}
.form label{display:block;font-weight:500;margin-bottom:0.4rem;font-size:0.95rem}
.form input[type="text"],
.form input[type="email"],
.form textarea,
.form select{
  width:100%;
  padding:0.6rem 0.75rem;
  border:1px solid #d4d4d4;
  border-radius:6px;
  font-family:inherit;
  font-size:0.95rem;
  line-height:1.45;
  transition:border-color 0.15s ease;
}
.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form textarea:focus,
.form select:focus{
  outline:none;
  border-color:#999;
}
.form textarea{resize:vertical;min-height:120px}
.form .field-group{margin-bottom:1.5rem}
.form .field-group-tight{margin-bottom:1rem}
.form .section-divider{margin:2rem 0;border-top:1px solid #f0f0f0;padding-top:2rem}
.form .consent-wrapper{margin:1.75rem 0}
.form label.consent{display:flex;align-items:flex-start;gap:0.5rem;font-weight:400;line-height:1.5;cursor:pointer}
.form label.consent input[type="checkbox"]{
  margin-top:0.15rem;
  width:1.1rem;
  height:1.1rem;
  cursor:pointer;
  flex-shrink:0;
}
.form .note{margin-top:0.4rem;margin-bottom:0}
.form .note.privacy-note{margin-top:1rem;font-size:0.85rem}
.form button[type="submit"]{
  border:0;
  cursor:pointer;
  font-family:inherit;
}
.form button[type="submit"]:hover{background:#333}
.form button[type="submit"]:disabled{background:#999;cursor:not-allowed}
.clearfix::after{content:"";display:table;clear:both}

.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}

/* Preview placeholders */
.signup-placeholder, .contact-placeholder, .request-placeholder{display:flex;flex-direction:row;gap:0.5rem;align-items:center;margin-top:0.5rem;flex-wrap:wrap}
.signup-placeholder input,.contact-placeholder input,.request-placeholder input,.contact-placeholder textarea,.request-placeholder textarea{padding:0.45rem;border:1px solid #e7e7e7;border-radius:4px;background:#fafafa}
.contact-placeholder textarea,.request-placeholder textarea{min-height:72px;padding:0.5rem}
.contact-placeholder button,.request-placeholder button{padding:0.45rem 0.75rem;border-radius:6px;border:0;background:#bbb;color:#fff;font-weight:600}

.backlog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.vote-list{list-style:none;padding:0;margin:0}
.vote-item{display:flex;justify-content:space-between;align-items:center;padding:0.5rem 0;border-bottom:1px dashed #eee}
.vote-item button{background:#ddd;border:0;padding:0.35rem 0.6rem;border-radius:6px}

/* Beehiiv embed styles */
.beehiiv-signup{margin-top:0.75rem;max-width:560px;width:100%;}
.beehiiv-embed{display:block;margin:0 auto;max-width:100%;height:auto;border:0;}
@media (max-width:420px){.beehiiv-embed{height:280px;}}

/* Stage 2 portfolio landing */
.portfolio-meta{color:var(--muted);font-size:0.9rem;margin:0 0 0.4rem 0}
.portfolio-stage-hint{color:var(--muted)}
.portfolio-motion{display:inline-block;margin-left:0.35rem;border:1px solid #d8d8d8;border-radius:999px;padding:0.03rem 0.45rem;font-size:0.72rem;line-height:1.2;text-transform:lowercase;background:#fafafa;color:#575757}
.portfolio-motion--moving{border-color:#b7d8bb;background:#f5fbf6;color:#2f6e3c}
.portfolio-motion--steady{border-color:#d8d8d8;background:#fafafa;color:#575757}
.portfolio-motion--paused{border-color:#dfdfdf;background:#fcfcfc;color:#767676}
@keyframes motion-pulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:0.76;transform:scale(0.985)}
}
.work-motion--moving,
.portfolio-motion--moving,
.home-feature-status.is-moving{
  animation:motion-pulse 2.8s ease-in-out infinite;
}
.portfolio-caption{color:var(--muted);font-size:0.9rem;margin-top:0.5rem}
.portfolio-subtle{color:var(--muted);font-size:0.9rem}
.portfolio-archived-badge{
  display:inline-block;
  margin-left:0.5rem;
  padding:0.15rem 0.5rem;
  font-size:0.64em;
  font-weight:500;
  color:#777;
  background:#f5f5f5;
  border:1px solid #e8e8e8;
  border-radius:3px;
  vertical-align:middle;
  text-transform:uppercase;
  letter-spacing:0.03em;
}
.portfolio-hero{margin:1rem 0 0}
.portfolio-hero img{display:block;width:100%;height:auto;border:1px solid #efefef}
.portfolio-video iframe{width:100%;aspect-ratio:16 / 9;border:1px solid #efefef}
.portfolio-video-native{width:100%;height:auto;border:1px solid #efefef}
.portfolio-list{margin:0;padding-left:1.1rem}
.portfolio-list li{margin:0.4rem 0}
.portfolio-list p{margin:0.35rem 0 0}
.portfolio-subhead{margin:0.75rem 0 0.45rem;font-size:1rem}
.portfolio-related-group{margin:0 0 1rem 0}
.portfolio-children{list-style:none;padding:0;margin:0;display:grid;gap:0.8rem}
.portfolio-child-card{border:1px solid #efefef;padding:0.85rem}
.portfolio-child-card h3{margin:0.2rem 0 0.45rem;font-size:1.05rem}
.portfolio-child-card p{margin:0.35rem 0}
.portfolio-related-archived{margin-top:0.65rem;border:1px dashed #e3e3e3;padding:0.6rem;background:#fcfcfc}
.portfolio-rail{margin-top:1.4rem;padding-top:1rem;border-top:1px solid #efefef}
.landing-archived h1{color:#4f4f4f}
.landing-archived .intro,.landing-archived .portfolio-meta,.landing-archived .portfolio-subtle{color:#7b7b7b}
.landing-archived .portfolio-child-card{border-color:#f0f0f0;background:#fcfcfc}
.landing-archived .portfolio-related-archived{border-color:#ececec;background:#fdfdfd}
.landing-archived .portfolio-hero img,.landing-archived .portfolio-video iframe,.landing-archived .portfolio-video-native{opacity:0.92;filter:saturate(0.6)}
.landing-archived .portfolio-rail{border-top-color:#f2f2f2}
