:root {
  --cream: #fff8ea;
  --cream2: #fff1d6;
  --card: #fffcf4;
  --line: #f0dcb4;
  --text: #3b2a16;
  --muted: #7a6244;
  --gold: #a8660f;
  --gold2: #e9a93b;
  --glow: #fbd38d;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* golden hour sky: gradient that melts into the cream page */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #f9b95c 0%,
      #fccb7e 22%,
      #fde0ab 48%,
      #fff0cf 75%,
      var(--cream) 100%);
}
.sun {
  position: absolute;
  top: 70px;
  right: max(6vw, 30px);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff6d8 0%, #ffe3a0 38%, rgba(255, 208, 120, 0) 70%);
  box-shadow: 0 0 120px 60px rgba(255, 214, 140, 0.55);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(18px) scale(1.06); }
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(20px, calc((100vw - 1080px) / 2));
  background: rgba(255, 240, 207, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 102, 15, 0.18);
}
.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo span { color: var(--gold); }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.pill {
  color: #fff8ea !important;
  background: var(--gold);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.pill:hover { background: #8a520a; }

/* layout */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.block { padding: 90px 0 10px; }
.narrow { max-width: 680px; }
.center { text-align: center; margin: 0 auto; padding-bottom: 90px; }
.center p { color: var(--muted); margin: 10px 0 26px; }

/* hero */
.hero { padding: 100px 0 30px; }
.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.smile { color: var(--gold); }
.sub { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; margin-top: 12px; }
.lead { max-width: 560px; margin: 20px 0 28px; color: #5a4529; font-size: 1.1rem; }

/* badges, same feel as the github readme ones */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.badge {
  display: inline-flex;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s;
}
.badge b, .badge i { font-style: normal; padding: 6px 12px; }
.badge b { background: #555; color: #fff; }
.badge i { background: var(--gold); color: #fff8ea; font-weight: 700; }
a.badge:hover { transform: translateY(-2px); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions.mid { justify-content: center; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(168, 102, 15, 0.35);
  background: rgba(255, 252, 244, 0.6);
  font-weight: 600;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); background: var(--card); }
.btn.primary { background: var(--gold); color: #fff8ea; border-color: var(--gold); }
.btn.primary:hover { background: #8a520a; }

/* section headings */
.head { margin-bottom: 28px; }
h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.025em; }
h3.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--gold); letter-spacing: 0; }
.head p { color: var(--muted); margin-top: 6px; }

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(168, 102, 15, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold2); box-shadow: 0 12px 30px rgba(168, 102, 15, 0.16); }
.card h4 { font-size: 1.22rem; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card a { color: var(--gold); font-weight: 600; font-size: 0.93rem; margin-top: 6px; }
.card a:hover { text-decoration: underline; }
.tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--cream2);
  padding: 3px 11px;
  border-radius: 999px;
}

/* stack chips, gold like the profile */
.label { font-weight: 600; margin: 22px 0 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 14px;
  background: var(--gold);
  color: #fff8ea;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.chips li:hover { background: #8a520a; transform: translateY(-2px); }

/* about list */
.list { list-style: none; }
.list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line);
  color: #5a4529;
}
.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold2);
}

/* footer */
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer a:hover { color: var(--gold); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .nav nav a:not(.pill) { display: none; }
  .hero { padding-top: 64px; }
  .sun { width: 150px; height: 150px; top: 40px; }
}

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