/* Shared styles for the project pages (/projects/<name>/) */

/* Intro */

.project-intro {
  padding-top: 40px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.project-back {
  padding: 0;
}

.project-eyebrow {
  font-size: 14px;
}

.project-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.project-lead {
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Details */

.project-details {
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--radius-large);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 14px;
}

.project-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.project-fact dt {
  color: var(--color-copper);
}

.project-fact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.project-fact a {
  color: var(--color-teal);
}

.project-subtitle {
  margin-top: 24px;
  font-size: 1.4rem;
}

/* One large image of the project. The whole image is shown, never cropped (except a wide photo). */
.project-visual {
  margin: 8px 0 0;
  padding: 32px;
  border-radius: var(--radius-large);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.project-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
}

/* A screenshot with its own background gets rounded corners and a shadow. */
.project-visual-screen img {
  border-radius: var(--radius-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* A photo fills the frame. */
.project-visual-photo {
  padding: 0;
}

.project-visual-photo img {
  width: 100%;
  max-height: none;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.project-visual .phone img {
  max-height: 520px;
}

@media (max-width: 600px) {
  .project-visual {
    padding: 16px;
  }

  .project-visual-photo {
    padding: 0;
  }
}

/* The Online planner of Lakender (projects/lakender). It lives in its own shadow root; the site only sets its accent. */
.project-planner-text {
  max-width: 40rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.project-planner {
  max-width: 720px;
  padding: 28px;
  border-radius: var(--radius-large);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.project-planner x-booking {
  --booking-accent: var(--color-copper);
  --booking-accent-text: var(--color-on-copper);
}

@media (max-width: 600px) {
  .project-planner {
    padding: 16px;
  }
}

.project-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-large);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13px;
}
