/* hadix.app — homepage styles. Colors from CLAUDE.md brand table (light default, dark via [data-theme="dark"]). */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #F8FAFC; --surface: #FFFFFF; --border: #E5E7EB; --border-strong: #CBD5E1;
  --text: #0F172A; --body: #475569; --muted: #64748B;
  --accent: #0F766E; --accent-text: #0F766E; --on-accent: #FFFFFF;
  --amber: #D97706; --placeholder: #E2E8F0; --footer: #0F172A;
  --up: #15803D; --down: #B91C1C;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1220; --surface: #111A2E; --border: #1E293B; --border-strong: #334155;
  --text: #E2E8F0; --body: #CBD5E1; --muted: #94A3B8;
  --accent: #2DD4BF; --accent-text: #2DD4BF; --on-accent: #0B1220;
  --amber: #FBBF24; --placeholder: #1E293B; --footer: #060B14;
  --up: #34D399; --down: #F87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif; min-height: 100vh; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--text); border: 1px solid var(--border-strong); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; }
.logo img { height: 40px; width: auto; }
.logo-dark, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--body); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.nav-links .btn-signin { padding: 10px 16px; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.kicker { font-family: var(--mono); font-size: 14px; color: var(--accent-text); }
.kicker .cursor { color: var(--amber); }
.empty { color: var(--muted); font-size: 15px; }
.hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; font-weight: 700; }
.hero-intro { font-size: 19px; line-height: 1.65; color: var(--body); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: 20px; border: 1px solid var(--border); background: var(--placeholder); }

/* Info bar */
.info { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-grid { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 0 auto; }
.info-grid div { display: flex; flex-direction: column; gap: 6px; }
.info-grid dt { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-grid dd { margin: 0; font-size: 17px; font-weight: 500; }

/* Sections */
.section { display: flex; flex-direction: column; gap: 20px; padding-top: 48px; padding-bottom: 24px; }
.section h2 { font-size: 32px; font-weight: 700; }
.stack { padding-top: 56px; padding-bottom: 8px; gap: 18px; }
.stack h2 { font-size: 22px; }
.projects { padding-top: 56px; gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li { font-family: var(--mono); font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.card-img { aspect-ratio: 2 / 1; height: auto; border-radius: 10px; background: var(--placeholder); display: flex; align-items: center; justify-content: center; color: var(--body); font-size: 14px; object-fit: cover; width: 100%; }
.card-tag { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.6; color: var(--body); }
.card-link { font-size: 15px; font-weight: 500; color: var(--accent-text); margin-top: auto; }

/* Services */
.section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.section-head span { font-size: 14px; color: var(--muted); }
.service-list { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; list-style: none; margin: 0; padding: 0; }
.service { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.service:last-child { border-bottom: 0; }
.service-info { display: flex; flex-direction: column; gap: 4px; min-width: min(220px, 100%); }
.service-name { font-size: 17px; font-weight: 600; }
.service-desc { font-size: 14px; color: var(--muted); }
.service-meta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.up::before { background: var(--up); }
.status.down::before { background: var(--down); }
.service-host { font-family: var(--mono); font-size: 14px; color: var(--accent-text); }

/* Notes */
.note { gap: 10px; text-decoration: none; color: var(--text); }
.note-date { font-size: 13px; color: var(--muted); }
.note-title { font-size: 19px; font-weight: 600; }
.note-sum { font-size: 15px; color: var(--body); }

/* Contact */
.contact { padding-top: 48px; padding-bottom: 80px; }
.contact-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.contact-box > div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.contact-box h2 { font-size: 28px; font-weight: 700; }
.contact-box p { font-size: 16px; line-height: 1.6; color: var(--body); }
.contact-box .btn { padding: 14px 22px; }

/* Footer — always dark */
.site-footer { background: var(--footer); color: #CBD5E1; }
.footer-row { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }

/* Single note page */
.article { max-width: 720px; padding-top: 56px; padding-bottom: 80px; }
.article h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 8px 0 28px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article p { font-size: 17px; line-height: 1.75; color: var(--body); margin: 0 0 18px; }

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .contact-box { padding: 24px; }
  .nav-links { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
