/* Demo: Theo Marchetti, illustrator and printmaker.
   The work leads and the resume comes last, which is the reverse of the other
   two demos. Dark, high contrast, oversized type, edge-to-edge grid.

   The pieces are generated in CSS rather than being placeholder photographs.
   In a print portfolio that reads as intentional, and it keeps the demo honest:
   nothing here is pretending to be a real photograph of real work. */

:root {
  --bg:     #0C0C0D;
  --raise:  #161618;
  --ink:    #F2F0EC;
  --muted:  #8B8985;
  --line:   #262629;
  --accent: #FF5C35;
  --sans:   "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.shell { max-width: 1280px; margin: 0 auto; padding: 0 28px 140px; }

/* ----------------------------------------------------------------- hero --- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top nav { display: flex; gap: 22px; }
.top a { text-decoration: none; color: var(--muted); }
.top a:hover { color: var(--accent); }

.hero { padding: 92px 0 72px; }

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero .sub {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  line-height: 1.45;
}

/* ----------------------------------------------------------------- work --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.piece { text-decoration: none; display: block; }

.art {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.piece:hover .art { transform: scale(0.985); }

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    0deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 3px);
}

.art--1 { background: linear-gradient(155deg, #FF5C35 0%, #7A1E8C 55%, #0C0C0D 100%); }
.art--2 { background: radial-gradient(circle at 32% 28%, #F5D547 0%, #E0523C 42%, #1A1024 100%); }
.art--3 { background: conic-gradient(from 210deg at 60% 40%, #2D6FE0, #14C4A8, #0C0C0D, #2D6FE0); }
.art--4 { background: linear-gradient(28deg, #0C0C0D 0%, #3B1F6B 46%, #FF48B0 100%); }
.art--5 { background: radial-gradient(ellipse at 70% 78%, #14C4A8 0%, #10465E 48%, #0C0C0D 100%); }
.art--6 { background: linear-gradient(200deg, #F2F0EC 0%, #FF5C35 48%, #2A0F1E 100%); }

.piece .cap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  font-size: 14px;
}
.piece .cap b { font-weight: 500; }
.piece .cap span { color: var(--muted); }
.piece:hover .cap b { color: var(--accent); }

/* --------------------------------------------------------------- blocks --- */
.split {
  margin-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.split p { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; }
.split p + p { margin-top: 20px; color: var(--muted); font-size: 1rem; }

.list { margin-top: 18px; border-top: 1px solid var(--line); }
.row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.row span { color: var(--muted); white-space: nowrap; }

.end { margin-top: 120px; border-top: 1px solid var(--line); padding-top: 48px; }
.end a.mail {
  display: inline-block;
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.end a.mail:hover { color: var(--accent); }
.end p { margin: 14px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 28px; margin-top: 80px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .top nav { display: none; }
}

/* ------------------------------------------------ only-on-a-website ----- */
/* A printed portfolio is whatever order it was bound in. This one sorts itself
   on demand, which is the single clearest thing a page does that paper cannot. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 15px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.filter:hover { color: var(--ink); border-color: var(--muted); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0C0C0D;
  font-weight: 500;
}

.piece[hidden] { display: none; }

.count {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}

.art--7 { background: linear-gradient(340deg, #0C0C0D 0%, #1F5E4B 52%, #F5D547 100%); }
.art--8 { background: radial-gradient(circle at 44% 62%, #FF48B0 0%, #6B1B54 46%, #0C0C0D 100%); }
.art--9 { background: conic-gradient(from 40deg at 42% 58%, #FF5C35, #F5D547, #2D6FE0, #FF5C35); }

/* ------------------------------------------------------------ process --- */
.process {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.process .steps {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.process .step b {
  display: block;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.process .step p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.process .step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; }

.commission {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.commission div { background: var(--bg); padding: 22px; }
.commission b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.commission span { font-size: 14px; color: var(--muted); }

.available {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--accent);
}
.available i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 900px) {
  .process .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commission { grid-template-columns: 1fr; }
}
