:root {
  --bg: #f5efdf;
  --bg-strong: #ecd9b2;
  --panel: rgba(255, 251, 243, 0.82);
  --panel-strong: rgba(255, 247, 230, 0.92);
  --ink: #1f1a14;
  --muted: #655a4d;
  --line: rgba(40, 32, 20, 0.14);
  --accent: #0f6d68;
  --accent-deep: #0b4d53;
  --accent-warm: #c86b2c;
  --accent-lime: #869c17;
  --shadow: 0 20px 60px rgba(53, 36, 13, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 226, 160, 0.35), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(15, 109, 104, 0.16), transparent 20%),
    linear-gradient(180deg, #f9f3e5 0%, #f5efdf 45%, #efe5ce 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 26, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 26, 20, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 85%);
}

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

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(245, 239, 223, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: grid;
  gap: 0.2rem;
}

.brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-nav a {
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

main {
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
}

.hero-copy,
.hero-panel,
.card {
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(251, 242, 226, 0.84));
}

.hero h1,
.page-head h1 {
  margin: 0.35rem 0 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.page-head h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

.lead {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 109, 104, 0.09);
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--accent-warm);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  border: 1px solid rgba(34, 26, 17, 0.08);
}

.stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.stat span {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  color: #f9f7f2;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #0b4349, #0f6d68 52%, #2d7d4f 100%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel .kicker {
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-panel h2,
.section-heading,
.project-card h2,
.timeline-item h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

.hero-panel h2 {
  font-size: 2rem;
  max-width: 12ch;
}

.hero-panel p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.quick-prompt {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-prompt code {
  display: block;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #f7fff8;
}

.page-head {
  margin: 1rem 0 1.3rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.badge {
  padding: 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip {
  padding: 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.56);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.status-active {
  background: rgba(44, 157, 94, 0.14);
  color: #0f5b34;
  border-color: rgba(44, 157, 94, 0.26);
}

.status-shipping {
  background: rgba(200, 107, 44, 0.14);
  color: #8a4113;
  border-color: rgba(200, 107, 44, 0.28);
}

.status-paused {
  background: rgba(123, 104, 238, 0.1);
  color: #4d4581;
  border-color: rgba(90, 79, 165, 0.22);
}

.status-done {
  background: rgba(107, 114, 128, 0.12);
  color: #495261;
  border-color: rgba(107, 114, 128, 0.24);
}

.grid-two,
.project-grid,
.session-grid,
.resume-grid,
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  background: var(--panel);
}

.emphasis-card {
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.95), rgba(250, 238, 213, 0.85)),
    var(--panel-strong);
}

.section-heading {
  font-size: 1.2rem;
}

.detail-block + .detail-block,
.divider {
  margin-top: 1.2rem;
}

.divider {
  border-top: 1px solid var(--line);
}

.label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.8;
}

.plain-list li + li {
  margin-top: 0.25rem;
}

.code-list code {
  font-size: 0.92rem;
}

.muted,
.micro-copy {
  color: var(--muted);
}

.micro-copy {
  font-size: 0.85rem;
}

.title-link {
  display: inline-block;
  margin-top: 0.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.copy-block {
  position: relative;
}

.copy-button {
  margin-top: 0.8rem;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fdfaf2;
  font: inherit;
  cursor: pointer;
  transition: 160ms ease;
}

.copy-button:hover {
  transform: translateY(-1px);
}

.copy-button.is-copied {
  background: var(--accent);
}

pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  border-radius: 20px;
  background: #131311;
  color: #f7f5ef;
  line-height: 1.7;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.list-section {
  margin-top: 1.5rem;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  transition: 160ms ease;
}

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

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.search-panel {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.search-input:focus {
  outline: 2px solid rgba(15, 109, 104, 0.24);
  outline-offset: 2px;
}

.project-card,
.session-card,
.resume-card {
  display: grid;
  gap: 1rem;
}

.project-card header,
.session-card header,
.resume-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-card h2,
.session-card h2,
.resume-card h2 {
  font-size: 1.4rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.empty-state {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.empty-state[hidden] {
  display: none;
}

.steps {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.85;
}

.steps li + li {
  margin-top: 0.3rem;
}

.prose {
  color: #2b241c;
  line-height: 1.85;
}

.prose h2,
.prose h3 {
  margin: 1.5rem 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.1rem;
}

.prose code {
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
  background: rgba(15, 109, 104, 0.08);
  color: var(--accent-deep);
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.prose blockquote {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 16px 16px 0;
  background: rgba(200, 107, 44, 0.08);
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-title {
  margin: 0 0 0.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hero,
  .grid-two,
  .project-grid,
  .session-grid,
  .resume-grid,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .page-head h1 {
    line-height: 0.98;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1120px, calc(100% - 1rem));
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }
}
