:root {
  --bg: #faf6ec;
  --paper: #fffdf6;
  --ink: #23262b;
  --ink-soft: #585c63;
  --blue: oklch(58% 0.16 255);
  --blue-soft: oklch(93% 0.03 255);
  --coral: oklch(64% 0.18 35);
  --coral-soft: oklch(93% 0.05 40);
  --yellow: oklch(92% 0.09 95);
  --dot: oklch(20% 0 0 / 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 56px 72px;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Kalam', cursive;
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: 46px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 20px;
}

.hand {
  font-family: 'Caveat', cursive;
}

a {
  color: var(--blue);
  text-decoration: none;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 90%;
  padding-bottom: 1px;
}

a:hover {
  background-color: var(--coral-soft);
}

/* Links used as bare structural wrappers (nav items, post cards) skip the
   marker-underline treatment above. */
.nav a,
.post-link {
  background-image: none;
  padding-bottom: 0;
  color: inherit;
}

.nav a:hover,
.post-link:hover {
  background-color: transparent;
}

.icon {
  stroke: var(--ink);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-name {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: 23px;
}

.tab {
  position: relative;
  font-family: 'Kalam', cursive;
  font-size: 17px;
  padding: 9px 20px;
  color: var(--ink-soft);
}

.tab.active {
  color: var(--ink);
}

.sketchbox {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
}

.sketchbox path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card {
  position: relative;
  background: var(--paper);
  padding: 26px 30px;
  max-width: 640px;
  transform: rotate(var(--tilt, 0deg));
}

.card .sketchbox path {
  stroke-width: 2.2;
}

.card--dashed {
  background: transparent;
  border: 1px dashed var(--ink-soft);
}

.card--narrow {
  width: 300px;
}

.card--contact {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 23px;
}

.card-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.tag {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 13px 6px;
  position: relative;
  display: inline-block;
  margin: 4px 6px 0 0;
  color: var(--blue);
}

.tag--coral {
  color: var(--coral);
}

.tag .sketchbox path {
  stroke-width: 2;
}

.meta {
  font-family: 'Caveat', cursive;
  font-size: 19px;
  color: var(--ink-soft);
}

.meta--sm {
  font-size: 17px;
}

.card-heading {
  margin-top: 4px;
}

.card-subtext {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.placeholder-note {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px 56px;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--ink-soft);
}

/* Page intro: h1/h2 + a small doodle icon side by side */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.section-title--spaced {
  margin: 56px 0 24px;
}

.section-title--tight {
  margin-bottom: 24px;
}

.subtitle {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 44px;
}

.subtitle--tight {
  margin-bottom: 8px;
}

.prose {
  max-width: 640px;
}

/* Home hero */
.hero {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 52px;
}

.avatar {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.avatar-portrait {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
}

.avatar-eye {
  transform-box: fill-box;
  transform-origin: center;
}

.tagline {
  font-size: 25px;
  color: var(--blue);
  margin-top: 6px;
}

.lede {
  font-size: 18px;
  line-height: 1.65;
  margin-top: 22px;
  color: var(--ink-soft);
}

.link-row {
  display: flex;
  gap: 36px;
  margin-top: 64px;
  font-size: 18px;
  flex-wrap: wrap;
}

/* Sticky-note callout */
.callout-wrap {
  position: relative;
  margin: 56px 0 8px;
  max-width: 520px;
}

.callout-arrow {
  position: absolute;
  left: -90px;
  top: -46px;
}

.sticky-note {
  position: relative;
  background: var(--yellow);
  padding: 22px 26px;
  transform: rotate(var(--tilt, 0deg));
}

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: none;
  background: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-4px) scale(1.05);
}

.to-top-icon {
  width: 30px;
  height: 17px;
}

.sticky-note-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sticky-note-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

/* Experience page */
.intro-block {
  max-width: 640px;
  margin-bottom: 18px;
}

.bullet-list {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.tag-row {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Contact page */
.field-label {
  font-size: 18px;
  color: var(--ink-soft);
}

.field-value {
  font-size: 18px;
}

.signoff {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.signoff-text {
  font-size: 26px;
}

/* Blog listing + post */
.post-title {
  font-size: 38px;
  margin-top: 18px;
}

.post-body {
  font-size: 17px;
  line-height: 1.75;
  margin-top: 26px;
}

.post-card {
  margin-bottom: 22px;
}

.post-card-title {
  font-size: 22px;
  color: var(--ink);
}

.card-excerpt {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.post-date {
  font-size: 15px;
  color: var(--ink-soft);
}

.blog-empty-note {
  position: relative;
  max-width: 420px;
  margin: 26px 0 40px;
  background: var(--yellow);
  padding: 18px 22px;
}

.empty-note-text {
  font-size: 19px;
  line-height: 1.5;
}

.back-link {
  font-size: 17px;
}
