@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

/* ==========================================================================
   Showcase — themes/showcase.css
   Light, bold, CENTERED landing-page layout: a centered masthead, a big
   centered hero on a soft tinted band, and card-grid presentation.
   Soft off-white page, ink text, vibrant indigo accent. Sora + Inter.
   Fully self-contained: reset + layout + components + responsive.
   ========================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.theme-showcase {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #e3e4f1;
  color: #1b1d29;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.theme-showcase img { max-width: 100%; height: auto; display: block; }

/* ---- Typographic rhythm ---- */
.theme-showcase h1,
.theme-showcase h2,
.theme-showcase h3,
.theme-showcase h4 {
  font-family: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #1b1d29;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.theme-showcase h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.theme-showcase h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
}

.theme-showcase h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
}

.theme-showcase p { margin: 0 0 1.1em; }
.theme-showcase p:last-child { margin-bottom: 0; }

.theme-showcase ul,
.theme-showcase ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.theme-showcase li { margin-bottom: 0.45em; }
.theme-showcase li::marker { color: #5b5bf0; }

.theme-showcase strong { font-weight: 700; color: #1b1d29; }

/* ---- Links (generic) ---- */
.theme-showcase a {
  color: #4a40d6;
  text-decoration: none;
  transition: color 0.2s ease;
}
.theme-showcase a:hover { color: #2f26b4; text-decoration: underline; text-underline-offset: 3px; }
.theme-showcase a:visited { color: #5b45c8; }

/* Component links must beat `.theme-showcase a` (same specificity) — re-assert
   with the theme scope so button/nav/link text is not the generic link color. */
.theme-showcase .btn-primary,
.theme-showcase .btn-primary:visited,
.theme-showcase .btn-primary:hover { color: #ffffff; }
.theme-showcase .btn-ghost { color: #3f38c4; }
.theme-showcase .nav-link { color: #2a2d3d; }
.theme-showcase .text-link { color: #4a40d6; }
.theme-showcase .site-brand-link { color: #1b1d29; }

/* ---- Focus-visible (global) ---- */
.theme-showcase a:focus-visible,
.theme-showcase button:focus-visible,
.theme-showcase .btn:focus-visible,
.theme-showcase .nav-link:focus-visible,
.theme-showcase .text-link:focus-visible,
.theme-showcase .note-list a:focus-visible,
.theme-showcase .bulleted li a:focus-visible {
  outline: 3px solid #5b5bf0;
  outline-offset: 3px;
  border-radius: 6px;
  text-decoration: none;
}

/* ---- Layout ---- */
.main-content { display: block; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.section { margin: 48px 0; }

/* (Theme switcher styling lives in the shared static/css/switcher.css — not styled here.) */

/* ==========================================================================
   Site header — CENTERED masthead
   ========================================================================== */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 44px 0 30px;
  margin-bottom: 20px;
}

.site-brand { min-width: 0; }

.site-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.site-brand-link:hover { color: inherit; text-decoration: none; }

.logo-mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5b5bf0 0%, #8a4bf0 100%);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(91, 91, 240, 0.32);
}

.brand-text { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.brand-text .name {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1b1d29;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-text .contact { font-size: 0.86rem; }

.contact-email {
  color: #565a6b;
  font-weight: 500;
}
.contact-email:visited { color: #565a6b; }
.contact-email:hover { color: #4a40d6; }

/* ---- Site nav — centered pills ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f7f7fc;
  padding: 7px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(20, 22, 40, 0.07);
}

.nav-link {
  color: #2a2d3d;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-link:visited { color: #2a2d3d; }
.nav-link:hover {
  color: #3f38c4;
  background: #ecebfb;
  text-decoration: none;
}

/* ==========================================================================
   Buttons — bold pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:visited { color: inherit; }

.btn-primary {
  background-color: #5b5bf0;
  color: #ffffff;
  border-color: #5b5bf0;
  box-shadow: 0 10px 24px rgba(91, 91, 240, 0.3);
}
.btn-primary:visited { color: #ffffff; }
.btn-primary:hover {
  background-color: #4a40d6;
  border-color: #4a40d6;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(91, 91, 240, 0.4);
}

.btn-ghost {
  background-color: #f7f7fc;
  color: #3f38c4;
  border-color: #c9c8f6;
  box-shadow: 0 6px 18px rgba(20, 22, 40, 0.06);
}
.btn-ghost:visited { color: #3f38c4; }
.btn-ghost:hover {
  background-color: #ecebfb;
  color: #2f26b4;
  border-color: #5b5bf0;
}

/* ==========================================================================
   Hero — fully centered on a soft tinted band
   ========================================================================== */
.hero {
  margin: 8px 0 44px;
  padding: 56px 32px 60px;
  border-radius: 28px;
  background: linear-gradient(180deg, #e9e9ff 0%, #e6e7f6 55%, #e3e4f1 100%);
  border: 1px solid #e4e4fb;
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4a40d6;
  background: #e2e1fb;
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.hero h1 { margin-bottom: 0.45em; }

.hero .lead {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.62;
  color: #3e4152;
  max-width: 64ch;
  margin: 0 auto 2em;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Section grid + cards
   ========================================================================== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 8px 0 40px;
}

.card {
  background-color: #f7f7fc;
  border: 1px solid #ebecf3;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(20, 22, 40, 0.08);
}

.card-spaced { margin-bottom: 28px; padding: 36px; }
.card-spaced:last-child { margin-bottom: 0; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0; }

/* ---- Richtext ---- */
.richtext > :first-child { margin-top: 0; }
.richtext > :last-child { margin-bottom: 0; }
.richtext h2 { margin-top: 1.5em; }
.richtext h2:first-child { margin-top: 0; }
.richtext h3 { margin-top: 1.3em; color: #4a40d6; }
.richtext ul { padding-left: 1.25em; }

/* ---- Text link ---- */
.text-link {
  color: #4a40d6;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.text-link:visited { color: #4a40d6; }
.text-link:hover { color: #2f26b4; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Note list (latest writing)
   ========================================================================== */
.note-list { list-style: none; margin: 0; padding: 0; }

.note-list li {
  padding: 18px 0;
  border-bottom: 1px solid #eceef4;
}
.note-list li:first-child { padding-top: 0; }
.note-list li:last-child { border-bottom: none; padding-bottom: 0; }

.note-list a {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b1d29;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.note-list a:visited { color: #1b1d29; }
.note-list a:hover { color: #4a40d6; text-decoration: none; }

.note-meta {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #565a6b;
  margin: 5px 0 7px;
}

.note-summary {
  margin: 0;
  color: #3e4152;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Bulleted list (blogs list) — CARD GRID
   ========================================================================== */
.bulleted {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bulleted li {
  margin: 0;
  background-color: #f7f7fc;
  border: 1px solid #ebecf3;
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 10px 30px rgba(20, 22, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bulleted li:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 22, 40, 0.13);
}

.bulleted li > div:first-child { align-items: baseline; }

.bulleted li a {
  color: #1b1d29;
  text-decoration: none;
}
.bulleted li a:hover { text-decoration: none; }

.bulleted li a strong {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1b1d29;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.bulleted li a:hover strong { color: #4a40d6; }

.bulleted li > div:first-child > span,
.bulleted li > div > span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #565a6b;
}

.bulleted li > div:last-child {
  margin-top: 10px;
  color: #3e4152;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Blog detail — comfortable single reading column
   ========================================================================== */
.note-body {
  max-width: 70ch;
  margin: 0 auto;
}
.note-body > :first-child { margin-top: 0; }
.note-body > :last-child { margin-bottom: 0; }

.note-body h2 {
  margin-top: 1.7em;
  padding-bottom: 0.2em;
}

.note-body p { font-size: 1.05rem; line-height: 1.78; }

.note-body blockquote {
  margin: 1.5em 0;
  padding: 0.6em 1.3em;
  border-left: 4px solid #5b5bf0;
  background: #f4f4fe;
  border-radius: 0 12px 12px 0;
  font-size: 1.1rem;
  color: #2d3042;
}

/* ---- Code blocks ---- */
.note-body code,
.note-body pre,
.note-body .codehilite {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', Menlo, monospace;
  font-size: 0.88rem;
}

.note-body code {
  background-color: #ecebfb;
  color: #3f38c4;
  padding: 0.14em 0.44em;
  border-radius: 6px;
  border: 1px solid #ddddf7;
}

.note-body pre,
.note-body .codehilite {
  background-color: #1b1d29;
  color: #e7e9f5;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid #2a2d3d;
  overflow-x: auto;
  margin: 1.4em 0;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(20, 22, 40, 0.18);
}

.note-body pre code,
.note-body .codehilite code,
.note-body .codehilite pre {
  background-color: transparent;
  color: inherit;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* ---- Pygments tokens (on dark code block) ---- */
.note-body .codehilite .c,
.note-body .codehilite .c1,
.note-body .codehilite .cm { color: #949ac0; font-style: italic; }
.note-body .codehilite .k,
.note-body .codehilite .kd,
.note-body .codehilite .kn { color: #aba6ff; }
.note-body .codehilite .s,
.note-body .codehilite .s1,
.note-body .codehilite .s2 { color: #9fe3ac; }
.note-body .codehilite .n { color: #e7e9f5; }
.note-body .codehilite .nf,
.note-body .codehilite .nc { color: #f6d98c; }
.note-body .codehilite .o,
.note-body .codehilite .p { color: #c3c7e0; }
.note-body .codehilite .mi,
.note-body .codehilite .mf { color: #ffb48a; }

/* ==========================================================================
   Experience
   ========================================================================== */
.theme-showcase .section .card .richtext h3 {
  color: #1b1d29;
  margin-top: 1.5em;
  padding-top: 1.3em;
  border-top: 1px solid #eceef4;
}
.theme-showcase .section .card .richtext h2 + h3 {
  border-top: none;
  padding-top: 0;
  margin-top: 0.6em;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
  max-width: 600px;
  margin: 80px auto;
  padding: 56px 40px;
  background-color: #f7f7fc;
  border: 1px solid #ebecf3;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(20, 22, 40, 0.08);
  text-align: center;
}
.error-404 h1 { margin-bottom: 0.4em; }
.error-404 p { color: #3e4152; font-size: 1.05rem; }
.error-404 .muted { color: #565a6b; font-size: 0.9rem; }
.error-404 a { font-weight: 700; }

/* ==========================================================================
   Footer — centered
   ========================================================================== */
.site-footer {
  margin-top: 64px;
  padding: 34px 24px 40px;
  text-align: center;
  font-size: 0.84rem;
  color: #565a6b;
  border-top: 1px solid #e4e6ef;
}
.site-footer #year { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.theme-showcase .reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .section-grid { grid-template-columns: 1fr; gap: 22px; }
  .bulleted { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 44px 24px 48px; border-radius: 22px; }
}

@media (max-width: 640px) {
  body.theme-showcase { font-size: 16px; }

  .container { padding: 0 18px 18px; }

  .site-header { padding: 34px 0 24px; }

  .card,
  .card-spaced { padding: 26px 22px; }

  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { width: 100%; }

  .section-header { flex-direction: column; gap: 6px; }

  .error-404 { margin: 48px auto; padding: 40px 26px; }

  .site-footer { padding-bottom: 72px; }
}

@media (max-width: 380px) {
  .site-nav { gap: 4px; padding: 6px; }
  .nav-link { padding: 8px 14px; font-size: 0.8rem; }
  .hero { padding: 36px 18px 40px; }
  .card,
  .card-spaced { padding: 22px 18px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .theme-showcase .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .theme-showcase *,
  .theme-showcase *::before,
  .theme-showcase *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   Showcase HOME — full-bleed landing bands (index_showcase.html)
   ========================================================================== */
.theme-showcase .sc-home { width: 100%; }
.theme-showcase .sc-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.theme-showcase .sc-topbar { padding-top: 8px; }
.theme-showcase .sc-band { width: 100%; padding: 72px 0; }
.theme-showcase .sc-hero { background: linear-gradient(180deg, #e9e9ff 0%, #e6e7f6 60%, #e3e4f1 100%); padding: 64px 0 84px; }
.theme-showcase .sc-hero-inner { text-align: center; max-width: 820px; }
.theme-showcase .sc-hero-inner .cta-group { justify-content: center; }
.theme-showcase .sc-features { background: #edeefb; }
.theme-showcase .sc-writing { background: #e3e4f1; }
.theme-showcase .sc-about { background: #eef0f9; }
.theme-showcase .sc-feature-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.theme-showcase .sc-feature { background: #f7f7fc; border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(20,22,40,0.07); }
.theme-showcase .sc-feature h3 { font-family: 'Sora', sans-serif; font-size: 1.4rem; margin: 0 0 10px; color: #1b1d29; }
.theme-showcase .sc-feature p { color: #3a3d4d; margin: 0; }
.theme-showcase .sc-h2 { font-family: 'Sora', sans-serif; font-size: clamp(1.6rem,3vw,2.1rem); text-align: center; margin: 0 0 36px; }
.theme-showcase .sc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.theme-showcase .sc-post { display: flex; flex-direction: column; background: #f7f7fc; border-radius: 16px; padding: 26px; box-shadow: 0 10px 30px rgba(20,22,40,0.07); transition: transform 0.2s ease, box-shadow 0.2s ease; color: inherit; }
.theme-showcase .sc-post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,22,40,0.13); text-decoration: none; }
.theme-showcase .sc-post-date { font-size: 0.76rem; letter-spacing: 0.07em; color: #585b6e; text-transform: uppercase; }
.theme-showcase .sc-post-title { font-family: 'Sora', sans-serif; font-size: 1.2rem; margin: 8px 0 10px; color: #1b1d29; }
.theme-showcase .sc-post-sum { font-size: 0.95rem; color: #3a3d4d; margin: 0 0 16px; flex: 1 1 auto; }
.theme-showcase .sc-post-more { font-weight: 700; color: #4a40d6; }
.theme-showcase .sc-cta { background: #4a40d6; text-align: center; }
.theme-showcase .sc-cta-inner { max-width: 720px; }
.theme-showcase .sc-cta h2 { font-family: 'Sora', sans-serif; color: #ffffff; font-size: clamp(1.6rem,3vw,2.2rem); margin: 0 0 12px; }
.theme-showcase .sc-cta p { color: #e9e9ff; margin: 0 0 24px; }
.theme-showcase .sc-cta-btn { background: #ffffff; color: #3a32c0; font-weight: 700; border-radius: 999px; padding: 15px 30px; border: 1px solid #ffffff; }
.theme-showcase .sc-cta-btn:hover { background: #f0f0ff; color: #3a32c0; }
.theme-showcase .sc-about-inner { max-width: 760px; margin: 0 auto; }
@media (max-width: 860px) {
  .theme-showcase .sc-feature-row, .theme-showcase .sc-gallery { grid-template-columns: 1fr; }
  .theme-showcase .sc-band { padding: 48px 0; }
}
