/* Mohammed Alnajjar — portfolio styles */

:root {
  --ink: #111111;
  --muted: #5E5E5E;
  --soft: #3D3D3D;
  --line: #D6D5D0;
  --bg: #FFFFFF;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--ink); }
a:hover { color: var(--muted); }

img { display: block; max-width: 100%; height: auto; background: #EBEAE6; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

.label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 40px;
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--ink);
}

.site-name {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-decoration: none;
}
.site-name span { font-weight: 400; }

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; }
.site-nav a { padding: 12px 0; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Home ---------- */

.intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
  padding: 56px 0 40px;
}
.intro p { margin: 0; }
.intro .lead { max-width: 720px; font-size: 26px; line-height: 1.35; letter-spacing: -0.01em; }
.intro .label { color: var(--muted); font-weight: 400; }

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px 32px;
  padding-bottom: 96px;
}

.work-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.work-card:hover img { opacity: .88; }
.work-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work-card .title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.work-card .year { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Page titles ---------- */

.page-title {
  margin: 0;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.back {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ---------- Two-column blocks (project text, details, info) ---------- */

.split { display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 32px 0 56px; }
.split > .side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.split > .main { flex: 2 1 480px; max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.split p { margin: 0; }
.statement { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.years { font-family: var(--mono); font-size: 15px; color: var(--muted); }

/* ---------- Project images ---------- */

.plates { display: flex; flex-direction: column; gap: 32px; }
.plates figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plates img { width: 100%; }
.plates figcaption { font-size: 14px; color: var(--muted); }
.plates .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

/* ---------- Lists (press, exhibitions, CV) ---------- */

.lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 64px;
  padding: 40px 0 64px;
  border-top: 1px solid var(--ink);
}
.lists .label { margin-bottom: 16px; }
.list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.list-item .small { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
a.list-item .big { text-decoration: underline; text-underline-offset: 4px; }

.related { padding: 40px 0 96px; border-top: 1px solid var(--ink); }
.related .label { margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.related-grid a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.related-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Shows ---------- */

.shows-title { padding: 56px 0 40px; }
.show-group { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-bottom: 48px; }
.show-group > h2 { flex: 1 1 240px; }
.show-group > .rows { flex: 4 1 560px; border-top: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row .y { flex: 0 0 72px; font-family: var(--mono); font-size: 15px; color: var(--muted); }
.row .t { flex: 1 1 260px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.row .v { flex: 1 1 260px; color: var(--soft); }

/* ---------- Info ---------- */

.portrait { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.portrait span { font-size: 14px; color: var(--muted); }
.contact { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.contact a { padding: 6px 0; }
.contact .email { font-size: 22px; }
.cv-row { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv-row .y { flex: 0 0 64px; font-family: var(--mono); font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { padding: 12px 0; }

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header { padding-top: 24px; }
  .site-name { font-size: 32px; }
  .page-title { font-size: 48px; }
  .intro .lead { font-size: 21px; }
  .statement { font-size: 20px; }
  .works { gap: 36px; }
  .plates .pair { grid-template-columns: 1fr; }
}
