:root {
  --bg: #f4f1ea;
  --fg: #1a1a1a;
  --accent: #1e5f8e;
  --muted: #6a6a6a;
  --rule: #d4cfbe;
  --code-bg: #e8e3d3;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --wide-width: 1200px;
  --step-hero: clamp(2.75rem, 1.2rem + 6.2vw, 5.75rem);
  --step-h2: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --content-width: 680px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a;
    --fg: #d6d6d0;
    --accent: #6fb8e8;
    --muted: #8a8a92;
    --rule: #2a2b30;
    --code-bg: #1f2026;
  }
}
:root[data-theme="light"] {
  --bg: #f4f1ea;
  --fg: #1a1a1a;
  --accent: #1e5f8e;
  --muted: #6a6a6a;
  --rule: #d4cfbe;
  --code-bg: #e8e3d3;
}
:root[data-theme="dark"] {
  --bg: #15161a;
  --fg: #d6d6d0;
  --accent: #6fb8e8;
  --muted: #8a8a92;
  --rule: #2a2b30;
  --code-bg: #1f2026;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url("/https/chiliec.github.io/fonts/JetBrainsMono-Regular.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url("/https/chiliec.github.io/fonts/JetBrainsMono-Bold.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url("/https/chiliec.github.io/fonts/InstrumentSerif-Regular.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url("/https/chiliec.github.io/fonts/InstrumentSerif-Italic.woff2") format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.3;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  padding: var(--space-sm) var(--space-md);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 100;
}
.skip-link:focus {
  top: var(--space-md);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.display em {
  font-style: italic;
  color: var(--accent);
}
.eyebrow,
.section-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-mark {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.button {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button:hover {
  background: var(--fg);
  color: var(--bg);
}
.button--solid {
  background: var(--fg);
  color: var(--bg);
}
.button--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.is-wide .site-container {
  max-width: var(--wide-width);
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
}
.site-name {
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: var(--fg);
}
.site-name::before {
  content: none;
}
.site-nav a {
  display: inline-block;
  margin-left: var(--space-md);
  padding: var(--space-sm) 0;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--accent);
}
.site-nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-left: var(--space-md);
  padding: var(--space-sm);
  min-width: 24px;
  cursor: pointer;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--accent);
}
@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  .site-nav a,
  .theme-toggle {
    margin-left: 0;
    margin-right: var(--space-md);
  }
}
.site-footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: var(--space-md);
}
.site-footer a:hover {
  color: var(--accent);
}
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-sm) 0;
  font-family: var(--font-mono);
  font-size: 13px;
}
.post-list-title {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}
.post-list-title:hover {
  color: var(--accent);
}
.post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.post-tags {
  margin-left: var(--space-sm);
}
.post-tags a {
  color: var(--muted);
  text-decoration: none;
  margin-right: var(--space-xs);
}
.post-tags a:hover {
  color: var(--accent);
}
@media (max-width: 600px) {
  .post-list-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}
