/* Change these to make the template yours. */
:root {
  --bg: #ffffff;
  --panel: #fafafa;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --line: #ebebeb;
  --accent: #0a0a0a;
  --on-accent: #ffffff;
  --radius: 14px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --panel: #0c0c0c;
  --ink: #ededed;
  --muted: #8f8f8f;
  --line: #1f1f1f;
  --accent: #ededed;
  --on-accent: #000000;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); letter-spacing: -0.006em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.label { font: 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Menu */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.name { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--panel); color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .moon, :root:not([data-theme="dark"]) .sun { display: none; }

/* Intro */
.intro { padding: 112px 0 96px; }
.available { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.available::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16); }
h1 { margin: 22px 0 20px; max-width: 880px; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.intro p { max-width: 560px; margin: 0 0 32px; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 500 15px var(--font); text-decoration: none; cursor: pointer; }
.button.secondary { background: var(--bg); color: var(--ink); border-color: var(--line); }
.button:disabled { opacity: 0.6; cursor: default; }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { margin: 12px 0 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 44px; }

/* Work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: transform 0.2s, box-shadow 0.2s; }
.project:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35); }
.cover { aspect-ratio: 16 / 10; display: grid; place-items: center; font: 600 clamp(22px, 3vw, 34px) var(--font); letter-spacing: -0.03em; color: #fff; }
/* Replace these with screenshots: <img src="..." alt="..."> inside .cover */
.cover.one { background: linear-gradient(135deg, #111 0%, #3a3a3a 100%); }
.cover.two { background: linear-gradient(135deg, #0b3aa8 0%, #5b8cff 100%); }
.cover.three { background: linear-gradient(135deg, #0f5132 0%, #34c38f 100%); }
.cover.four { background: linear-gradient(135deg, #6d28d9 0%, #f472b6 100%); }
.project div:last-child { padding: 18px 20px 20px; }
.project h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.project p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
.about p { margin: 0 0 16px; font-size: 17px; color: var(--muted); }
.about p:first-child { color: var(--ink); font-size: 20px; line-height: 1.5; letter-spacing: -0.015em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time { font: 13px/1.9 var(--mono); color: var(--muted); }
.timeline strong { display: block; font-weight: 600; }
.timeline span { font-size: 14.5px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
.contact > div p { margin: 16px 0 24px; font-size: 17px; color: var(--muted); max-width: 400px; }
.links { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.links li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; }
input, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
input:focus, textarea:focus, .button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
textarea { resize: vertical; min-height: 130px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); }
.status[data-kind="ok"] { color: #15803d; border-color: rgba(21, 128, 61, 0.35); }
.status[data-kind="error"] { color: #c8312b; border-color: rgba(200, 49, 43, 0.35); }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 800px) {
  nav a { display: none; }
  .work, .about, .contact, .row { grid-template-columns: 1fr; }
  .about, .contact { gap: 36px; }
  .intro { padding: 72px 0 64px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .project { transition: none; } }
