/* Base */
body {
    margin: 20px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    }

h1 {
    font-weight: 700;
    }

h2 {
     font-style: italic;
     font-weight: 600;
     font-size: 2rem;
     line-height: 1.2;
     margin-bottom: 20px;
}

h3, h4 {
    margin-bottom: 10px;
    font-weight: 500;
}

h4 {
    margin-top: 40px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 8px;
}
section {
    margin-bottom: 35px;
}

/* hlavička */
img {
    float: left;
    margin: 15px;
    border-radius: 20px;
    width: 320px;
    }

.uvod {
    margin: 15px auto;
    padding: 50px;
    max-width: 1200px;
    display: flow-root; 
    }

.uvod p,
.uvod h2,
.uvod button {
    margin-left: 40px;
}

.uvod-text {
    max-width: 700px;
}

/* buttony */    
button {
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: 0.2s ease;
    border-radius: 8px;
    }
button:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
@media print {

  body {
    background: white;
    color: black;
  }

  .menu,
  footer,
  button {
    display: none;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  img {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }
}

/* nav bar */
.menu {
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
    text-align: center;
    clear: both;
    }
.menu li {
    display: inline-block;
}

.menu a {
    display: inline-block;
    color: whitesmoke;
    text-decoration: none;
    padding: 20px 30px;
}

.menu a:hover, .menu a:focus, .menu a:active {
    background-color: #756158;
}

body:not(.light) .menu a {
  color: white;
}

/* layout */
.cv-layout {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
}
.left {
  padding-right: 20px;
  border-right: 1px solid #ddd;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .cv-layout {
    grid-template-columns: 1fr;
  }
    .menu a {
    padding: 12px 14px;
  }
}

/* footer */
footer .nav a{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
footer .nav a:hover{
  background: rgba(0,0,0,.06);
}
footer svg {
  display: block;
}
footer a {
  transition: 0.2s;
}

footer a:hover {
  opacity: 0.7;
}

/* THEME VARIABLES */
:root {
  --bg: #0f0f0f;
  --text: #f5f5f5;
  --card: #1c1c1c;
  --accent: #756158;
  --border: #3a3a3a;
  --link: #f5f5f5;
}

body.light {
  --bg: #ffffff;
  --text: #111111;
  --card: #f7f4f2;
  --border: #dddddd;
  --link: #4b342c;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: var(--link);
}

a {
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  opacity: 0.7;
}

.menu {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.menu a {
  color: var(--text);
}

.menu a:hover,
.menu a:focus,
.menu a:active {
  background-color: var(--accent);
  color: white;
}

section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.left {
  border-right: 1px solid var(--border);
}

.project-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.project-card img {
    width: 100%;
    border-radius: 12px;
    margin: 10px 0 15px 0;
}

.project-card:last-of-type {
  border-bottom: none;
}

/* Print button fix in light mode */
body.light .btn-outline-light {
  color: black;
  border-color: black;
}

body.light .btn-outline-light:hover {
  background-color: black;
  color: white;
}

/* Theme toggle */
#theme-toggle {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: var(--text);
}

.projects {
  display: grid;
  gap: 20px;
}

.project-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.project-card h4 {
  margin-top: 0;
  color: var(--text);
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.project-link:hover {
  background-color: var(--accent);
  color: white;
  opacity: 1;
}