/* Category pages (/products/<slug>/).

   Static pages, not Framer ones: they show a category's product types as the
   same cards the home page's Products section uses (measured from Framer's
   layout: 18px corners, a white title bar with three grey dots, the photo in
   a white 4px frame with the white Inara logo in its corner), without the
   hover effect. Built by tools/build-product-pages.py. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/framer/UjlFhCnUjxhNfep4oYBPqnEssyo.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/framer/yDtI2UI8XcEg1W2je9XPN3Noo.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nave";
  src: url("/assets/fonts/nave-font-family/nave-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ip-ink: rgb(10, 10, 10);
  --ip-muted: rgba(10, 10, 10, 0.6);
  --ip-page: rgb(245, 245, 245);
  --ip-card: rgb(255, 255, 255);
  --ip-dot: rgb(231, 231, 231);
  --ip-dark: rgb(18, 18, 18);
  --ip-gutter: 36px;
}

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

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

body {
  margin: 0;
  background: var(--ip-page);
  color: var(--ip-ink);
  font-family: "Inter", "Inter Placeholder", system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Header: the home page's logo (turning knot + wordmark) and nav, pointing
   at the home page's sections. */
.ip-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px var(--ip-gutter);
  background: var(--ip-page);
}

.ip-logo {
  position: relative;
  display: block;
  width: 142px;
  height: 38px;
  flex: none;
}

.ip-logo::before,
.ip-logo::after {
  content: "";
  position: absolute;
  top: 50%;
}

.ip-logo::before {
  left: 0;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  background: url("/assets/images/inara/inara-icon.png") center / contain no-repeat;
  animation: ip-logo-spin 8s linear infinite;
}

.ip-logo::after {
  left: 46px;
  width: 96px;
  height: 35px;
  margin-top: -17.5px;
  background: url("/assets/images/inara/inara-logo-black.svg") left center / contain no-repeat;
}

@keyframes ip-logo-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ip-logo::before {
    animation: none;
  }
}

.ip-nav {
  display: flex;
  flex: 1;
  justify-content: space-around;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.ip-nav a:hover,
.ip-footer a:hover {
  opacity: 0.6;
}

.ip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 50px;
  background: var(--ip-ink);
  color: var(--ip-card);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ip-button:focus-visible,
.ip-nav a:focus-visible,
.ip-back:focus-visible,
.ip-others a:focus-visible,
.ip-logo:focus-visible {
  outline: 2px solid var(--ip-ink);
  outline-offset: 3px;
}

/* Intro: count, big heading and description, laid out like the home page's
   "Products." header. */
.ip-intro {
  padding: 48px var(--ip-gutter) 64px;
}

.ip-back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--ip-muted);
  font-size: 16px;
  letter-spacing: -0.04em;
}

.ip-back:hover {
  color: var(--ip-ink);
}

.ip-intro-top {
  display: grid;
  grid-template-columns: 1fr minmax(0, 340px);
  align-items: end;
  gap: 24px 48px;
}

.ip-count {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.ip-intro h1 {
  margin: 0;
  font-family: "Nave", serif;
  font-weight: 700;
  font-size: clamp(56px, 10vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.ip-desc {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

/* Product cards. */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 0 var(--ip-gutter);
  margin: 0;
  list-style: none;
}

.ip-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 18px;
  background: var(--ip-card);
}

.ip-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.ip-dots {
  display: flex;
  gap: 3px;
  flex: none;
}

.ip-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ip-dot);
}

.ip-card-media {
  padding: 4px;
  border-radius: 18px;
  background: var(--ip-card);
}

.ip-card-photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 674 / 491;
  background: var(--ip-dot);
}

.ip-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Framer's "blackout" layer: a light shade so the white logo reads on any
   photo. */
.ip-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.15);
}

.ip-card-photo::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 25%;
  aspect-ratio: 1000 / 304;
  background: url("/assets/images/brand/logo-full-white.png") left top / contain no-repeat;
}

/* Closing call to action and the other categories. */
.ip-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 4px var(--ip-gutter) 0;
  padding: 40px;
  border-radius: 18px;
  background: var(--ip-card);
}

.ip-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.ip-cta p {
  max-width: 520px;
  margin: 0;
  color: var(--ip-muted);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.ip-others {
  padding: 64px var(--ip-gutter) 96px;
}

.ip-others h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ip-muted);
}

.ip-others ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip-others a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--ip-card);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ip-others a:hover {
  background: var(--ip-ink);
  color: var(--ip-card);
}

.ip-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 32px var(--ip-gutter);
  background: var(--ip-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.ip-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Tablet: Framer's own breakpoint. */
@media (max-width: 1199.98px) {
  :root {
    --ip-gutter: 24px;
  }

  .ip-nav {
    justify-content: center;
    gap: 28px;
    font-size: 15px;
  }
}

/* Phone: Framer's own breakpoint. One card per row, nav reduced to the
   call to action. */
@media (max-width: 809.98px) {
  :root {
    --ip-gutter: 16px;
  }

  .ip-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .ip-nav {
    display: none;
  }

  .ip-button {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .ip-intro {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .ip-back {
    margin-bottom: 28px;
  }

  .ip-intro-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ip-grid {
    grid-template-columns: 1fr;
  }

  .ip-card-head {
    padding: 16px 20px;
  }

  .ip-card-photo::after {
    top: 16px;
    left: 16px;
    width: 36%;
  }

  .ip-cta {
    padding: 28px 24px;
  }

  .ip-cta .ip-button {
    width: 100%;
  }
}

/* A product opened from a home page pill (/products/<slug>/#<product>): land
   below the sticky header and mark the card briefly. */
.ip-card {
  scroll-margin-top: 96px;
}

.ip-card:target .ip-card-head {
  animation: ip-target 2.4s ease;
}

@keyframes ip-target {
  0%,
  60% {
    background: var(--ip-ink);
    color: var(--ip-card);
  }
}
