:root {
  --bg: #f6efe4;
  --surface: #fffdf8;
  --ink: #1b1510;
  --muted: #574b41;
  --accent: #b3551f;
  --accent-ink: #833c16;
  --accent-soft: #f0d4bd;
  --border: rgba(27, 21, 16, 0.18);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 40px);
  --maxw: 680px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 1.05rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) var(--pad) clamp(48px, 9vw, 96px);
}

a {
  color: var(--accent-ink);
}

/* nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(36px, 7vw, 64px);
  font-size: .95rem;
}

.nav .brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.nav .links {
  display: flex;
  gap: 10px;
}

.nav .links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(27, 21, 16, .16);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.nav .links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 21, 16, .16);
}

.nav .links a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* hero */
.eyebrow {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 20px;
  font-weight: 600;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.lead {
  font-size: clamp(1.1rem, 2.6vw, 1.28rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn .ico {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(27, 21, 16, .12);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 21, 16, .22);
}

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 2px 7px rgba(27, 21, 16, .16);
}

.btn.ghost:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 21, 16, .16);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(27, 21, 16, .12);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* sections */
.divider {
  height: 1px;
  background: var(--border);
  margin: clamp(48px, 8vw, 72px) 0;
  border: 0;
}

section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 18px;
}

section p {
  margin: 0 0 16px;
  color: var(--ink);
}

section p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* fit list */
.fit {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fit li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fit li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

/* work card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 36px);
}

.card .actions {
  margin-top: 24px;
}

.email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-ink);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--muted);
  margin-top: clamp(48px, 8vw, 72px);
}

footer a {
  color: var(--muted);
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  background: #0a66c2;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(27, 21, 16, .14);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.linkedin:hover {
  background: #004182;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(27, 21, 16, .18);
}

.linkedin .ico {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: block;
}

.linkedin .label {
  position: relative;
  top: 1px;
}

/* topics */
.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.topics li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.topics li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

/* session facts */
.facts {
  display: grid;
  gap: 10px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.facts li strong {
  color: var(--ink);
  font-weight: 600;
}

/* blog listing */
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.posts li {
  border-bottom: 1px solid var(--border);
}

.posts li:last-child {
  border-bottom: 0;
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 0;
}

.post-link:hover .post-title {
  color: var(--accent-ink);
}

.post-date {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 6px;
}

.post-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.post-summary {
  margin: 0;
  color: var(--muted);
}

/* single post */
.article h1 {
  margin-bottom: 8px;
}

.article .post-date {
  margin-bottom: 28px;
}

.article p {
  margin: 0 0 18px;
}

.article h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.article blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}

.article blockquote p {
  margin: 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 2px 7px rgba(27, 21, 16, .16);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.back:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 4px 10px rgba(27, 21, 16, .16);
}

/* post images */
.post-figure {
  margin: 26px 0;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.post-figure figcaption {
  margin-top: 8px;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
