/*
 * Landing page — bento grid.
 * Hero band on top, asymmetric tile grid below. Each tile carries an
 * accent color so importance reads at a glance.
 *
 * This file is self-contained: it defines the --pr-* variables it
 * needs in both light and dark modes, so it works without loading
 * practice.css.
 */

/* ─────────── Theme tokens (light) ─────────── */
:root {
  --pr-c-blue:   #3b82f6;
  --pr-c-violet: #8b5cf6;
  --pr-c-green:  #10b981;
  --pr-c-amber:  #f59e0b;
  --pr-c-teal:   #14b8a6;
  --pr-c-pink:   #ec4899;

  --pr-card-bg:    #ffffff;
  --pr-card-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 0 rgba(0,0,0,.02);
  --pr-card-shadow-hover: 0 8px 24px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.02);
  --pr-border: rgba(0,0,0,.08);
  --pr-text-muted: #6b7280;
  --pr-chip-bg: rgba(99,102,241,.07);

  /* architecture visual strokes (more visible than --pr-border) */
  --lp-arch-stroke: rgba(0,0,0,.22);
  --lp-arch-edge:   rgba(0,0,0,.16);
}

/* ─────────── Theme tokens (dark) ─────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --pr-card-bg: #1f2630;
    --pr-card-shadow: 0 1px 0 rgba(255,255,255,.02), 0 1px 2px rgba(0,0,0,.4);
    --pr-card-shadow-hover: 0 8px 24px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.02);
    --pr-border: rgba(255,255,255,.08);
    --pr-text-muted: #9ca3af;
    --pr-chip-bg: rgba(139,92,246,.10);

    --lp-arch-stroke: rgba(255,255,255,.28);
    --lp-arch-edge:   rgba(255,255,255,.20);
  }
}
[data-mode="dark"] {
  --pr-card-bg: #1f2630;
  --pr-card-shadow: 0 1px 0 rgba(255,255,255,.02), 0 1px 2px rgba(0,0,0,.4);
  --pr-card-shadow-hover: 0 8px 24px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.02);
  --pr-border: rgba(255,255,255,.08);
  --pr-text-muted: #9ca3af;
  --pr-chip-bg: rgba(139,92,246,.10);

  --lp-arch-stroke: rgba(255,255,255,.28);
  --lp-arch-edge:   rgba(255,255,255,.20);
}

/* ─────────── Hero ─────────── */
.lp-hero {
  padding: 2.4rem 1.5rem 1.8rem;
  margin-bottom: 1.4rem;
  border-radius: 20px;
  background:
    radial-gradient(900px 240px at 15% 0%, rgba(59,130,246,.12), transparent 60%),
    radial-gradient(700px 200px at 90% 100%, rgba(139,92,246,.10), transparent 60%),
    var(--pr-card-bg, #fff);
  border: 1px solid var(--pr-border);
  position: relative;
  overflow: hidden;
  /* two columns: text body + live architecture visual */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(280px, 36%, 420px));
  gap: 2rem;
  align-items: center;
}
.lp-hero-inner { max-width: 64ch; min-width: 0; }

/* ─────────── Living mini-architecture (right side of hero) ─────────── */
.lp-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.lp-arch {
  width: 100%;
  height: auto;
  max-width: 420px;
  max-height: 320px;
  overflow: visible;
}
.lp-arch-edge {
  fill: none;
  stroke: var(--lp-arch-edge);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.lp-arch-shape {
  fill: var(--pr-card-bg);
  stroke: var(--lp-arch-stroke);
  stroke-width: 1.5;
}
.lp-arch-db-top {
  stroke: var(--pr-c-blue);
  stroke-width: 1.6;
}
.lp-arch-label {
  font: 600 11px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  text-anchor: middle;
  fill: var(--heading-color);
}
.lp-arch-packet {
  fill: var(--pr-c-violet);
}

/* prefers-reduced-motion: keep the static diagram, drop the packets */
@media (prefers-reduced-motion: reduce) {
  .lp-arch-packet { display: none; }
}

.lp-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(139,92,246,.10));
  color: var(--pr-c-violet);
  border: 1px solid rgba(139,92,246,.25);
  margin-bottom: 1rem;
}

.lp-title {
  margin: 0 0 .9rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--heading-color);
}

.lp-subtitle {
  margin: 0 0 1.3rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--pr-text-muted);
  max-width: 58ch;
}

.lp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 1.8rem;
  font-size: .9rem;
  color: var(--pr-text-muted);
}
.lp-hero-meta strong {
  display: inline-block;
  margin-right: .35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -.01em;
}

/* ─────────── Bento grid ─────────── */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 1rem;
  margin: 0;
}

.lp-tile {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.3rem;
  background: var(--pr-card-bg, #fff);
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  text-decoration: none !important;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
a.lp-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--pr-card-shadow-hover);
}

