:root {
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #cc785c;
  --bg: #f5f0e8;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #e3dacc;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  font-size: 125%;
  border-bottom: 1px solid #80808024;
}

article {
  font-size: 85%;
}

.about-photo {
  float: right;
  max-width: 200px;
  height: auto;
  margin: 0 0 1rem 1.5rem;
  border-radius: 8px;
}

article h1 {
  font-size: 140%;
}

article h2 {
  font-size: 130%;
}

article h3 {
  font-size: 120%;
}

article h4 {
  font-size: 110%;
}

code {
  background-color: #818b981f;
  padding: .2em .4em;
  border-radius: 6px;
  white-space: break-spaces;
}

pre code {
  background-color: transparent;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-title {
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--fg);
  font-size: 0.95rem;
  transition: color 0.15s;
}

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

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  flex: 1;
  min-width: 0;
  width: 100%;
}

a {
  color: var(--fg);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

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

h1 { margin-top: 0; }

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background: #f0f0f0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
}

th, td {
  border: 1px solid #d0d0d0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

th {
  background: #f0f0f0;
}

.posts {
  /* margin-top: 3rem; */
  /* border-top: 1px solid #e5e5e5; */
  /* padding-top: 2rem; */
}

.posts ul {
  list-style: none;
  padding: 0;
}

.posts li {
  margin-bottom: 1.5rem;
}

.posts li a {
  font-weight: 600;
  font-size: 1.1rem;
}

.posts li .meta { margin-left: 0.5rem; }

.posts li p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 80%;
}

footer {
  background: #0d0d0d;
  color: #a0a0a0;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-linkedin {
  display: flex;
  color: #a0a0a0;
  transition: color 0.15s;
}

.footer-linkedin:hover {
  color: #ffffff;
}

.footer-copy {
  color: #a0a0a0;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .brand {
    width: 100%;
  }

  nav {
    margin-left: 0;
    flex-wrap: wrap;
  }

}
