/* Modern minimal overrides applied on top of the kodama-theme Tailwind build. */

@import url("https://rsms.me/inter/inter.css");

:root {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg-subtle: #fafafa;
}

html {
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
.font-sans {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--ink);
}

@supports (font-variation-settings: normal) {
  body,
  .font-sans {
    font-family: "Inter var", "Inter", ui-sans-serif, system-ui, sans-serif !important;
  }
}

body.bg-white {
  background-color: var(--bg-subtle);
}

/* Headings: tighter tracking and better hierarchy */
h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1.text-3xl,
h1.text-4xl,
h1.sm\:text-5xl {
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* Body copy */
.prose {
  color: #334155;
  line-height: 1.7;
}

/* Replace heavy drop shadows on cards with subtle borders */
.shadow-lg,
.hover\:shadow-xl:hover,
.shadow-xl {
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04) !important;
  border: 1px solid var(--line);
  transition: border-color 200ms ease, box-shadow 200ms ease,
    transform 200ms ease;
}

.shadow-lg:hover,
.hover\:shadow-xl:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgb(15 23 42 / 0.06) !important;
  transform: translateY(-1px);
}

/* Refine accent color used by links and headings inside cards */
.text-blue-600 {
  color: var(--accent) !important;
}
.hover\:text-blue-800:hover {
  color: var(--accent-hover) !important;
}
.border-blue-600 {
  border-color: var(--accent) !important;
}

/* Pill buttons (pdf/slides/url) — a touch softer */
a.rounded-md.border-blue-600,
a.rounded-md[class*="border-blue-600"] {
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  background-color: rgb(79 70 229 / 0.06);
  transition: background-color 200ms ease, color 200ms ease;
}
a.rounded-md.border-blue-600:hover {
  background-color: rgb(79 70 229 / 0.12);
}

/* Nav: cleaner separation */
nav#header {
  background-color: rgb(255 255 255 / 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

nav#header a.text-sky-600 {
  color: var(--accent) !important;
}

/* Avatar: soft ring instead of bare circle */
img.rounded-full {
  box-shadow: 0 0 0 6px #ffffff, 0 0 0 7px var(--line),
    0 12px 24px rgb(15 23 42 / 0.06);
}

/* Footer: subtler */
footer.bg-white {
  background-color: transparent;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

/* Section index alternating bands → use a single subtle band */
.bg-gray-50 {
  background-color: #f5f5f7 !important;
}

/* Software/publication card descriptions */
.text-slate-400 {
  color: var(--muted) !important;
}

/* Utility classes missing from the compiled Tailwind build */
.justify-end {
  justify-content: flex-end;
}
.ml-2 {
  margin-left: 0.5rem;
}
