:root {
  --bg: #f6f4f0;
  --bg-2: #eeeae3;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --line: #e0dbd1;
  --text: #18191c;
  --text-2: #3a3d43;
  --muted: #62666d;
  --accent: #b0500a;
  --accent-ink: #ffffff;
  --chip: #efebe4;
  --glass: rgba(255, 255, 255, 0.72);
  --glow-1: rgba(255, 138, 61, 0.42);
  --glow-2: rgba(92, 76, 230, 0.22);
  --glow-3: rgba(15, 139, 141, 0.20);
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.05), 0 8px 24px rgba(20, 20, 30, 0.06);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0f;
    --bg-2: #101217;
    --surface: #14161b;
    --surface-2: #1a1d24;
    --line: #272b34;
    --text: #eeedea;
    --text-2: #c8cbd0;
    --muted: #949aa3;
    --accent: #ff9a4a;
    --accent-ink: #1b1006;
    --chip: #1c1f27;
    --glass: rgba(20, 22, 27, 0.66);
    --glow-1: rgba(255, 122, 47, 0.38);
    --glow-2: rgba(86, 64, 255, 0.30);
    --glow-3: rgba(13, 148, 150, 0.24);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-2: #101217;
  --surface: #14161b;
  --surface-2: #1a1d24;
  --line: #272b34;
  --text: #eeedea;
  --text-2: #c8cbd0;
  --muted: #949aa3;
  --accent: #ff9a4a;
  --accent-ink: #1b1006;
  --chip: #1c1f27;
  --glass: rgba(20, 22, 27, 0.66);
  --glow-1: rgba(255, 122, 47, 0.38);
  --glow-2: rgba(86, 64, 255, 0.30);
  --glow-3: rgba(13, 148, 150, 0.24);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.navlinks { display: flex; gap: 0.25rem; margin: 0 auto; padding: 0; list-style: none; }
.navlinks a {
  display: block; padding: 0.45rem 0.8rem; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.navlinks a:hover, .navlinks a.active { color: var(--text); background: var(--chip); }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer;
}
.iconbtn:hover { border-color: var(--accent); }
.menubtn { display: none; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
@media (max-width: 760px) {
  .menubtn { display: inline-grid; margin-left: auto; }
  .navlinks {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; padding: 0.5rem 16px 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 0.75rem 0.8rem; }
}

.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1180px) { .dots { display: flex; } }
.dots a { display: block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); opacity: 0.6; }
.dots a:hover { opacity: 1; }
.dots a.active { background: var(--accent); border-color: var(--accent); opacity: 1; }

.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -2; inset: -20%;
  background:
    radial-gradient(40% 45% at 18% 30%, var(--glow-1), transparent 70%),
    radial-gradient(45% 50% at 80% 20%, var(--glow-2), transparent 70%),
    radial-gradient(40% 45% at 65% 85%, var(--glow-3), transparent 70%);
  filter: blur(30px);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after {
  z-index: -1; inset: 0; filter: none; animation: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-3%, 3%, 0) rotate(-6deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero .wrap {
  min-height: calc(100svh - var(--nav-h)); padding-top: 3.5rem; padding-bottom: 4rem;
  display: grid; align-items: center; gap: 2.5rem;
}
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; } }
@media (max-width: 899px) { .hero .wrap { min-height: 0; } }
.hero h1 { font-size: clamp(2.75rem, 8vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero .tagline { margin-top: 1rem; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; color: var(--text-2); letter-spacing: -0.01em; }
.label {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 2.25rem 0 0.7rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 0.8125rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 7px;
  background: color-mix(in srgb, var(--chip) 85%, transparent); border: 1px solid var(--line); color: var(--text-2);
}
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.35rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 0.55rem 1rem; font-size: 0.9375rem; border-radius: 10px; }

.profile {
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  max-width: 21rem; width: 100%;
}
@media (max-width: 899px) { .profile { max-width: 26rem; } }
.profile > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.socials { display: flex; justify-content: space-around; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--text-2);
}
.socials a:hover { color: var(--accent); background: var(--chip); }
.socials svg { width: 20px; height: 20px; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 0.85rem; align-items: center; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts svg { color: var(--muted); }
.facts strong { display: block; font-size: 0.9375rem; line-height: 1.3; }
.facts span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }

.section { padding: 5.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 2.75rem; }
.section-head .badge-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent); margin-bottom: 0.9rem;
}
.section-head h2 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin-top: 0.6rem; color: var(--muted); }

.filters {
  display: grid; gap: 0.6rem; padding: 0.6rem; margin-bottom: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
@media (min-width: 720px) { .filters { grid-template-columns: minmax(0, 1fr) 13rem 11rem; } }
.field { position: relative; display: flex; align-items: center; }
.field svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 12px 0 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.9375rem;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; }
.field.select::after {
  content: ""; position: absolute; right: 14px; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.result-count { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); margin: -0.5rem 0 1.1rem; }

