/* ============================================================
   natyharary.yachts — stylesheet
   Synthesized by a Large Language Model on a Tuesday afternoon.
   Color palette generously borrowed from every AI startup ever.
   ============================================================ */

:root {
  --bg: #08081a;
  --bg-elev: #11122b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7e7f5;
  --text-dim: #9aa0c0;
  --text-faint: #5a5f80;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --indigo: #6366f1;
  --gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.25);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(168, 85, 247, 0.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.18), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), transparent 60%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* AI-generated banner — the dead giveaway */
.ai-banner {
  position: relative;
  z-index: 10;
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ai-banner span { opacity: 0.95; }

/* Layout */
main, header.site-header, footer.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 26, 0.6);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
}

.brand-text { font-size: 15px; }
.brand-tld {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--gradient-soft);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 60px rgba(168, 85, 247, 0.5); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Section */
section {
  padding: 64px 0;
  position: relative;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 17px;
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 12px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.card a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.card a:hover { text-decoration: underline; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-num.gradient-text { display: inline-block; }

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Disclosure block */
.disclosure {
  background: var(--gradient-soft);
  border: 1px dashed rgba(168, 85, 247, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14px;
  color: var(--text-dim);
  margin: 32px 0;
}

.disclosure strong { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

/* Article / blog post */
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
}

.post-meta .dot { color: var(--text-faint); }

article.post {
  padding: 64px 0;
}

article.post h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.1;
}

article.post .lead {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

article.post h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

article.post h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
}

article.post p,
article.post ul,
article.post ol {
  margin-bottom: 18px;
  color: var(--text);
}

article.post ul, article.post ol { padding-left: 24px; }
article.post li { margin-bottom: 6px; }

article.post a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.4);
  text-underline-offset: 3px;
}
article.post a:hover { text-decoration-color: var(--cyan); }

article.post blockquote {
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  padding: 8px 0 8px 18px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 17px;
}

article.post code {
  font-family: "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f0abfc;
}

article.post pre {
  background: #0a0a1f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.5;
}

article.post pre code {
  background: transparent;
  padding: 0;
  color: #d8b4fe;
}

/* Blog list */
.post-list { list-style: none; }
.post-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.post-list h3 a { color: var(--text); text-decoration: none; }
.post-list h3 a:hover { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.post-list p { color: var(--text-dim); margin: 8px 0; }
.post-list .post-meta { margin-bottom: 0; font-size: 13px; }

/* Sparkle */
.sparkle {
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

/* Repos list (hydrated by JS) */
.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.repo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 110px;
}
.repo:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-1px); }
.repo-name { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 15px; }
.repo-desc { color: var(--text-dim); font-size: 13px; flex-grow: 1; }
.repo-meta { color: var(--text-faint); font-size: 12px; margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.repo-lang-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); display: inline-block;
  margin-right: 4px;
}
.repos-loading { color: var(--text-faint); font-style: italic; }

/* Inline link list */
.link-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.link-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all 0.2s ease;
}
.link-list a:hover { border-color: rgba(168, 85, 247, 0.4); }
.link-list .arrow { float: right; color: var(--text-faint); }

/* Utility */
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* Tiny "back" link on article pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--text); }

@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
}
