:root {
  --ink: #12181f;
  --ink-soft: #3d4a58;
  --brand: #0d7377;
  --brand-deep: #095456;
  --accent: #e8a54b;
  --paper: #f3f1ec;
  --mist: #ddd8cf;
  --haze: #c5ddd8;
  --wash: #dce8e4;
  --line: rgba(18, 24, 31, 0.1);
  --max: 44rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-deep);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
}

.site-header .brand,
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  letter-spacing: normal;
  text-transform: none;
}

.site-header .brand::after,
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-header .brand:hover,
.nav a:hover {
  color: var(--ink);
}

.site-header .brand:hover::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.nav {
  display: flex;
  gap: 1.35rem;
}

main {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.hero {
  padding: 5rem 0 5.5rem;
  animation: rise 0.9s ease-out both;
}

.name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, var(--ink) 45%, var(--brand) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade 1s ease-out 0.12s both;
}

.lede {
  font-size: clamp(1.08rem, 2.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 2rem;
  animation: fade 1s ease-out 0.28s both;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.6rem;
  animation: fade 1s ease-out 0.42s both;
}

.hero-links a {
  font-size: 0.98rem;
  font-weight: 550;
}

.section {
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.8s ease-out both;
}

.section-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 1.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 165, 75, 0.22);
  flex-shrink: 0;
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 38rem;
}

.skeleton-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(13, 115, 119, 0.1);
  border-left: 3px solid var(--brand);
  border-radius: 0.4rem;
}

.skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.skel {
  display: block;
  height: 0.85rem;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--mist), var(--wash));
}

.skel-title {
  width: 42%;
  height: 1rem;
  background: linear-gradient(90deg, rgba(13, 115, 119, 0.2), var(--mist));
}

.skel-mid {
  width: 34%;
}

.skel-wide {
  width: 48%;
}

.skel-date {
  width: 3.5rem;
  height: 0.7rem;
  flex-shrink: 0;
  background: rgba(232, 165, 75, 0.28);
}

.skel-line {
  width: 100%;
}

.skel-short {
  width: 68%;
}

#about .skeleton-stack {
  gap: 0.65rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(13, 115, 119, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0.4rem;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  font-weight: 700;
  min-width: 5.5rem;
  text-decoration: none;
  color: var(--brand);
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.link-list a:hover {
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.link-list span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 3rem 0 3.75rem;
  }

  .skeleton-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .name,
  .lede,
  .hero-links,
  .section {
    animation: none;
  }
}
