/* Portfolio previews use the product screenshot without recoloring its UI. */
.ledgerly-feature {
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 17px;
  background: var(--surface-raised);
}
.ledgerly-feature + .featured-work {
  margin-top: 25px;
}
.ledgerly-card-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 25px 30px 23px;
  background:
    radial-gradient(
      ellipse at 70% 28%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 64%
    ),
    linear-gradient(145deg, var(--surface), var(--bg));
}
.ledgerly-card-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  mask-image: linear-gradient(145deg, black, transparent 75%);
  pointer-events: none;
}
.ledgerly-card-visual-top,
.ledgerly-card-visual-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font: 400 8px/1.7 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ledgerly-card-visual-top
  > span:last-child:not(.ledgerly-card-interface-label) {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
}
.ledgerly-card-browser {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-block: 29px 25px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 11px;
  background: var(--surface-raised);
  box-shadow:
    0 25px 38px -20px color-mix(in srgb, var(--text) 25%, transparent),
    0 0 0 5px color-mix(in srgb, var(--bg) 42%, transparent);
  transform: perspective(1200px) rotateX(3deg) rotateY(-4deg);
  transform-origin: 50% 60%;
}
.ledgerly-card-browser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--muted);
  font: 400 8px/1.5 var(--font-mono);
}
.ledgerly-card-browser-dots {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.ledgerly-card-browser-dots > i {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 50%;
}
.ledgerly-card-browser-top > svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.ledgerly-card-screen {
  aspect-ratio: 1.46;
  overflow: hidden;
  background: var(--surface);
}
.ledgerly-card-screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}
.ledgerly-card-visual-footer {
  font-size: 7px;
}
.ledgerly-card-visual-footer > span > span {
  margin-inline: 5px;
  color: var(--accent);
}
.ledgerly-feature .ledgerly-card-copy {
  justify-content: center;
  padding: 34px;
}
.ledgerly-feature .work-heading .eyebrow {
  max-width: 190px;
  font-size: 8px;
  line-height: 1.7;
}
.ledgerly-feature .circle-arrow {
  flex-shrink: 0;
}
.ledgerly-feature .ledgerly-card-copy > h3 {
  margin-top: 24px;
  font-size: clamp(32px, 3.2vw, 44px);
  letter-spacing: -0.05em;
}
.ledgerly-feature .ledgerly-card-copy > p {
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.35;
}
.ledgerly-feature .work-description {
  max-width: 320px;
  font-size: 12px;
  line-height: 1.85;
}
.ledgerly-feature .ledgerly-card-copy > .text-link {
  margin-top: 4px;
  padding-top: 25px;
  font-size: 11px;
}
.ledgerly-feature-project {
  padding-bottom: 59px;
  margin-bottom: 65px;
  border-bottom: 1px solid var(--line);
}
.ledgerly-card-visual-link {
  display: block;
  border-radius: 15px;
  outline-offset: 7px;
}
.ledgerly-card-visual-large {
  padding: 27px 42px 25px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 15px;
}
.ledgerly-card-visual-large .ledgerly-card-visual-top,
.ledgerly-card-visual-large .ledgerly-card-visual-footer {
  font-size: 9px;
}
.ledgerly-card-interface-label {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  text-transform: none;
  white-space: nowrap;
}
.ledgerly-card-visual-large .ledgerly-card-browser {
  max-width: 1010px;
  margin: 35px auto 32px;
  transform: perspective(1800px) rotateX(3deg) rotateY(-2deg);
}
.ledgerly-card-visual-large .ledgerly-card-browser-top {
  height: 40px;
  font-size: 10px;
  padding-inline: 18px;
}
.ledgerly-card-visual-large .ledgerly-card-screen {
  aspect-ratio: 1.9;
}
.ledgerly-card-open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  text-transform: none;
}
.ledgerly-card-open > svg {
  width: 18px;
  height: 18px;
}
.ledgerly-card-summary {
  padding-top: 33px;
}
.ledgerly-card-tagline {
  margin-top: 17px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -0.035em;
}
.ledgerly-card-summary .ledgerly-card-capabilities {
  margin-bottom: 22px;
  font-size: 11px;
  line-height: 1.8;
}
.ledgerly-card-capabilities > span {
  margin-inline: 6px;
  color: var(--accent);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="paused"]) .ledgerly-card-browser {
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  :root:not([data-motion="paused"])
    .ledgerly-feature:hover
    .ledgerly-card-browser,
  :root:not([data-motion="paused"])
    .ledgerly-card-visual-link:hover
    .ledgerly-card-browser {
    transform: perspective(1400px) translateY(-4px) rotateX(0) rotateY(0);
  }
}
:root[data-motion="paused"] .ledgerly-card-browser {
  transform: none;
  transition: none;
}
@media (max-width: 1000px) {
  .ledgerly-feature {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  }
  .ledgerly-card-visual {
    padding-inline: 23px;
  }
  .ledgerly-feature .ledgerly-card-copy {
    padding: 25px;
  }
  .ledgerly-feature .ledgerly-card-copy > h3 {
    font-size: 34px;
  }
  .ledgerly-feature .ledgerly-card-copy > p {
    font-size: 23px;
  }
  .ledgerly-feature .work-description {
    font-size: 11px;
  }
  .ledgerly-card-visual-large {
    padding-inline: 30px;
  }
}
@media (max-width: 700px) {
  .ledgerly-feature {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 13px;
  }
  .ledgerly-card-visual {
    padding: 19px 19px 18px;
  }
  .ledgerly-card-visual-top {
    gap: 12px;
    font-size: 7px;
  }
  .ledgerly-card-browser {
    margin-block: 23px 20px;
    border-radius: 8px;
    transform: none;
  }
  .ledgerly-card-browser-top {
    height: 29px;
    padding-inline: 10px;
    gap: 8px;
    font-size: 7px;
  }
  .ledgerly-card-screen {
    aspect-ratio: 1.3;
  }
  .ledgerly-card-visual-footer {
    gap: 10px;
    font-size: 6px;
  }
  .ledgerly-card-visual-footer > span > span {
    margin-inline: 3px;
  }
  .ledgerly-feature .ledgerly-card-copy {
    padding: 26px;
  }
  .ledgerly-feature .ledgerly-card-copy > h3 {
    margin-top: 18px;
    font-size: 36px;
  }
  .ledgerly-feature .ledgerly-card-copy > p {
    font-size: 24px;
  }
  .ledgerly-feature .work-description {
    max-width: none;
    font-size: 12px;
  }
  .ledgerly-feature + .featured-work {
    margin-top: 20px;
  }
  .ledgerly-feature-project {
    padding-bottom: 39px;
    margin-bottom: 41px;
  }
  .ledgerly-card-visual-large {
    padding: 19px 17px 17px;
  }
  .ledgerly-card-visual-large .ledgerly-card-visual-top,
  .ledgerly-card-visual-large .ledgerly-card-visual-footer {
    font-size: 7px;
  }
  .ledgerly-card-interface-label {
    padding: 4px 7px;
    font-size: 6px;
  }
  .ledgerly-card-visual-large .ledgerly-card-browser {
    margin-block: 24px 21px;
    transform: none;
  }
  .ledgerly-card-visual-large .ledgerly-card-browser-top {
    height: 31px;
    padding-inline: 10px;
    font-size: 7px;
  }
  .ledgerly-card-visual-large .ledgerly-card-screen {
    aspect-ratio: 1.15;
  }
  .ledgerly-card-open {
    gap: 6px;
  }
  .ledgerly-card-open > svg {
    width: 14px;
    height: 14px;
  }
  .ledgerly-card-tagline {
    font-size: 22px;
    margin-top: 12px;
  }
  .ledgerly-card-summary .project-summary-copy > p {
    font-size: 13px;
  }
  .ledgerly-card-summary .ledgerly-card-capabilities {
    font-size: 11px;
  }
}
@media (max-width: 359px) {
  .ledgerly-card-visual-large .ledgerly-card-visual-top {
    align-items: start;
    gap: 8px;
    font-size: 6px;
  }
  .ledgerly-card-visual-large .ledgerly-card-visual-footer {
    flex-wrap: wrap;
    gap: 7px;
  }
  .ledgerly-feature .ledgerly-card-copy {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ledgerly-card-browser,
  .ledgerly-card-visual-large .ledgerly-card-browser {
    transform: none;
    transition: none;
  }
}