/* (Accent strips removed from every tile — the radial gradient inside
   the hero, the pulsing 'Start here' eyebrow, and the per-tile hover
   borders below already do the differentiation work.) */

/* ── Tile placements (6-col desktop) ── */
.lp-tile-hero       { grid-column: span 4; grid-row: span 2; }
.lp-tile-sd         { grid-column: span 2; }
.lp-tile-de         { grid-column: span 2; }
.lp-tile-concepts   { grid-column: span 2; }
.lp-tile-posts-num  { grid-column: span 2; }
.lp-tile-latest     { grid-column: span 2; }

/* ── Accents ── */
.lp-tile-hero {
  --lp-accent: linear-gradient(90deg, var(--pr-c-blue), var(--pr-c-violet));
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(139,92,246,.10), transparent 60%),
    radial-gradient(500px 220px at 0% 100%, rgba(59,130,246,.10), transparent 60%),
    var(--pr-card-bg, #fff);
}

a.lp-tile-sd:hover        { border-color: rgba(59,130,246,.45); }
a.lp-tile-de:hover        { border-color: rgba(16,185,129,.45); }
a.lp-tile-concepts:hover  { border-color: rgba(139,92,246,.45); }
a.lp-tile-posts-num:hover { border-color: rgba(245,158,11,.45); }

/* ── Hero tile content ── */
.lp-tile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pr-c-violet);
  margin-bottom: .9rem;
}
.lp-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pr-c-violet);
  box-shadow: 0 0 0 0 rgba(139,92,246,.6);
  animation: lp-pulse 2s ease-out infinite;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(139,92,246,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(139,92,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}
.lp-tile-title {
  margin: 0 0 .7rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--heading-color);
}
.lp-tile-desc {
  margin: 0 0 1.4rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--pr-text-muted);
  max-width: 52ch;
}
.lp-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: auto;
}
.lp-mini-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  background: var(--pr-chip-bg, rgba(99,102,241,.06));
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  transition: background .18s ease, transform .18s ease;
}
.lp-tile-hero:hover .lp-mini-card {
  background: rgba(99,102,241,.12);
}
.lp-mini-emoji { font-size: 1.4rem; line-height: 1; }
.lp-mini-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}
.lp-mini-meta {
  font-size: .75rem;
  color: var(--pr-text-muted);
  margin-top: .1rem;
}
.lp-mini-arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--pr-text-muted);
  transition: transform .18s ease;
}
.lp-tile-hero:hover .lp-mini-arrow { transform: translateX(3px); }

/* ── Stat-style tiles (SD / DE / Concepts / Posts) ── */
.lp-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .9rem;
}
.lp-tile-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--pr-chip-bg, rgba(120,120,120,.08));
  /* Slightly darker than --pr-text-muted so the badge clears WCAG AA
     contrast (~5.8:1 on the card surface) without going as loud as
     --heading-color. Keeps the badge reading as quiet metadata. */
  color: #4b5563;
  border: 1px solid var(--pr-border);
  flex-shrink: 0;
}
[data-mode="dark"] .lp-tile-badge { color: #d1d5db; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) .lp-tile-badge { color: #d1d5db; }
}
.lp-tile-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--heading-color);
}
.lp-tile-tag {
  margin: 0 0 1.2rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--pr-text-muted);
  flex-grow: 1;
}
.lp-tile-foot {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  padding-top: .9rem;
  border-top: 1px solid var(--pr-border);
}
.lp-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--heading-color);
  line-height: 1;
}
.lp-stat-lbl {
  font-size: .8rem;
  color: var(--pr-text-muted);
}
.lp-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--pr-text-muted);
  transition: transform .18s ease;
}
a.lp-tile:hover .lp-arrow { transform: translateX(3px); }

/* ── Latest writing tile ── */
.lp-tile-latest .lp-tile-head {
  margin-bottom: .4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--pr-border);
}
.lp-tile-all {
  /* Neutral heading colour matches the rest of the site language
     (homepage footer links use the same pattern) instead of dropping
     a teal accent that doesn't appear anywhere else on the tile.
     Underline-on-hover keeps interactivity obvious without colour. */
  font-size: .82rem;
  font-weight: 600;
  color: var(--heading-color);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.lp-tile-all:hover {
  text-decoration: none;
  border-bottom-color: currentColor;
}
.lp-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-post-item + .lp-post-item {
  border-top: 1px dashed var(--pr-border);
}
.lp-post-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem 0;
  text-decoration: none;
  color: inherit;
}
.lp-post-date {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pr-text-muted);
}
.lp-post-title {
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--heading-color);
  transition: color .15s ease;
}
.lp-post-link:hover .lp-post-title { color: var(--pr-c-teal); }

/* ── Combined footer card (About + LinkedIn) ──
   Quiet, professional, lighter than the bento tiles above. One card,
   two halves divided by a vertical rule on desktop and a horizontal
   rule when stacked on phone. No gradient, no accent strip, no hover
   lift on the card itself. */
