/* Page-specific theme for the FAIR & IOS case file.
   Overrides the CSS custom properties defined on .project-page in the
   shared /style.css, plus the few components this page needs that no
   other case file has: inline link treatment, hero link buttons, and
   the type specimen.

   Palette sampled from the screenshots in this folder:
     #57068C  NYU purple (FAIR header, buttons, toolkit tags)
     #F1CA4B  dark yellow (the "View Full PDF" button)
     #FFF2B7  light yellow (toolkit section headers in My Library)
     #F0E7F7  lavender (evidence-database cards) */

.project-page[data-theme="fairios"] {
  --proj-accent: #57068C;      /* NYU purple */
  --proj-accent-2: #F1CA4B;    /* dark yellow */
  --proj-accent-soft: #F0E7F7; /* lavender tint */
  --proj-ink: #1d1a22;         /* near-black with a faint violet cast */
}

.project-page[data-theme="fairios"] .project-main a {
  color: var(--proj-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-page[data-theme="fairios"] .project-main a:hover {
  color: var(--proj-ink);
}

/* Yellow doubles as the highlighter: the section pills get a yellow
   underline-bar, a nod to the IOS annotation toolbar. */
.project-page[data-theme="fairios"] .section-kicker {
  background: #FFF2B7;
  border-color: var(--proj-accent-2);
}

.project-page[data-theme="fairios"] .project-hero-figure img {
  object-position: center;
}

/* The screenshots are light-on-light UI, so give them a white mat
   instead of letting them melt into the page background. */
.project-page[data-theme="fairios"] .project-figure img {
  background: #ffffff;
}

/* ---- Hero links ---- */
.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.project-page[data-theme="fairios"] .project-links a.project-link-btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--proj-accent);
  color: #ffffff;
  font-family: "Rethink Sans", serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--proj-ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0px var(--proj-accent-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-page[data-theme="fairios"] .project-links a.project-link-btn:hover,
.project-page[data-theme="fairios"] .project-links a.project-link-btn:focus-visible {
  color: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--proj-accent-2);
}

.project-link-note {
  max-width: 340px;
  font-family: "Rethink Sans", serif;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--proj-ink);
}

/* ---- Type specimen (Cardo / Inter) ---- */
.type-specimen {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 26px 0 8px;
}

.type-specimen-card {
  flex: 1 1 280px;
  min-width: 0;
  padding: 20px 22px 22px;
  background: #ffffff;
  border: 1.5px solid var(--proj-ink);
  border-radius: 4px 14px 3px 12px / 12px 3px 14px 4px;
  box-shadow: 6px 6px 0px var(--proj-accent-soft);
}

.project-section .type-specimen p {
  max-width: none;
  margin: 0;
}

.project-section .type-specimen .type-specimen-label {
  margin-bottom: 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--proj-accent);
}

.project-section .type-specimen .type-specimen-cardo,
.project-section .type-specimen .type-specimen-inter {
  font-size: 4.2rem;
  line-height: 1;
}

.project-section .type-specimen .type-specimen-cardo {
  font-family: "Cardo", Georgia, serif;
  font-weight: 700;
}

.project-section .type-specimen .type-specimen-inter {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}

.project-section .type-specimen .type-specimen-cardo-line {
  margin-top: 12px;
  font-family: "Cardo", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.2;
}

.project-section .type-specimen .type-specimen-inter-line {
  margin-top: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* My Library / toolkit screenshots are tall-ish, so the horizontal
   scroller can run a little taller than the shared 280px default. */
.project-page[data-theme="fairios"] .photo-scroll-item img {
  height: 320px;
}

/* The shared scroller tilts each photo, so its corners dip into the
   caption's usual 10px margin; give captions a little more air. */
.project-page[data-theme="fairios"] .photo-scroll-item figcaption {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .project-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-page[data-theme="fairios"] .photo-scroll-item img {
    height: 240px;
  }

  .project-section .type-specimen .type-specimen-cardo,
  .project-section .type-specimen .type-specimen-inter {
    font-size: 3.2rem;
  }
}
