/* dany.sh CV pages — the LaTeX original (serif display, teal accent, ➢
   bullets) translated onto the dany.sh dark theme. Shared by /en/cv + /de/cv. */

:root {
  --bg:        #080c12;
  --sheet:     #0e1520;
  --line:      rgba(120, 150, 180, 0.16);
  --fg:        #dbe4ee;
  --muted:     #93a5b8;
  --teal:      #4cc2b4;
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Outfit", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 0.98rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding: 3rem 1.25rem 5rem;
}

::selection { background: var(--teal); color: #06231f; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* download button, top right */
.dl {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 11px;
  background: var(--teal);
  color: #06231f;
  font: 500 0.88rem var(--sans);
  text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(76, 194, 180, 0.55);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.dl:hover { background: #62d4c6; transform: translateY(-2px); text-decoration: none; }
.dl:active { transform: scale(0.97); }
.dl svg { width: 15px; height: 15px; }

/* language switch, top left */
.langswitch {
  position: fixed;
  top: 1.55rem;
  left: 1.4rem;
  z-index: 10;
  font: 500 0.78rem var(--mono);
  letter-spacing: 0.08em;
}
.langswitch a { color: var(--muted); text-decoration: none; }
.langswitch a:hover { color: var(--teal); }
.langswitch .here { color: var(--teal); }

/* the sheet */
.sheet {
  max-width: 840px;
  margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 3.4rem 3.6rem 3rem;
  box-shadow: 0 40px 90px -40px rgba(2, 6, 12, 0.9);
}

.date {
  text-align: right;
  font: 500 0.78rem var(--mono);
  color: var(--muted);
  margin-bottom: 1.2rem;
}

header.id { text-align: center; margin-bottom: 2.2rem; }
header.id h1 {
  font: 600 clamp(2.4rem, 5.5vw, 3.4rem)/1.05 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
header.id .contact {
  font-size: 0.85rem;
  color: var(--muted);
}
header.id .contact span + span::before {
  content: " | ";
  color: var(--line);
}

.summary {
  margin: 0 auto 2.4rem;
  max-width: 68ch;
  color: var(--fg);
}
.summary strong { font-weight: 600; }
.summary em { color: var(--muted); }

.certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2.6rem;
}
.certs span {
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.05em;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(76, 194, 180, 0.4);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(76, 194, 180, 0.07);
}

h2 {
  font: 560 1.9rem/1.1 var(--serif);
  letter-spacing: -0.015em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  margin: 2.6rem 0 1.6rem;
}
h2:first-of-type { margin-top: 0; }

.job { margin-bottom: 1.9rem; break-inside: avoid; }
.job h3 {
  font: 600 1.06rem var(--sans);
}
.job h3 em { font-weight: 500; color: var(--muted); }
.job .when {
  color: var(--teal);
  font-size: 0.88rem;
  margin: 0.15rem 0 0.6rem;
}
.role { margin-top: 1rem; }
.role > strong { font-weight: 600; font-size: 0.94rem; }

ul { list-style: none; margin-top: 0.45rem; }
li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.42rem;
  color: var(--muted);
  max-width: 72ch;
}
li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42em;
  width: 0.62em;
  height: 0.62em;
  /* ➢ arrow as inline SVG — identical in every font environment, print included */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1.5 L6 5 L1 8.5 L2.6 5 Z' fill='%234cc2b4'/%3E%3C/svg%3E") no-repeat center / contain;
}
li strong, li b { color: var(--fg); font-weight: 600; }
li em { color: var(--fg); }

.edu p { color: var(--muted); max-width: 72ch; }
.edu .areas { margin-top: 0.6rem; }
.edu .areas strong { color: var(--fg); font-weight: 600; }

footer.note {
  max-width: 840px;
  margin: 1.8rem auto 0;
  text-align: center;
  font: 400 0.75rem var(--mono);
  color: var(--muted);
}
footer.note a { color: var(--muted); }
footer.note a:hover { color: var(--teal); }

.geo {
  max-width: 840px;
  margin: 0.6rem auto 0;
  text-align: center;
  font: 400 0.72rem var(--mono);
  color: var(--muted);
  opacity: 0.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  body { padding: 4.5rem 0.8rem 3rem; }
  .sheet { padding: 2.2rem 1.4rem; border-radius: 16px; }
  .dl { top: auto; bottom: 1.2rem; right: 1.2rem; }
  .langswitch { top: 1.1rem; left: 1.1rem; }
}

/* print = the downloadable PDF (via headless chrome printToPDF):
   white paper, no dark blocks/backgrounds; teal only as text color.
   @page margins apply per page — the deep bottom margin guarantees
   breathing room at the foot of every page. */
@media print {
  @page { size: A4; margin: 1.9cm 2.1cm 2.7cm 2.1cm; }
  body { padding: 0; background: #ffffff; color: #14181d; font-size: 0.9rem; }
  .dl, .langswitch, footer.note, .geo { display: none; }
  .sheet {
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
    background: #ffffff;
  }
  .date { color: #5b6773; margin-bottom: 0.8rem; }
  header.id { margin-bottom: 1.4rem; }
  header.id h1 { color: #10151b; }
  header.id .contact { color: #4a5563; }
  header.id .contact span + span::before { color: #b9c3cd; }
  a { color: #177e70; }
  .summary { color: #14181d; margin-bottom: 1.4rem; }
  .summary em { color: #4a5563; }
  .certs { margin-bottom: 1.4rem; }
  .certs span { background: none; border-color: #1d8a7c; color: #177e70; }
  h2 {
    color: #10151b;
    border-bottom-color: #d7dee5;
    margin: 1.5rem 0 0.9rem;
    break-after: avoid;
  }
  .job { margin-bottom: 1.1rem; break-inside: auto; }
  .job.edu { break-inside: avoid; }
  .job h3, .job .when, .role > strong { break-after: avoid; }
  .job h3 { color: #14181d; }
  .job h3 em { color: #4a5563; }
  .job .when { color: #177e70; }
  li { color: #333c46; margin-bottom: 0.3rem; break-inside: avoid; }
  li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1.5 L6 5 L1 8.5 L2.6 5 Z' fill='%231d8a7c'/%3E%3C/svg%3E");
  }
  li strong, li b { color: #10151b; }
  li em { color: #14181d; }
  .edu p { color: #333c46; }
  .edu .areas strong { color: #10151b; }
}
