/* ==============================================================
   Portfolio index (dw.html) — Editorial redesign
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #FFFFFF;
  color: #1F1F1F;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #1F1F1F;
}

a { color: inherit; text-decoration: none; }

.portfolio {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) clamp(24px, 5vw, 56px);
}

.heading { margin-bottom: 72px; max-width: 720px; }
.heading::before {
  content: '§ Selected work — The Studio Ledger';
  display: block;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #B85C38; margin-bottom: 24px;
}
.heading h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02;
  font-weight: 500; margin-bottom: 20px;
}
.heading h1 span { font-style: italic; color: #B85C38; font-weight: 500; }
.heading p { font-size: 1.05rem; color: #4A4740; max-width: 560px; }

.projects {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0; border-top: 1px solid #D6D0C4;
}

.project-card {
  padding: 40px 32px; position: relative;
  border-bottom: 1px solid #EAE6DF;
  border-right: 1px solid #EAE6DF;
  background: #FFFFFF;
  transition: background 0.3s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.project-card:hover { background: #F5EBDD; }

.project-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 8px;
  font-size: 1.1rem; color: #B85C38;
  border: 1px solid #EADFCB; background: #F5EBDD;
}
.project-card h2 {
  font-size: 1.5rem; line-height: 1.2; font-weight: 500;
}
.project-card p {
  font-size: 0.95rem; line-height: 1.65; color: #4A4740;
  flex: 1;
}
.project-card a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0; margin-top: 8px;
  font-size: 0.85rem; font-weight: 500; color: #1F1F1F;
  border-bottom: 1px solid #1F1F1F;
  align-self: flex-start;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.project-card a::after { content: '→'; transition: transform 0.3s ease; }
.project-card a:hover { color: #B85C38; border-bottom-color: #B85C38; }
.project-card a:hover::after { transform: translateX(3px); }

.project-card a.coming-soon {
  color: #8A867C; border-bottom-color: #D6D0C4;
  pointer-events: none;
}
.project-card a.coming-soon::after { content: '— soon'; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 720px) {
  .heading h1 { font-size: 2.4rem; }
  .project-card { padding: 32px 24px; border-right: none; }
}
