/* Self-contained stylesheet: this page does not share CSS with the others. */
/* Carbonfox palette (nightfox.nvim). Surfaces between bg and fg are approximations of its brighten() steps. */
:root {
  --bg: #161616;
  --surface: #252525;
  --surface-2: #2a2a2a;
  --line: #353535;
  --fg: #f2f4f8;
  --fg-2: #b6bdd1;
  --muted: #8a8c92;
  --blue: #78a9ff;
  --cyan: #33b1ff;
  --teal: #08bdba;
  --green: #25be6a;
  --magenta: #be95ff;
  --pink: #ff7eb6;
  --accent: var(--blue);
  --on-accent: #161616;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--fg); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: 40px; line-height: 1.1; margin-bottom: 40px; }
main { flex: 1; }
code, .code { font-family: var(--code); }


.wrap { max-width: 1184px; width: 100%; margin: 0 auto; padding: 0 48px; }
.section { padding-top: 32px; padding-bottom: 96px; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  max-width: 1184px; width: 100%; margin: 0 auto; padding: 24px 48px;
}
.brand { font-size: 16px; font-weight: 600; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  font-size: 14px; font-weight: 600; border-radius: 4px; color: var(--fg); background: var(--surface-2);
}
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn svg { width: 18px; height: 18px; margin-right: 8px; fill: currentColor; }

/* code blocks */
.cmd {
  display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 14px 20px; font-family: var(--code); font-size: 14px; color: var(--fg);
  max-width: 100%; overflow-x: auto; white-space: nowrap;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.panel-title { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.panel .code-line { font-family: var(--code); font-size: 13.5px; line-height: 1.7; color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere; }

/* footer */
.site-footer {
  max-width: 1184px; width: 100%; margin: 0 auto; padding: 24px 48px 28px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 720px) {
  .wrap, .site-header, .site-footer { padding-left: 24px; padding-right: 24px; }
  h2 { font-size: 32px; margin-bottom: 28px; }
}

/* ---------- home ---------- */
.home-hero { display: flex; align-items: center; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; outline: 1px solid var(--line); outline-offset: -1px; }
.home-hero h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 10px; }
.home-hero p { font-size: 18px; max-width: 36em; line-height: 1.55; }

.featured { display: grid; grid-template-columns: 1fr; gap: 80px; }
.feature-card { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 48px; align-items: center; }
.feature-card .text { display: flex; flex-direction: column; gap: 20px; }
.feature-card h3 { font-size: 40px; }
/* each name is set as it is on its own page */
.brand-lazyftp span { color: var(--accent); }
.brand-justwrite { font-family: "JetBrains Mono", var(--code); font-size: 32px; font-weight: 700; letter-spacing: 0; color: var(--accent); }
.brand-Wassup { font-weight: 700; color: var(--accent); }
.feature-card p { font-size: 17px; line-height: 1.55; }
.feature-card .meta { font-size: 14px; color: var(--muted); }
.feature-card .meta { text-wrap: balance; }
.feature-card .ver { display: block; margin-bottom: 2px; color: var(--accent); font-weight: 600; }
.feature-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.feature-card .shot { display: block; border-radius: 6px; overflow: hidden; background: var(--bg); outline: 1px solid var(--line); outline-offset: -1px; }
.feature-card .shot:hover { outline-color: var(--accent); }
.feature-card .shot img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.feature-card .shot:hover img { transform: scale(1.02); }
.feature-card img { display: block; width: 100%; height: auto; }

.thread-title { font-size: 20px; font-weight: 600; color: var(--fg); margin-bottom: 24px; letter-spacing: -0.01em; }
.thread { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.thread div { padding-top: 0; }
.thread b { display: block; font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.thread span { font-size: 16px; line-height: 1.65; }

.others-title { font-size: 20px; font-weight: 600; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.01em; }
.others { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.other {
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline;
  padding: 20px 24px; background: var(--surface); border-radius: 6px; color: inherit;
}
.other:hover { text-decoration: none; background: var(--surface-2); }
.other .name { flex: 0 0 180px; font-size: 16px; font-weight: 600; color: var(--fg); }
.other .desc { flex: 1 1 380px; font-size: 16px; line-height: 1.65; }
.other .stack { flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.other .stack.warn { color: var(--pink); }
.other .go { flex: 0 0 auto; font-size: 14px; color: var(--blue); }
.other .go { display: inline-flex; align-items: center; gap: 6px; }
.other .go svg { width: 16px; height: 16px; fill: currentColor; }
.all-repos { margin-top: 20px; font-size: 14px; color: var(--muted); }


@media (max-width: 720px) {
  .home-hero { gap: 18px; padding-top: 40px; padding-bottom: 40px; }
  .avatar { width: 72px; height: 72px; }
  .home-hero h1 { font-size: 32px; }
  .home-hero p { font-size: 16px; }
  .featured { gap: 56px; }
  .feature-card { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 960px) {
  .feature-card { grid-template-columns: 1fr; gap: 24px; }
}

/* motion: one moment, the introduction arriving when the page opens; controls answer the pointer */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.home-hero .avatar, .home-hero h1, .home-hero p { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
.home-hero h1 { animation-delay: 90ms; }
.home-hero p { animation-delay: 180ms; }
.btn, .other { transition: filter .15s, background-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .home-hero * { animation: none !important; } * { transition: none !important; } .feature-card .shot:hover img { transform: none; } }
