/* martinkargl.eu — typography-first, no framework, no JS */

:root {
  --bg: #fdfcf9;
  --text: #22201c;
  --muted: #6b665e;
  --accent: #8c3b2e;
  --rule: #e2ddd3;
  --tag-live: #3d6b35;
  --tag-planned: #8a6d1f;
  --tag-work: #4a5a78;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191816;
    --text: #e6e2da;
    --muted: #9a948a;
    --accent: #d98874;
    --rule: #35322d;
    --tag-live: #8fbf85;
    --tag-planned: #cfae55;
    --tag-work: #94a8cc;
  }
}

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

html {
  font-size: 17px;
}

body {
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

header.site {
  margin-bottom: 3rem;
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.subtitle {
  color: var(--muted);
  margin-top: 0.35rem;
}

nav.site {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

nav.site a {
  margin-right: 1.1rem;
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover {
  color: var(--accent);
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin-bottom: 1.3rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

p + p {
  margin-top: 0.9rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul.plain {
  list-style: none;
}

/* project / work entries */
.entry {
  margin-bottom: 1.8rem;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.entry p {
  margin-top: 0.3rem;
}

.tag {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag.live     { color: var(--tag-live); }
.tag.planned  { color: var(--tag-planned); }
.tag.work     { color: var(--tag-work); }
.tag.paused   { color: var(--muted); }

.when {
  color: var(--muted);
  font-size: 0.88rem;
}

.aside-note {
  color: var(--muted);
  font-style: italic;
}

/* contact list */
dl.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
  row-gap: 0.4rem;
}

dl.contact dt {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  padding-top: 0.15rem;
}

/* notes list */
ul.notes {
  list-style: none;
}

ul.notes li {
  margin-bottom: 0.8rem;
}

ul.notes .date {
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  margin-right: 0.8rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
