/* ============================================================
   Isma Abdelkader Di Carlo, personal site
   Light editorial: cream paper, ink text, one warm accent
   ============================================================ */

:root {
  --paper: #faf6ef;
  --ink: #21272b;
  --ink-soft: #4d565c;
  --ink-faint: #8a949a;
  --rule: #e2dbcf;
  --accent: #b45320;        /* warm clay */
  --accent-soft: #c97a4e;
  --max: 960px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px) 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  border-bottom: 1px solid var(--rule);
}
.masthead-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.masthead-name:hover { text-decoration: none; color: var(--accent); }
.masthead-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.masthead nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.masthead nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.masthead nav a:hover { color: var(--accent); text-decoration: none; }
.masthead-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: clamp(12px, 2vw, 20px);
  border-left: 1px solid var(--rule);
}
.masthead-social a { display: inline-flex; align-items: center; line-height: 0; }
.masthead-social svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: var(--ink-soft);
  transition: fill 0.15s ease;
}
.masthead-social a:hover svg { fill: var(--accent); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  padding: clamp(48px, 9vh, 104px) 0 clamp(40px, 7vh, 80px);
}
.hero-waves {
  position: absolute;
  right: clamp(-80px, -4vw, -20px);
  bottom: 0;
  width: min(540px, 62vw);
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.hero-text, .hero-photo { position: relative; z-index: 1; }
.overline {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.lede {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
  max-width: 58ch;
  text-align: justify;
  hyphens: auto;
}
.hero-links { margin: 0; font-size: 17px; }
.hero-links .sep { color: var(--ink-faint); margin: 0 12px; }

.arrow-link {
  font-weight: 600;
  color: var(--accent);
}
.arrow-link::after {
  content: " \2192";
  transition: margin-left 0.15s ease;
}
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { margin-left: 4px; }

.hero-photo { margin: 6px 0 0; }
.hero-photo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 15 / 16;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 8px 8px 0 0 rgba(180, 83, 32, 0.14);
}
.hero-photo figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}
.hero-photo figcaption span {
  font-family: var(--sans);
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 13.5px;
}

/* ---------- sections ---------- */
.section {
  border-top: 1px solid var(--rule);
  padding: clamp(36px, 6vh, 64px) 0;
  scroll-margin-top: 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.section-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- work entries ---------- */
.entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(18px, 3vw, 32px);
  padding: 8px 0 40px;
}
.entry:last-child { padding-bottom: 0; }
.entry-media img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #10293a;
  padding: 3px;
}
.entry-body h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}
.entry-body h3 a { color: var(--ink); }
.entry-body h3 a:hover { color: var(--accent); text-decoration: none; }
.entry-role {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.entry-body p:not(.entry-role) {
  margin: 0 0 14px;
  color: var(--ink-soft);
  max-width: 64ch;
  text-align: justify;
  hyphens: auto;
}

/* ---------- about ---------- */
.about-bio { max-width: 72ch; }
.about-bio p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16.5px;
  text-align: justify;
  hyphens: auto;
}
.about-bio p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 60ch;
  text-align: justify;
  hyphens: auto;
}

/* ---------- shore + footer ---------- */
.shore {
  max-width: var(--max);
  margin: clamp(40px, 7vh, 80px) auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
}
.shore svg { display: block; width: 100%; height: 56px; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px) 40px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 220px; }
  .hero-waves { width: 80vw; opacity: 0.7; }
  .entry { grid-template-columns: 44px 1fr; }
  .entry-media img { width: 44px; height: 44px; border-radius: 9px; }
}