.lp-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem 1.6rem;
  background: var(--pr-card-bg);
  border: 1px solid var(--pr-border);
  border-radius: 16px;
}
.lp-footer-half {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lp-footer-divider {
  width: 1px;
  align-self: stretch;
  background: var(--pr-border);
}
.lp-footer-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pr-text-muted);
  margin-bottom: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.lp-footer-eyebrow i { color: var(--heading-color); opacity: .55; font-size: .85rem; }
.lp-footer-name {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}
.lp-footer-tag {
  margin: 0 0 .85rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--pr-text-muted);
}
.lp-footer-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--heading-color);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.lp-footer-link:hover {
  color: var(--heading-color);
  border-bottom-color: currentColor;
  text-decoration: none;
}

/* ─────────── Responsive ─────────── */
@media (max-width: 991px) {
  .lp-bento { grid-template-columns: repeat(4, 1fr); }
  .lp-tile-hero      { grid-column: span 4; grid-row: span 1; }
  .lp-tile-sd        { grid-column: span 2; }
  .lp-tile-de        { grid-column: span 2; }
  .lp-tile-concepts  { grid-column: span 2; }
  .lp-tile-posts-num { grid-column: span 2; }
  .lp-tile-latest    { grid-column: span 4; }
  /* stack the footer card on tablets too if it gets cramped */
  .lp-footer { grid-template-columns: 1fr; gap: 1.2rem; }
  .lp-footer-divider { width: 100%; height: 1px; }
  /* trim the hero visual a touch on tablets */
  .lp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(240px, 32%, 320px));
    gap: 1.4rem;
  }
}

@media (max-width: 767px) {
  /* stack hero: text first, visual below at full width */
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .lp-hero-visual { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 575px) {
  .lp-hero { padding: 1.8rem 1.2rem 1.4rem; border-radius: 14px; }
  /* hide the architecture visual on phones for a clean text-only hero */
  .lp-hero-visual { display: none; }
  .lp-bento { grid-template-columns: 1fr; gap: .85rem; }
  .lp-tile,
  .lp-tile-hero,
  .lp-tile-sd,
  .lp-tile-de,
  .lp-tile-concepts,
  .lp-tile-posts-num,
  .lp-tile-latest { grid-column: span 1; grid-row: auto; }
  .lp-mini-cards { grid-template-columns: 1fr; }
  .lp-footer { padding: 1.2rem 1.25rem; }
  .lp-hero-meta { gap: .8rem 1.3rem; }
}

/* ─────────── Dark mode gradient boosts ─────────── */
/* Cards already pick up --pr-card-bg via the token block; these rules
   just brighten the radial washes so they still read in dark mode. */
[data-mode="dark"] .lp-tile-hero {
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(500px 220px at 0% 100%, rgba(59,130,246,.20), transparent 60%),
    var(--pr-card-bg);
}
[data-mode="dark"] .lp-hero {
  background:
    radial-gradient(900px 240px at 15% 0%, rgba(59,130,246,.20), transparent 60%),
    radial-gradient(700px 200px at 90% 100%, rgba(139,92,246,.18), transparent 60%),
    var(--pr-card-bg);
}
[data-mode="dark"] .lp-eyebrow {
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
  border-color: rgba(139,92,246,.35);
  color: #c4b5fd;
}
[data-mode="dark"] .lp-tile-eyebrow { color: #c4b5fd; }
[data-mode="dark"] .lp-mini-card { background: rgba(139,92,246,.10); }
[data-mode="dark"] .lp-tile-hero:hover .lp-mini-card { background: rgba(139,92,246,.18); }

@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) .lp-tile-hero {
    background:
      radial-gradient(600px 200px at 100% 0%, rgba(139,92,246,.20), transparent 60%),
      radial-gradient(500px 220px at 0% 100%, rgba(59,130,246,.20), transparent 60%),
      var(--pr-card-bg);
  }
  :root:not([data-mode="light"]) .lp-hero {
    background:
      radial-gradient(900px 240px at 15% 0%, rgba(59,130,246,.20), transparent 60%),
      radial-gradient(700px 200px at 90% 100%, rgba(139,92,246,.18), transparent 60%),
      var(--pr-card-bg);
  }
  :root:not([data-mode="light"]) .lp-eyebrow {
    background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18));
    border-color: rgba(139,92,246,.35);
    color: #c4b5fd;
  }
  :root:not([data-mode="light"]) .lp-tile-eyebrow { color: #c4b5fd; }
  :root:not([data-mode="light"]) .lp-mini-card { background: rgba(139,92,246,.10); }
  :root:not([data-mode="light"]) .lp-tile-hero:hover .lp-mini-card { background: rgba(139,92,246,.18); }
}

/* (Old standalone .lp-follow LinkedIn CTA removed; merged into
   the .lp-footer card above the responsive block.) */
