/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --ink: #2e3231;
  --ink-soft: #535956;
  --sage: #7fa69b;
  --sage-deep: #5f8479;
  --sage-tint: #eef4f2;
  --dark: #2e3231;
  --line: #e8eae9;
  --shadow: 0 16px 40px rgba(46, 50, 49, 0.08);
  --radius: 24px;
  --font-display: "Crimson Text", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

em {
  font-style: italic;
  color: var(--sage);
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-name, .footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage-deep);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--sage-deep); }

.nav-cta {
  background: var(--dark);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

/* ============ Kicker + section heads ============ */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 14px;
}

.squiggle {
  width: 52px;
  color: var(--sage);
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 18px;
}

/* ============ Hero ============ */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) 24px 30px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--sage);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(127, 166, 155, 0.4);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  transform: translateY(-2px);
}

.btn-big { font-size: 1.05rem; padding: 17px 36px; }

/* ============ Sections ============ */
.section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) 24px 0;
}

/* ============ App cards ============ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.app-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 34px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}

.app-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sage-tint);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
}

.app-icon svg {
  width: 30px;
  height: 30px;
}

.app-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.app-tagline {
  color: var(--sage-deep);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.app-desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 22px;
}

.app-link {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border-bottom: 1.5px solid var(--sage);
  padding-bottom: 2px;
}

/* ============ Project rows ============ */
.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}

.project-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 44px);
  padding: 34px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
  border-radius: 10px;
}

.project-row:hover { background: var(--bg-soft); }

.project-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--sage);
  opacity: 0.55;
  flex-shrink: 0;
  min-width: 72px;
  transition: opacity 0.2s ease;
}

.project-row:hover .project-num { opacity: 1; }

.project-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.project-row p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 560px;
  margin-bottom: 12px;
}

.project-tags {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-tint);
  padding: 6px 14px;
  border-radius: 999px;
}

.more-link {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-soft);
}
.more-link a {
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--sage);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  margin-bottom: 18px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hobby-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hobby-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.hobby-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-tint);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
}

.hobby-icon svg {
  width: 22px;
  height: 22px;
}

.hobby-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.hobby-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ============ Contact ============ */
.contact {
  text-align: center;
  padding-bottom: clamp(70px, 12vh, 120px);
}

.contact .section-head { margin-bottom: 36px; }

/* ============ Footer ============ */
.footer {
  background: var(--dark);
  padding: 56px 24px 40px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  color: #fff;
  font-size: 1.35rem;
  justify-content: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 26px 0 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--sage); }

.footer-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { font-size: 0.85rem; }
  .nav-name { font-size: 1.05rem; }
  .project-num { min-width: 52px; }
}
