@font-face {
  font-family: 'Arcon';
  src: url('https://turnip.pt/interpreting/fonts/Arcon-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arcon Rounded';
  src: url('https://turnip.pt/interpreting/fonts/Arcon-Rounded-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --bg-primary: #0e1016;
  --bg-secondary: #151820;
  --bg-card: #1a1e28;
  --bg-card-hover: #1f2433;
  --text-primary: #f0f0f2;
  --text-secondary: #a0a4b0;
  --text-muted: #6b7080;
  --accent: #6E549B;
  --accent-light: #8A6DB5;
  --accent2: #819C54;
  --accent2-light: #96B366;
  --accent2-glow: rgba(129,156,84,0.12);
  --border: #262a36;
  --font-body: 'Arcon', 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,16,22,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav a { color: var(--text-primary); text-decoration: none; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 100px; width: auto; display: block; transform: translateY(-3px); }
@media (min-width: 720px) { .nav-logo img { height: 150px; } }
.nav-back {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent-light); }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent-light); }

/* ── Index page ─────────────────────────────────────────────────────── */
main.index-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}
@media (min-width: 720px) {
  main.index-main { padding: 10rem 2rem 5rem; }
}

.hero-tag {
  display: inline-block;
  background: var(--accent2-glow);
  border: 1px solid rgba(129,156,84,0.25);
  color: var(--accent2-light);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.index-main h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 720px;
  line-height: 1.6;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .posts-grid { grid-template-columns: 1fr 1fr 1fr; } }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  border-color: rgba(110,84,155,0.4);
  transform: translateY(-2px);
}
.post-card-img {
  aspect-ratio: 16/9;
  background: var(--bg-secondary) center/cover no-repeat;
  display: block;
  width: 100%;
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.post-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Post page ──────────────────────────────────────────────────────── */
main.post-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}
@media (min-width: 720px) {
  main.post-main { padding: 10rem 2rem 5rem; }
}

.post-tag {
  display: inline-block;
  background: var(--accent2-glow);
  border: 1px solid rgba(129,156,84,0.25);
  color: var(--accent2-light);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.post-main h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.post-meta span + span::before {
  content: "·";
  margin: 0 0.55rem;
  color: var(--text-muted);
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.post-hero {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: block;
}

/* Article body prose */
.post-body {
  color: var(--text-secondary);
}
.post-body h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.post-body h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.post-body h4 {
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.post-body p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.15s;
}
.post-body a:hover { color: var(--text-primary); text-decoration: underline; }
.post-body ul, .post-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.post-body li { margin-bottom: 0.45rem; line-height: 1.6; }
.post-body li > ul, .post-body li > ol {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 1.25rem 0;
}
.post-body blockquote p { margin-bottom: 0; }
.post-body code {
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  color: var(--text-primary);
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.post-body th, .post-body td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  text-align: left;
}
.post-body th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}
.post-body td { color: var(--text-secondary); }

/* ── Page-load entrance ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-tag, .post-main h1, .post-meta, .post-excerpt, .post-hero,
.hero-tag, .index-main h1, .lede {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.post-tag, .hero-tag { animation-delay: 0.05s; }
.post-main h1, .index-main h1 { animation-delay: 0.18s; }
.post-meta, .lede { animation-delay: 0.32s; }
.post-excerpt { animation-delay: 0.42s; }
.post-hero { animation-delay: 0.52s; }

/* ── Scroll-triggered reveal ────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card hover (enhanced) ──────────────────────────────────────────── */
.post-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.7s ease-out;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 84, 155, 0.55);
  box-shadow: 0 14px 36px rgba(110, 84, 155, 0.18), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.post-card-img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.post-card:hover .post-card-img { transform: scale(1.06); }
.post-card-title { transition: color 0.2s; }
.post-card:hover .post-card-title { color: var(--accent-light); }

/* ── In-content CTA section ─────────────────────────────────────────── */
.cta-section {
  margin-top: 4rem;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(110, 84, 155, 0.18) 0%, rgba(129, 156, 84, 0.10) 100%);
  border: 1px solid rgba(110, 84, 155, 0.3);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(110, 84, 155, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  position: relative;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(110, 84, 155, 0.4);
}
.cta-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(110, 84, 155, 0.55);
}
.cta-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text-primary);
}
.cta-btn-secondary:hover {
  border-color: var(--accent-light);
  background: rgba(110, 84, 155, 0.12);
  box-shadow: none;
}

/* ── Floating CTA button ────────────────────────────────────────────── */
.cta-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: var(--accent);
  color: var(--text-primary);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(110, 84, 155, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: floatIn 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) 0.8s backwards;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cta-float:hover {
  transform: translateY(-3px);
  background: var(--accent-light);
  box-shadow: 0 14px 36px rgba(110, 84, 155, 0.65);
}
@media (max-width: 480px) {
  .cta-float { bottom: 1rem; right: 1rem; padding: 0.75rem 1.2rem; font-size: 0.86rem; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Reading progress bar ───────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 99;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease-out;
  will-change: transform;
  pointer-events: none;
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] { opacity: 1; transform: none; }
}
</content>
</invoke>