/* Francisco Pellegrini — Editorial Personal Profile */
/* Design: Masculine, editorial, content-first, strong hierarchy */

:root {
  --bg:        #F7F5F0;
  --bg-alt:    #EFECE4;
  --surface:   #E8E4DA;
  --border:    #D4D0C6;
  --text:      #1C1C1C;
  --text-muted: #5C5C5C;
  --accent:    #7A6840;
  --accent-hover: #5E5030;
  --white:     #FFFFFF;
  --font-display: 'Newsreader', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

p {
  margin-bottom: 1.2rem;
  max-width: 38em;
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

/* ---- LAYOUT ---- */

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 1080px;
}

/* ---- NAVIGATION ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-bottom: none;
}

.nav__name:hover {
  border-bottom: none;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--text-muted);
  border-bottom: none;
  padding: 0.2rem 0;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* ---- HERO ---- */

.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero__headline {
  font-size: 3.6rem;
  line-height: 1.08;
  margin-bottom: 1.8rem;
  max-width: 14em;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 36em;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.hero__supporting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background-color: var(--text);
  color: var(--bg);
  border-bottom: none;
}

.btn--primary:hover {
  background-color: var(--accent);
  border-bottom: none;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
}

.btn--outline:hover {
  background-color: var(--text);
  color: var(--bg);
  border-bottom: 1.5px solid var(--text);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.text-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.text-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* ---- SECTIONS ---- */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--last {
  border-bottom: none;
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

/* ---- PROOF STRIP ---- */

.proof-strip {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
}

.proof-strip__item {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}

.proof-strip__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---- CARDS / BLOCKS ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CASE STUDIES ---- */

.case {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.case:last-child {
  border-bottom: none;
}

.case__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.case__desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.case__bullets {
  list-style: none;
  padding: 0;
}

.case__bullets li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.case__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---- LIST BLOCKS ---- */

.list-block {
  margin: 2rem 0;
}

.list-block ul {
  list-style: none;
  padding: 0;
}

.list-block li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  line-height: 1.6;
}

.list-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

/* ---- WRITING / MEDIA LINKS ---- */

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  color: var(--text);
}

.link-list .link-list__placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ---- CONTACT ---- */

.contact-block {
  padding: 3rem 0;
  text-align: center;
}

.contact-block h2 {
  margin-bottom: 1rem;
}

.contact-block p {
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--text);
}

/* ---- FOOTER ---- */

.footer {
  padding: 2.5rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero__headline {
    font-size: 2.4rem;
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0.8rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__inner {
    position: relative;
  }

  .proof-strip {
    flex-direction: column;
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}
