.contact-button {
  background: var(--button-background, rgba(10, 10, 10, .5));
  border: 1.5px solid var(--button-border, rgba(255, 255, 255, .09));
  color: var(--accent);
  border-radius: 8px;
  padding: 0.4em 0.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border .2s;
  cursor: pointer;
}

@media (prefers-color-scheme: light) {
  .contact-button {
    --button-background: #f3f3f3;
    --button-border: #e0e0e0;
    background: var(--button-background);
    border: 1.5px solid var(--button-border);
    color: var(--accent);
  }

  .contact-button:hover {
    background: #fff;
    border-color: #000;
  }
}

.contact-button svg {
  color: var(--gray);
  transition: color 0.2s;
}

.contact-button:focus svg,
.contact-button:hover svg {
  color: var(--accent);
}

.contact-button:hover {
  background: var(--button-hover, rgba(255, 255, 255, .09));
  border-color: var(--accent);
}


@font-face {
  font-family: 'Noto Sans Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./noto-sans-mono-latin-wght-normal.sn4KHCQi.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: #fcfcfc;
  --accent: #000;
  --gray: #333;
  --border: #e0e0e0;
  --card-bg: #fff;
  --card-border: #e0e0e0;
  --shadow: 0 2px 16px #0001;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --accent: #e1e1e1;
    --gray: #7f7f7f;
    --border: #222;
    --card-bg: #181818;
    --card-border: #222;
    --shadow: 0 2px 16px #000a;
  }
}

body {
  background: var(--background);
  color: var(--accent);
  font-family: 'Noto Sans Mono Variable', monospace;
  margin: 0;
  min-height: 100vh;
}

.page-container {
  max-width: 900px;
  margin: 40px auto;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 24px 16px 24px;
  position: relative;
}

header {
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  font-weight: 700;
}

.subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 400;
}

.main-section h2,
.formacoes-section h2 {
  color: var(--accent);
  margin-top: 32px;
  border-left: 4px solid var(--border);
  padding-left: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-section h3,
.formacoes-section h3 {
  color: var(--accent);
  margin-top: 32px;
  border-left: 4px solid var(--border);
  padding-left: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}


.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

.project-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  min-width: 320px;
  max-width: 480px;
  flex: 1 1 340px;
  text-decoration: none;
  color: var(--accent);
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  outline: none;
  overflow: hidden;
  height: 110px;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px #0002;
  background: var(--background);
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  min-width: 110px;
  width: 110px;
  height: 100%;
  border-right: 1.5px solid var(--card-border);
}

.card-logo img {
  max-height: 70px;
  max-width: 70px;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.card-title {
  font-weight: bold;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.card-desc {
  color: var(--gray);
  font-size: 0.98rem;
}

.other-projects {
  list-style: none;
  padding: 0 0 0 8px;
  margin: 0 0 24px 0;
}

.other-projects li {
  margin-bottom: 6px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}

.other-projects a {
  color: var(--accent);
  text-decoration: underline dotted;
  font-size: 1rem;
  transition: color 0.2s;
}

.other-projects a:hover {
  color: var(--gray);
}

.links {
  list-style: none;
  padding: 0 0 0 8px;
  margin: 0 0 24px 0;
}

.links li {
  margin-bottom: 6px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}

.links a {
  color: var(--accent);
  text-decoration: underline dotted;
  font-size: 1rem;
  transition: color 0.2s;
}

.links a:hover {
  color: var(--gray);
}

.formacoes-section {
  margin-top: 32px;
}

.academica-list {
  list-style: none;
  padding: 0 0 0 8px;
  margin: 0 0 24px 0;
}

.academica-list li {
  margin-bottom: 10px;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.academica-title {
  color: var(--accent);
  font-weight: bold;
}

.academica-inst {
  color: var(--gray);
}

.ufcd-list {
  list-style: none;
  padding: 0 0 0 8px;
  margin: 0;
}

.ufcd-list li {
  margin-bottom: 10px;
  border-left: 2px solid var(--border);
  padding-left: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ufcd-num {
  color: var(--accent);
  font-weight: bold;
  font-family: inherit;
}

.ufcd-title {
  color: var(--accent);
}

.ufcd-link {
  color: var(--gray);
  text-decoration: underline dashed;
  margin-left: 8px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.ufcd-date {
  color: var(--gray);
  font-size: 0.95rem;
}

footer {
  border-top: 1.5px solid var(--border);
  margin-top: 32px;
  padding-top: 12px;
  text-align: center;
  color: var(--gray);
  font-size: 0.98rem;
}

.print-link,
.print-footer,
.project-link {
  display: none;
}

.project-link {
  color: var(--gray);
  font-size: 0.95rem;
  font-style: italic;
}

.print-logo {
  display: none;
  max-width: 70px;
  object-fit: contain;
}

@media print {
  :root {
    --background: #fcfcfc;
    --accent: #000;
    --gray: #333;
    --border: #e0e0e0;
    --card-bg: #fff;
    --card-border: #e0e0e0;
    --shadow: 0 2px 16px #0001;
  }

  .page-container {
    margin-top: 0 !important;
  }

  body {
    background: #fff !important;
  }


  .project-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 18px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: hidden !important;
    background: var(--card-bg) !important;
    border: 1.5px solid var(--card-border) !important;
    flex-direction: row !important;
    height: auto !important;

  }

  .card-logo {
    min-width: 110px !important;
    width: 110px !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--border) !important;
    border-right: 1.5px solid var(--card-border) !important;
  }

  .card-content {
    padding: 18px 18px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }


  .print-link,
  .print-footer,
  .project-link {
    display: inline;
  }

  footer p,
  .print-footer {
    display: block;
    text-align: center;
    margin: 0 0 0 0;
  }

  .links,
  .last-update {
    display: none !important;
  }

  .project-link {
    color: #888;
    font-size: 0.95em;
    font-style: italic;
  }

  .print-footer {
    color: #888;
    font-size: 0.95em;
    font-style: italic;
    margin-bottom: 0;
  }

  .print-footer a {
    color: var(--accent);
    text-decoration: underline dotted;
    font-size: 1rem;
    transition: color 0.2s;
  }

  .contact-button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  #contacts {
    flex-direction: column !important;
    gap: 1.2em !important;
    align-items: flex-start !important;
  }

  .contact-button svg {
    padding: 0em 0.7em !important;
    vertical-align: middle;
  }

  .card-logo picture {
    display: none !important;
  }

  .print-logo {
    display: block !important;
  }

  .card-logo {
    min-width: 110px !important;
    width: 110px !important;
    height: auto !important; /* Ensure it grows with content */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--border) !important;
    border-right: 1.5px solid var(--card-border) !important;
  }

  .print-logo {
    display: block !important;
    width: 100% !important;      /* Fill container width */
    height: 100% !important;     /* Fill container height */
    max-width: 70px !important;  /* Don't exceed max size */
    max-height: 70px !important; /* Don't exceed max size */
    object-fit: contain !important;
    margin: auto !important;
    background: none !important;
  }


}