.post-article {
  max-width: 100%;
}
.post-header {
  margin-bottom: var(--space-xl);
}
.post-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: var(--space-xs) 0 0;
  color: var(--fg);
}
.post-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}
.post-body p {
  margin: 0 0 var(--space-md);
}
.post-body h2 {
  font-family: var(--font-mono);
  font-size: 17px;
  margin: var(--space-xl) 0 var(--space-sm);
}
.post-body h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  margin: var(--space-lg) 0 var(--space-sm);
}
.post-body ul,
.post-body ol {
  padding-left: var(--space-lg);
  margin: 0 0 var(--space-md);
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--muted);
  font-style: italic;
}
.about-hero {
  padding: var(--space-xl) 0 var(--space-xl);
  max-width: 900px;
}
.about-title {
  font-size: var(--step-hero);
  margin: var(--space-md) 0 var(--space-xl);
}
.about-lede {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.5rem, 1.4rem);
  line-height: 1.6;
  max-width: 38em;
  margin: 0 0 var(--space-md);
}
.about-philosophy {
  color: var(--muted);
  margin: 0;
}
.about-section {
  padding: calc(var(--space-xl) * 1.5) 0 0;
}
.about-section:last-child {
  padding-bottom: calc(var(--space-xl) * 2);
}
.about-prose {
  font-size: 17px;
  line-height: 1.7;
  max-width: 38em;
}
.about-prose p {
  margin: 0 0 var(--space-md);
}
.interests-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.interest {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: var(--space-sm);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: var(--space-md);
}
.interest .icon {
  grid-row: 1/3;
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.interest-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}
.interest-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .interests-grid {
    grid-template-columns: 1fr;
  }
}
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  color: var(--fg);
}
pre {
  font-family: var(--font-mono);
}
figure.highlight {
  background: var(--code-bg);
  margin: var(--space-md) 0;
  padding: var(--space-sm) 0;
  border-radius: 4px;
  border: 1px solid var(--rule);
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
}
figure.highlight table {
  width: 100%;
  border-collapse: collapse;
}
figure.highlight td {
  padding: 0;
  vertical-align: top;
}
figure.highlight td.gutter {
  width: 2.5em;
  user-select: none;
  text-align: right;
  padding-right: var(--space-sm);
  color: var(--muted);
  border-right: 1px solid var(--rule);
}
figure.highlight td.code {
  padding: 0 var(--space-md);
}
figure.highlight pre {
  margin: 0;
  background: transparent;
  white-space: pre;
}
figure.highlight .line {
  display: block;
  min-height: 1.55em;
}
figure.highlight .keyword,
figure.highlight .built_in,
figure.highlight .literal {
  color: var(--accent);
}
figure.highlight .string,
figure.highlight .meta-string {
  color: var(--fg);
  font-style: italic;
}
figure.highlight .comment {
  color: var(--muted);
  font-style: italic;
}
figure.highlight .number,
figure.highlight .symbol {
  color: var(--accent);
}
figure.highlight .function .title,
figure.highlight .title.function_ {
  color: var(--fg);
  font-weight: 700;
}
figure.highlight .attr,
figure.highlight .params {
  color: var(--fg);
}
.apps-hero {
  padding: var(--space-xl) 0 calc(var(--space-xl) * 2);
}
.apps-title {
  font-size: var(--step-hero);
  margin: var(--space-md) 0 var(--space-xl);
  max-width: 14em;
}
.apps-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}
.apps-icons img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}
.apps-icons a:hover img,
.apps-icons a:focus-visible img {
  transform: translateY(-4px);
}
.app-feature {
  padding: calc(var(--space-xl) * 2) 0 0;
}
.app-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.app-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}
.app-feature-name {
  font-size: var(--step-h2);
  margin: var(--space-md) 0;
}
.app-feature-tagline {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 var(--space-lg);
  max-width: 32em;
}
.app-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.app-shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 600/1304;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
  background: var(--code-bg);
}
.apps-all {
  padding: calc(var(--space-xl) * 2) 0;
}
@media (max-width: 800px) {
  .app-feature-grid {
    grid-template-columns: 1fr;
  }
  .app-shots {
    grid-template-columns: repeat(3, 70%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .app-shots img {
    scroll-snap-align: start;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 78vh;
  padding: var(--space-xl) 0 calc(var(--space-xl) * 2);
}
.hero-title {
  font-size: var(--step-hero);
  margin: var(--space-md) 0 var(--space-lg);
}
.hero-pitch {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  max-width: 36em;
  margin: 0 0 var(--space-lg);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
}
.fan {
  position: relative;
  aspect-ratio: 1/1.15;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
.fan-card {
  position: absolute;
  top: 6%;
  width: 46%;
}
.fan-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600/1304;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  background: var(--code-bg);
}
.fan-card:nth-child(1) {
  left: 0;
  transform: rotate(-8deg);
}
.fan-card:nth-child(2) {
  left: 27%;
  top: 0;
  z-index: 2;
  transform: rotate(-1.5deg);
}
.fan-card:nth-child(3) {
  left: 54%;
  top: 9%;
  z-index: 3;
  transform: rotate(6deg);
}
.js-motion [data-hero] {
  visibility: hidden;
  animation: reveal-failsafe 0s 3s forwards;
}
.home-section {
  padding: calc(var(--space-xl) * 2) 0 0;
}
.section-title {
  font-size: var(--step-h2);
  margin: 0 0 var(--space-xl);
  max-width: 16em;
}
.work-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}
.work-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--rule);
  transition: transform 0.25s ease;
}
.work-item:hover {
  transform: translateX(6px);
}
.work-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}
.work-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5rem, 2.1rem);
  margin: 0;
  line-height: 1.1;
}
.work-name a {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100%/0 1px no-repeat;
  transition: background-size 0.3s ease;
}
.work-name a:hover,
.work-name a:focus-visible {
  background-size: 100% 1px;
  color: var(--fg);
}
.work-tagline {
  margin: var(--space-xs) 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 48em;
}
.work-genre {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact {
  padding-bottom: calc(var(--space-xl) * 2);
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .fan {
    max-width: 340px;
  }
  .work-item {
    grid-template-columns: 48px 1fr;
  }
  .work-icon {
    width: 48px;
    height: 48px;
  }
  .work-genre {
    display: none;
  }
}
@-moz-keyframes reveal-failsafe {
  to {
    visibility: visible;
  }
}
@-webkit-keyframes reveal-failsafe {
  to {
    visibility: visible;
  }
}
@-o-keyframes reveal-failsafe {
  to {
    visibility: visible;
  }
}
@keyframes reveal-failsafe {
  to {
    visibility: visible;
  }
}
