/* style.css — forced light theme */

/* ——— Theme tokens (light only) ——— */
:root {
  color-scheme: light; /* for form controls, scrollbars, etc. */
  --bg: #ffffff;
  --text: #1f2329;
  --muted: #6b7280;
  --link: #0b5fff;
  --card: #f7f8fa;
  --border: #e5e7eb;
  --accent: #4763ff;
  --accent-2: #9b8aff;
  --ring: rgba(71, 99, 255, .35);
  --shadow: 0 1px 1px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.06), 0 18px 48px rgba(0,0,0,.10);
  --radius: 14px;
}

/* ——— Base ——— */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
::selection { background: rgba(71,99,255,.18); color: var(--text); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transform: translateY(12px);
  animation: pageEnter .9s ease forwards;
  animation-delay: .05s;
}

h1, h2, h3, h4, h5, h6 {
  color: #000;
}

a { color: var(--link); text-decoration: none; position: relative; }
a:hover { text-decoration: none; }
a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
a:hover::after { transform: scaleX(1); }

.container { max-width: 980px; margin: 0 auto; padding: 24px; }

/* ——— Header / Nav ——— */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0;
}
.brand { font-weight: 900; letter-spacing: .2px; font-size: 1.05rem; }
.brand a { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand a::after { display: none; }

nav.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
nav.nav a { padding: 7px 11px; border-radius: 10px; border: 1px solid transparent; }
nav.nav a:hover { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); }
nav.nav a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

/* ——— Mobile nav ——— */
#nav-toggle { display: none; }
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; }
@media (max-width: 720px) {
  nav.nav { display: none; width: 100%; }
  .hamburger { display: inline-block; }
  .header-inner { flex-wrap: wrap; }
  #nav-toggle:checked + label + nav.nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 0 12px; }
}

/* ——— Hero ——— */
.hero {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; margin-top: 24px;
  opacity: 0; transform: translateY(24px);
  animation: sectionReveal .8s ease forwards;
  animation-delay: .05s;
}
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: 2.4rem; line-height: 1.15; margin: .2rem 0;
  color: #000;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.tagline { font-size: 1.05rem; color: var(--muted); margin-top: -6px; }
.meta { margin: .4rem 0 .6rem; color: var(--muted); }
.propic {
  width: 200px; height: 200px; border-radius: 18px; object-fit: cover;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.propic:hover {
  transform: translateY(-6px) scale(1.04) rotate(-0.5deg);
  border-color: color-mix(in oklab, var(--border), var(--accent) 40%);
  box-shadow: var(--shadow-lg);
}
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}
.hero-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.hero-links .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-links .ghost-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.hero-links .ghost-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.hero-links .ghost-btn::after { display: none; }
.hero-links .ghost-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--border), var(--accent) 20%);
  box-shadow: var(--shadow-lg);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.socials svg {
  width: 24px;
  height: 24px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: color-mix(in oklab, var(--border), var(--accent) 40%);
  box-shadow: var(--shadow);
}

/* ——— Pills ——— */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  font-size: .85rem; color: var(--muted); box-shadow: var(--shadow);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2)); }

/* ——— Sections ——— */
.section {
  margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--border); scroll-margin-top: 76px;
  opacity: 0; transform: translateY(24px);
  animation: sectionReveal .8s ease forwards;
}
.section:nth-of-type(1) { animation-delay: .15s; }
.section:nth-of-type(2) { animation-delay: .25s; }
.section:nth-of-type(3) { animation-delay: .35s; }
.section:nth-of-type(4) { animation-delay: .45s; }
.section:nth-of-type(5) { animation-delay: .55s; }
.section:nth-of-type(6) { animation-delay: .65s; }
.section h2 { font-size: 1.35rem; margin: 0 0 .6rem; }
.section h2 .anchor { color: inherit; position: relative; padding-right: 22px; }
.section h2 .anchor::after { display: none; }
.section h2 .anchor::before {
  content: "#"; position: absolute; right: 0; top: 50%; transform: translateY(-55%);
  font-weight: 700; color: var(--muted); opacity: 0; transition: opacity .2s ease;
}
.section h2:hover .anchor::before { opacity: 1; }

.list { display: grid; gap: 10px; }
.item {
  padding: 12px 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--border), var(--accent) 20%); }
.small { font-size: .95rem; }
.kicker { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-bottom: 4px; }

/* ——— Footer ——— */
.footer { margin: 48px 0 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); padding-top: 16px; }

/* ——— Focus / forms / code ——— */
:is(a, button, input, textarea, select):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 10px; }
code, kbd {
  background: var(--card); border: 1px solid var(--border); padding: .15rem .35rem;
  border-radius: .4rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .95em;
}
pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; overflow: auto; box-shadow: var(--shadow); }

/* ——— Lists ——— */
ul { padding-left: 1.2rem; }
li::marker { color: var(--muted); }

/* ——— Scrollbar (webkit) ——— */
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--border), var(--accent) 20%);
  border: 3px solid transparent; background-clip: content-box; border-radius: 999px;
}
*::-webkit-scrollbar-track { background: transparent; }

/* ——— Animations ——— */
@keyframes pageEnter {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes sectionReveal {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  body { opacity: 1 !important; transform: none !important; }
}
