@font-face {
  font-family: "Pixelcxx";
  src: url("fonts/pixelcxx.otf.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --nav-hover: rgb(250, 73, 82);
  --radius: 0;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: #000000;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--nav-hover);
  text-decoration-thickness: 2px;
  padding: 0;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a:hover {
  background: var(--nav-hover);
  color: #ffffff;
  text-decoration-color: var(--nav-hover);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.rich-text img,
.responsive-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
}

/* Nav */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.nav-name {
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: clamp(4rem, 5vw, 6rem);
  line-height: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0em;
  text-transform: none !important;
  font-variant: normal;
  /* color: var(--nav-hover); */
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.nav-separator {
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}

.nav-link {
  padding: 0;
  border-radius: 0;
  /* border: 1px solid transparent; */
  color: var(--muted);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: transparent;
  color: #ffffff;
  background: var(--nav-hover);
  text-decoration: none;
}

.nav-link--primary {
  border-color: transparent;
  background: #ffe4ec;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 3rem 0 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Global heading font */
h1,
h2,
h3,
.section-subtitle {
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

body[data-section="about"] .section-subtitle,
body[data-section="about"] .rich-text h1,
body[data-section="about"] .rich-text h2,
body[data-section="about"] .rich-text h3 {
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

body[data-section="about"] .rich-text h3 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 600;
}

body[data-section="curatorial"] .section-subtitle,
body[data-section="curatorial"] .rich-text h1,
body[data-section="curatorial"] .rich-text h2,
body[data-section="curatorial"] .rich-text h3 {
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* Hero */

.hero {
  padding: 2.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.7fr);
  gap: 2rem;
  align-items: start;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 650;
  margin: 0 0 0.75rem;
}

.hero-highlight {
  color: var(--nav-hover);
  line-height: 1.1;
  font-style: italic;
  letter-spacing: 0.00em;
}

.hero-lede {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 40rem;
}

.hero-note {
  font-size: 1rem;
  color: #000000;
  margin: 0 0 1rem;
  max-width: none;
}

.hero-heading {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

/* Research page: keep hero lede black for readability */
body[data-section="research"] .hero-lede {
  color: #000000;
}

/* Home hero: make lead text black */
body[data-section="home"] .hero-lede,
body[data-section="home"] .hero-heading {
  color: #000000;
}

body[data-section="home"] .hero-heading.hero-heading--accent {
  color: var(--nav-hover);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.about-column {
  min-width: 0;
}

.about-portrait {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.about-portrait img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.portrait-figure {
  margin: 0;
  text-align: right;
  position: relative;
}

.portrait-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--nav-hover);
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  text-align: right;
  padding-top: 0.35rem;
}

.about-long {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .about-portrait img {
    max-width: 260px;
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta-item {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-feature {
  background: var(--bg-alt);
  padding: 1rem 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.hero-feature-image {
  background: linear-gradient(135deg, #ff8aa5, #ffe4ec);
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-feature-body {
  display: grid;
  gap: 0.35rem;
}

.hero-feature-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Pixelcxx", Arial, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

.hero-feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.hero-feature-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  border: none;
  color: #000000;
  background: #ffe4ec;
  font-size: 0.85rem;
  text-decoration: none;
}

.hero-feature-pill:hover,
.hero-feature-pill:focus-visible {
  color: #000000;
  background: #ffd2e0;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.btn:hover {
  background: #f9fafb;
  text-decoration: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.hero-card {
  border-radius: var(--radius);
  border: none;
  background: var(--bg-alt);
  padding: 1rem 1rem 1.1rem;
  font-size: 0.9rem;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.hero-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card-label {
  font-weight: 500;
  color: var(--text);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  border-radius: var(--radius);
  border: none;
  background: var(--bg-alt);
  padding: 1rem 1rem 1.1rem;
  font-size: 0.9rem;
}

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-list li + li {
  margin-top: 0.7rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.7rem;
}

.item-title {
  font-weight: 500;
  display: block;
}

.item-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Pills */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f9fafb;
  color: var(--muted);
}

/* Filter bar (year, type, tags) */

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-group--tags {
  width: 100%;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-button {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #ffffff;
  cursor: pointer;
  color: var(--muted);
}

.tag-button.active {
  border-color: transparent;
  background: #ffe4ec;
  color: var(--muted);
}

.tag-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.browse-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.browse-card {
  border-radius: var(--radius);
  border: none;
  background: var(--bg-alt);
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}

.browse-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.browse-card-title {
  font-weight: 500;
}

.browse-card-type {
  font-size: 0.78rem;
  color: var(--muted);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.practice-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.practice-card-media {
  background: #f3f4f6;
  overflow: hidden;
}

.practice-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.practice-card-placeholder {
  width: 100%;
  height: 100%;
}

.practice-card-body {
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.practice-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.practice-card-title {
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.3;
}

.practice-card-title a {
  color: inherit;
}

.practice-card-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.practice-card .pill-row {
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0;
}

.practice-card .pill {
  background: #f3f4f6;
  color: var(--muted);
}

.practice-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.practice-card-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.practice-card-separator {
  color: var(--muted);
  white-space: nowrap;
}

.practice-card-meta .pill-row {
  flex: 1 1 auto;
  min-width: 0;
}

.practice-card-media.no-image {
  min-height: 220px;
}

.practice-card-media.has-image img {
  display: block;
}

.practice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-hover);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.practice-card.is-link-hover::after {
  opacity: 0.14;
}

@media (max-width: 820px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact-card {
  border-radius: var(--radius);
  border: none;
  background: #ffe4ec;
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contact-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  border: none;
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  box-shadow: none;
}

.contact-pill span {
  font-size: 0.75rem;
  color: var(--muted);
}

.contact-pill:hover,
.contact-pill:focus-visible {
  background: #f1f5f9;
  color: var(--muted);
  box-shadow: none;
  text-decoration: none;
}

footer {
  padding-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 1rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .nav {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }

  .nav-links {
    row-gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 1.15rem 1.15rem 1.25rem;
    margin-top: 1.2rem;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-mode {
    width: fit-content;
  }

  .tag-list {
    gap: 0.5rem;
    padding: 0.25rem 0;
  }

  .mode-button,
  .tag-button {
    padding: 0.35rem 0.85rem;
  }

  .pill {
    padding: 0.3rem 0.8rem;
  }

  .browse-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.browse-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.browse-main {
  flex: 3 1 70%;
}

.browse-sidebar {
  flex: 1 1 28%;
}

@media (max-width: 900px) {
  .browse-layout {
    flex-direction: column;
  }

  .browse-sidebar {
    width: 100%;
  }
}


/* Any / All mode toggle */

.filter-mode {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
}

.mode-button {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border: none;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.mode-button + .mode-button {
  border-left: 1px solid var(--border);
}

.mode-button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
