/* sirvent.ai - Minimalist two-file website */

:root {
  --bg: #ffffff;
  --text: #333333;
  --heading: #111111;
  --muted: #666666;
  --link: #0969da;
  --link-hover: #044289;
  --border: #e1e4e8;
  --logo-bg: #ffffff;
  --logo-border: #e1e4e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --text: #c9d1d9;
    --heading: #f0f6fc;
    --muted: #8b949e;
    --link: #58a6ff;
    --link-hover: #79c0ff;
    --border: #30363d;
    --logo-bg: #ffffff;
    --logo-border: #30363d;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header */
#dhead {
  margin-top: 36px;
  margin-bottom: 24px;
}

#dhead .row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

#dpic {
  flex-shrink: 0;
}

.ppic {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

#ddesc {
  flex-grow: 1;
}

h1 {
  font-size: 32px;
  font-weight: normal;
  margin: 0 0 6px 0;
  color: var(--heading);
  letter-spacing: -0.4px;
}

h2 {
  font-size: 17px;
  font-weight: normal;
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.45;
}

#dico {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
}

#dico a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

#dico a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

#dico svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: -2px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0 32px 0;
}

/* History / Timeline */
#history {
  margin-bottom: 40px;
}

.entry.row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.timespan {
  width: 95px;
  flex-shrink: 0;
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 4px;
}

.ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background-color: var(--logo-bg);
  border: 1px solid var(--logo-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.ico img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Section Titles */
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 40px 0 22px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.code-icon {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.desc {
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.desc strong {
  color: var(--heading);
}

.desc ul {
  margin: 8px 0 8px 0;
  padding-left: 20px;
}

.desc ul li {
  margin-bottom: 4px;
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
}

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

/* Footer */
footer {
  margin-top: 48px;
  margin-bottom: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 4px 0;
}


/* Mobile */
@media (max-width: 650px) {
  #dhead .row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  #dico {
    justify-content: center;
  }
  
  .entry.row {
    flex-direction: column;
    gap: 8px;
  }
  
  .timespan {
    text-align: left;
    width: auto;
    font-weight: 600;
  }
  
  .ico {
    display: none;
  }
}
