/*  cosentinoferreira.com
    Design: Jony Ive × 3026 × Nature
    Zero cookies. Zero JavaScript. Pure HTML + CSS.                  */

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

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Nature palette — sand, stone, sky, moss */
  --bg:         #f6f4f0;
  --bg-warm:    #f0ece4;
  --bg-card:    #faf9f6;
  --text:       #2c2a27;
  --text-soft:  #8a8578;
  --text-fade:  #b5b0a4;
  --accent:     #6b7c5e;
  --accent-warm:#a0845c;
  --accent-deep:#3d4a34;
  --border:     #e8e4dc;
  --border-lt:  #efede8;
  --shadow:     rgba(44, 42, 39, 0.04);
  --shadow-md:  rgba(44, 42, 39, 0.08);

  --serif:  'Cormorant Garamond', 'Georgia', serif;
  --sans:   'Outfit', 'Helvetica Neue', sans-serif;

  --max-w:    900px;
  --wide-w:   1100px;
  --rhythm:   1.65;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: var(--rhythm);
  min-height: 100dvh;
}

/* ── Container ───────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.wrap--wide {
  max-width: var(--wide-w);
}

/* ── Site Header ─────────────────────────────────────────────────────── */
.site-header {
  padding: 3rem 0 0;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.site-logo {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo:hover { color: var(--accent); }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--text); }
.nav a.active::after { width: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 42ch;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Section Divider ─────────────────────────────────────────────────── */
.divider {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-fade);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

/* ── Landing Gates (homepage two columns) ────────────────────────────── */
.gates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 6rem;
}

.gate {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

.gate:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px var(--shadow-md);
  border-color: var(--border);
}

.gate__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-fade);
  margin-bottom: 1.5rem;
}

.gate__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.gate__desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.7;
  flex-grow: 1;
}

.gate__arrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
}

.gate:hover .gate__arrow { gap: 0.8rem; }

/* ── Section Page Layout ─────────────────────────────────────────────── */
.section-hero {
  padding: 5rem 0 3rem;
}

.section-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-hero p {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 55ch;
  font-weight: 300;
}

/* ── Section Nav (within a section) ──────────────────────────────────── */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--border-lt);
  margin-bottom: 3rem;
}

.section-nav a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.section-nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-card);
}

.section-nav a.active {
  color: var(--text);
  background: var(--bg-warm);
  border-color: var(--border);
}

/* ── Content Blocks ──────────────────────────────────────────────────── */
.content { padding-bottom: 4rem; }

.content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  color: var(--text);
}

.content h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.content p {
  margin: 0.5rem 0;
  max-width: 65ch;
}

.content blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-soft);
  font-style: italic;
  font-weight: 300;
}

.content hr {
  border: none;
  height: 1px;
  background: var(--border-lt);
  margin: 3rem 0;
}

/* ── Link List ───────────────────────────────────────────────────────── */
.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-lt);
}

.link-list li:last-child { border-bottom: none; }

.link-list a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  transition: color 0.2s ease;
}

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

.link-list .meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-fade);
  white-space: nowrap;
}

/* ── Entry Page (reviews, bios) ──────────────────────────────────────── */
.entry-header {
  padding: 4rem 0 2rem;
}

.entry-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.entry-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
}

.entry-meta .rating {
  color: var(--accent-warm);
  font-weight: 500;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-fade);
  letter-spacing: 0.04em;
  padding: 1.5rem 0 0;
}

.breadcrumb a {
  color: var(--text-fade);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }

/* ── Resume ──────────────────────────────────────────────────────────── */
.resume-header {
  padding: 5rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.resume-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.resume-header .contact {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: right;
  line-height: 1.8;
}

.resume-header .contact a { color: var(--text-soft); }
.resume-header .contact a:hover { color: var(--accent); }

.resume-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-lt);
}

.resume-section h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-fade);
  margin-bottom: 1.5rem;
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.resume-item__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
}

.resume-item__date {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-fade);
}

.resume-item__org {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.resume-item__desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 60ch;
  font-weight: 300;
}

/* ── Skills Grid ─────────────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-soft);
  background: var(--bg-card);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-lt);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-fade);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: var(--text-fade);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--accent); }

/* ── Nature Dot (organic accent) ─────────────────────────────────────── */
.nature-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  vertical-align: middle;
  margin: 0 0.3rem;
}

/* ── Empty State ─────────────────────────────────────────────────────── */
.empty-state {
  padding: 4rem 0;
  text-align: center;
  color: var(--text-fade);
  font-style: italic;
  font-weight: 300;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .gates {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gate { padding: 2.5rem 2rem; min-height: auto; }

  .hero { padding: 5rem 0 4rem; }
  .hero h1 { font-size: 2.4rem; }

  .resume-header {
    grid-template-columns: 1fr;
  }
  .resume-header .contact { text-align: left; }

  .site-header .wrap {
    flex-direction: column;
    gap: 1rem;
  }

  .nav { gap: 1.2rem; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .section-hero h1 { font-size: 2rem; }
}

/* ── Language Switcher (CSS-only, no JS) ─────────────────────────────── */
.lang-toggle {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.lang-toggle summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-fade);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
  user-select: none;
}

.lang-toggle summary::-webkit-details-marker { display: none; }
.lang-toggle summary::marker { display: none; content: ''; }

.lang-toggle summary:hover { color: var(--accent); }

.lang-toggle summary::after {
  content: '';
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--text-fade);
  transition: border-top-color 0.2s;
}

.lang-toggle summary:hover::after { border-top-color: var(--accent); }

.lang-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-bottom: 0.4rem;
  box-shadow: 0 8px 30px -12px var(--shadow-md);
  min-width: 160px;
  z-index: 50;
}

.lang-menu a {
  display: block;
  padding: 0.4rem 1rem;
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.75rem;
  transition: all 0.15s;
  white-space: nowrap;
}

.lang-menu a:hover {
  color: var(--text);
  background: var(--bg-warm);
}

.lang-menu .lang-label {
  color: var(--text-fade);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem 0.2rem;
  font-weight: 500;
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .nav, .site-footer, .gate__arrow { display: none; }
  a { color: black; }
  .hero { padding: 2rem 0; }
}
