/* resume.port0.in — modern-cv-inspired, Solarized */

:root,
:root[data-theme="light"] {
  --bg:        #fdf6e3;
  --bg-alt:    #eee8d5;
  --fg:        #586e75;
  --fg-emph:   #073642;
  --fg-muted:  #93a1a1;
  --accent:    #268bd2;
  --accent-hover: #cb4b16;
  --rule:      #eee8d5;
}

:root[data-theme="dark"] {
  --bg:        #002b36;
  --bg-alt:   #073642;
  --fg:       #93a1a1;
  --fg-emph:  #fdf6e3;
  --fg-muted: #586e75;
  --accent:   #268bd2;
  --accent-hover: #cb4b16;
  --rule:     #073642;
}

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif;
  --font-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria,
                "Iowan Old Style", Palatino, "Times New Roman", Times, serif;
  --max-width: 880px;
}

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

html { font-size: 17px; line-height: 1.55; }

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.75rem 3rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

h1, h2, h3, strong { color: var(--fg-emph); }

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg-emph);
  border: 1px solid var(--rule);
  cursor: pointer;
  font: inherit; font-size: 1.1rem; line-height: 1;
}
.theme-toggle:hover { color: var(--accent-hover); }

/* Header */
header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  text-align: center;
}

header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

header .role {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}

.contact {
  font-size: 0.82rem;
  color: var(--fg-muted);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.9rem;
  white-space: nowrap;
}
.contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.contact a { color: var(--fg-muted); }
.contact a:hover { color: var(--accent-hover); }
.contact .ci {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Sections */
section { margin-bottom: 1.5rem; }
section:last-child { margin-bottom: 0; }

section > h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg-emph);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 0.2rem;
  margin-bottom: 0.8rem;
  margin-top: 0;
}

/* Entries */
.entry { margin-bottom: 0.9rem; }
.entry:last-child { margin-bottom: 0; }

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

.entry-header .title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg-emph);
}

.entry-header .date {
  font-size: 0.9rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.entry-sub {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.entry-sub .company { font-style: italic; }
.entry-sub .location { font-style: italic; color: var(--fg-muted); }

.entry ul {
  padding-left: 1.2rem;
  margin-top: 0.2rem;
}

.entry li {
  font-size: 0.94rem;
  margin-bottom: 0.15rem;
}

.earlier {
  font-size: 0.94rem;
  color: var(--fg);
  margin-top: 0.55rem;
  font-style: italic;
}

/* Skills */
.skills {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.6rem;
  row-gap: 0.2rem;
}
.skills dt {
  font-weight: 700;
  color: var(--fg-emph);
}
.skills dt::after { content: ":"; }
.skills dd { font-size: 0.95rem; }

/* Footer */
footer {
  margin-top: 2rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-align: center;
}
footer a { color: var(--fg-muted); }

/* Print */
@media print {
  :root, :root[data-theme="light"], :root[data-theme="dark"] {
    --bg: #fff; --fg: #000; --fg-emph: #000; --fg-muted: #333;
    --accent: #073642; --rule: #ccc;
  }
  body { padding: 0; max-width: none; font-size: 10.5pt; }
  a { color: var(--fg); border-bottom: none; }
  .theme-toggle, footer { display: none; }
  section { break-inside: avoid; }
}

/* Responsive */
@media (max-width: 640px) {
  html { font-size: 16px; }
  body { padding: 1.75rem 1rem 2rem; }
  header h1 { font-size: 1.85rem; }
  .contact { flex-wrap: wrap; white-space: normal; gap: 0.35rem 0.85rem; }
  .entry-header { flex-direction: column; }
  .entry-header .date { font-size: 0.85rem; }
  .entry-sub { flex-direction: column; }
  .theme-toggle { top: 0.6rem; right: 0.6rem; }
}