.post-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr 1fr; } }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } .post-card:hover { transform: none; } }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.kicker { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker .type-devblog { color: var(--accent); }
.post-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; }
.post-card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.post-card .chips { margin-top: auto; padding-top: 0.35rem; }
.post-card .chips li { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.empty { display: none; text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.empty.show { display: block; }

.career { max-width: 60rem; margin: 0 auto; display: grid; gap: 1rem; }
@media (min-width: 760px) { .career { grid-template-columns: 1fr 1fr; align-items: start; } }
.job {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem 1.5rem; box-shadow: var(--shadow);
}
.job .when { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.job h3 { margin-top: 0.4rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.job .org { margin-top: 0.15rem; color: var(--text-2); font-weight: 600; }
.job ul { margin: 0.9rem 0 0; padding-left: 1.2rem; color: var(--text-2); }
.job li + li { margin-top: 0.35rem; }
.job li::marker { color: var(--muted); }
.job ul.chips { margin-top: 0.9rem; padding-left: 0; }
.job ul.chips li + li { margin-top: 0; }

.lines { display: grid; gap: 0.5rem; margin-top: 1rem; }
.line {
  display: block; height: 0.7rem; max-width: 100%; border-radius: 2px;
  background: color-mix(in srgb, var(--text) 42%, var(--surface));
}
:root[data-theme="light"] .line { background: color-mix(in srgb, var(--text) 85%, var(--surface)); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .line { background: color-mix(in srgb, var(--text) 85%, var(--surface)); } }
.org .line { display: inline-block; height: 0.8rem; vertical-align: middle; }

.toolbox { display: grid; gap: 1rem; }
@media (min-width: 640px) { .toolbox { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .toolbox { grid-template-columns: 1fr 1fr 1fr; } }
.toolgroup { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.3rem 1.35rem; }
.toolgroup h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.0625rem; font-weight: 800; margin-bottom: 0.85rem; }
.toolgroup h3 svg { color: var(--accent); }

.contact { text-align: center; border-top: 1px solid var(--line); }
.hero.contact .wrap { min-height: 0; grid-template-columns: 1fr; }
.contact .wrap { padding-top: 6rem; padding-bottom: 6rem; }
.contact h2 { font-size: clamp(2.25rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; display: inline-flex; align-items: center; gap: 0.6rem; }
.contact h2 svg { width: 0.85em; height: 0.85em; color: var(--accent); }
.contact .buttons { justify-content: center; margin-top: 1.75rem; }

.footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.875rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer a { color: var(--text-2); }

.post { padding-top: 2.5rem; padding-bottom: 5rem; }
.post .narrow { max-width: 46rem; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; color: var(--text-2); }
.back:hover { color: var(--accent); }
.post .kicker { justify-content: flex-start; gap: 0.6rem; margin-top: 2rem; }
.post .kicker span + span::before { content: "·"; margin-right: 0.6rem; color: var(--muted); }
.post h1 { margin-top: 0.75rem; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.post .summary { margin-top: 1rem; font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); }
.post .chips { margin-top: 1.25rem; }
.post .buttons { margin-top: 1.5rem; }
.cover { margin: 2.5rem auto 0; max-width: 60rem; }
.cover img, .prose figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.prose { margin-top: 2.75rem; font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.75rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: 0.875em; background: var(--chip); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; }
.prose pre { font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; color: var(--text); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose figure { margin: 2rem 0 0; }
.prose figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); text-align: center; }
.prose .note { padding: 1rem 1.15rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.swatch { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.swatch i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; }
.post-more { display: grid; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .post-more { grid-template-columns: 1fr 1fr; } }
.post-more a { display: block; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); }
.post-more a:hover { border-color: var(--accent); }
.post-more small { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-more strong { display: block; margin-top: 0.2rem; font-size: 1.0625rem; }
.post-more .next { text-align: right; }

.madeby {
  position: relative; overflow: hidden; isolation: isolate; color: #eeedea;
  background:
    radial-gradient(50% 60% at 78% 55%, rgba(255, 122, 47, 0.32), transparent 70%),
    radial-gradient(45% 55% at 10% 15%, rgba(86, 64, 255, 0.28), transparent 70%),
    #0b0c0f;
  border-top: 1px solid var(--line);
}
.madeby .wrap {
  display: grid; align-items: center; gap: 2rem; padding-top: 5rem; padding-bottom: 5rem;
}
@media (min-width: 900px) { .madeby .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: 88svh; gap: 3rem; } }
.madeby .label { margin: 0 0 1.25rem; color: #ff9a4a; }
.madeby h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.madeby .claude {
  display: block; margin-top: 0.5rem;
  font-size: clamp(3.5rem, 19vw, 7rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap;
  background: linear-gradient(100deg, #ffc79a 0%, #ff8a3d 45%, #ff4d6d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.madeby .finger {
  justify-self: center; width: min(100%, 24rem); height: auto;
  filter: drop-shadow(0 30px 50px rgba(255, 122, 47, 0.35));
  transform-origin: 50% 90%; animation: wag 3.4s ease-in-out infinite;
}
@media (max-width: 899px) { .madeby .finger { width: min(80%, 20rem); } }
@media (min-width: 900px) { .madeby .claude { font-size: clamp(5rem, 10vw, 10rem); } }
@keyframes wag { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .madeby .finger { animation: none; transform: rotate(-4deg); } }
