/* page.css — projects empty state, contact form, legal prose */

/* ---- shared empty state (projects, and anywhere else that needs one) ---- */
.empty { margin-top: var(--section); }
.empty__text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
}
.empty__hint { margin-top: .85rem; color: var(--muted); }

/* ---- projects ---- */
.projectlist {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
}
/* The whole card is one link to the project's own page (/projects/<slug>). */
.projectcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .3s ease;
}
.projectcard:hover { border-color: var(--accent); color: var(--text); }
.projectcard__media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.projectcard__media img { width: 100%; height: 100%; object-fit: cover; }
.projectcard__body { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; flex: 1 1 auto; }
.projectcard__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.projectcard__title {
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.projectcard__summary {
  margin-top: .5rem;
  font-family: var(--font-desc);
  font-size: .85rem;
  line-height: 1.65;
  color: var(--muted);
}
/* Summary is rich text (paragraphs, bold, lists); keep it compact on the card. */
.projectcard__summary p, .projectcard__summary ul, .projectcard__summary ol { margin: 0 0 .5em; }
.projectcard__summary > :last-child { margin-bottom: 0; }
.projectcard__summary ul, .projectcard__summary ol { padding-left: 1.2em; }
.projectcard__summary h2, .projectcard__summary h3, .projectcard__summary h4 { margin: .4em 0 .2em; font-size: .9rem; font-weight: 700; color: var(--text); }
.projectcard__more {
  margin-top: auto;
  padding-top: .9rem;
  font-family: var(--font-desc);
  font-size: .8rem;
  color: var(--accent);
}
.projectcard:hover .projectcard__more { color: var(--accent-hover); }

/* ---- link groups (contact page quick-links) ---- */
.linkgroups {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.linkgroup__label {
  margin: 0 0 .75rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.linkgroup__list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.linkcard {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .3s ease, background-color .3s ease;
}
.linkcard:hover { border-color: var(--accent); background: var(--surface); }

.linkcard--accent { border-color: var(--accent); }
.linkcard--accent .linkcard__icon,
.linkcard--accent .linkcard__title { color: var(--accent); }

.linkcard__icon { flex: none; display: flex; color: var(--muted); }
.linkcard__icon svg { width: 18px; height: 18px; }

.linkcard__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.linkcard__title { font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: var(--text); }
.linkcard__sub {
  font-family: var(--font-desc);
  font-size: .78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- compose modal (contact page's email linkcards) --------------------
   Same backdrop treatment as .cmdk-backdrop in global.css, for a consistent
   "a dialog just opened" feel site-wide. */
.composeModal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.composeModal-backdrop[hidden] { display: none; }

.composeModal {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.composeModal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.composeModal__title { font-family: var(--font-mono); font-size: .95rem; color: var(--text); }
.composeModal__sub { margin-top: .3rem; font-family: var(--font-desc); font-size: .8rem; color: var(--muted); }
.composeModal__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.composeModal__close:hover { color: var(--text); border-color: var(--accent); }

.composeModal__form { gap: 1.1rem; }

.linkcard__ext { flex: none; display: flex; color: var(--muted); }
.linkcard__ext svg { width: 14px; height: 14px; }

/* ---- contact page spacing (the reusable .field/.contact__form styles used
   here AND on work-detail.php's review form now live in global.css) ---- */
.contact { margin-top: var(--section); }

/* ---- legal prose ---- */
.prose { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.prose__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.prose__updated {
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose h2 {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
}
.prose p {
  margin-top: 1rem;
  color: var(--text);
  font-family: var(--font-desc);
  font-size: .92rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.prose p a { text-decoration: underline; text-underline-offset: 2px; }
.prose code {
  font-family: var(--font-desc);
  font-size: .78em;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .1em .4em;
}
