:root {
  color-scheme: light;
  --bg: #f6f1ea;
  --ink: #1c1a17;
  --muted: #5a534c;
  --accent: #c45a1b;
  --accent-soft: #f2d0b6;
  --card: #ffffff;
  --stroke: rgba(28, 26, 23, 0.12);
  --shadow: 0 20px 60px rgba(28, 26, 23, 0.12);
}

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

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(196, 90, 27, 0.18), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(80, 123, 126, 0.2), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(242, 208, 182, 0.6), transparent 45%);
  pointer-events: none;
  z-index: -2;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(246, 241, 234, 0.85);
  border-bottom: 1px solid var(--stroke);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  min-height: 64px;
  transition: padding 0.2s ease;
}

.logo {
  font-family: "Fraunces", serif;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  line-height: 0;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s ease, font-size 0.2s ease, padding 0.2s ease;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
  display: block;
  border-radius: 999px;
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

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

.nav a.active {
  border-color: var(--accent);
  color: var(--ink);
}



.site-header.is-scrolled .header-inner {
  padding: 10px 0;
}

.site-header.is-scrolled .logo {
  width: 36px;
  height: 36px;
  transform: translateY(-1px);
}



.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 0 60px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 12px 0 8px;
}

.summary {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 30px rgba(196, 90, 27, 0.25);
}

.button.ghost {
  background: var(--card);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  border: 1px solid var(--stroke);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.section {
  padding: 70px 0;
}

.section-title {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pill-row span {
  border: 1px solid var(--stroke);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: 0 16px 30px rgba(28, 26, 23, 0.08);
}

.timeline-item ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.timeline-item ul li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 30px rgba(28, 26, 23, 0.08);
}

.writing-list {
  display: grid;
  gap: 18px;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(28, 26, 23, 0.12);
  background: var(--card);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.story-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.story-body {
  padding: 16px 18px 18px;
  background: #fff;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.story-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .writing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .writing-grid {
    grid-template-columns: 1fr;
  }
}

.more-toggle {
  justify-self: start;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tags span {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #603017;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.skills-grid h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.contact {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: 30px 0 40px;
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top {
  border: none;
  background: none;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 60px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
