/* Sofia Rebecca González — editorial monograph style
   Reference: refero.design "Daniël van der Winden" system */

:root {
  --color-vellum: #e5e7eb;
  --color-ink-black: #111827;
  --color-graphite: #374151;
  --color-charcoal: #2a2a28;
  --color-stone: #717272;
  --color-pebble: #909191;
  --color-ash: #c4c6c8;
  --color-slate: #7b7c7c;
  --color-pressed-ink: #222222;

  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --page-max-width: 720px;
  --sidebar-width: 200px;
  --section-gap: 64px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar .wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-ink-black);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar .mark {
  position: absolute;
  top: 40px;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

nav.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

nav.side-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-ink-black);
  text-decoration: none;
}

nav.side-nav a:hover {
  color: var(--color-graphite);
}

/* Main content */
main {
  margin-left: var(--sidebar-width);
  padding: 80px 40px 96px;
  max-width: calc(var(--page-max-width) + 80px);
}

.col {
  max-width: var(--page-max-width);
}

section {
  margin-bottom: var(--section-gap);
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.4;
  color: var(--color-charcoal);
  margin: 0 0 24px;
}

/* Hero */
.hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: var(--section-gap);
}

.collage {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  height: 300px;
}

.collage img {
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
}

.collage .photo-main {
  width: 168px;
  height: 210px;
  top: 0;
  left: 0;
  z-index: 2;
}

.collage .photo-accent {
  width: 120px;
  height: 150px;
  top: 90px;
  left: 100px;
  z-index: 1;
}

.hero-text {
  padding-top: 8px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: 0.025px;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.hero-text .tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin: 0 0 24px;
}

.hero-text p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-graphite);
  margin: 0 0 16px;
  max-width: 480px;
}

/* Body text block */
.prose p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-graphite);
  margin: 0 0 27px;
  max-width: 640px;
}

/* Résumé entries */
.entry-group {
  margin-bottom: 32px;
}

.entry-group:last-child {
  margin-bottom: 0;
}

.group-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin: 0 0 16px;
}

.entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-ash);
}

.entry:first-child {
  padding-top: 0;
}

.entry:last-child {
  border-bottom: none;
}

.entry .when {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-stone);
  padding-top: 2px;
}

.entry .role {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-charcoal);
  margin: 0 0 4px;
}

.entry .org {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-stone);
  margin: 0 0 8px;
}

.entry p.desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-graphite);
  margin: 0;
}

/* External link with arrow */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-list a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-ink-black);
  text-decoration: none;
}

.link-list a::after {
  content: "↗";
  font-size: 75%;
  vertical-align: super;
  margin-left: 4px;
}

.link-list a:hover {
  color: var(--color-graphite);
}

/* Contact */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-email {
  display: inline-block;
  background: var(--color-pressed-ink);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
}

.contact-divider {
  width: 1px;
  height: 20px;
  background: var(--color-vellum-border, var(--color-ash));
}

.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-ink-black);
  text-decoration: none;
}

.social-row svg {
  width: 14px;
  height: 14px;
  fill: var(--color-stone);
}

/* Footer */
footer.site-footer {
  margin-top: 96px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-pebble);
}

/* Responsive */
@media (max-width: 860px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-ash);
  }

  nav.side-nav ul {
    flex-direction: row;
    gap: 20px;
  }

  .sidebar .mark {
    display: none;
  }

  main {
    margin-left: 0;
    padding: 48px 24px 64px;
  }

  .hero {
    flex-direction: column;
  }

  .collage {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-text h1 {
    font-size: 32px;
  }
}
