/* Home-only styles. Tokens and common components are in /shared/site.css. */

/* Hero */
.hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.stats strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 0.9rem; }
.hero-photo { justify-self: end; position: relative; }
.hero-photo::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border-radius: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); opacity: 0.35;
}
.hero-photo img { width: 100%; height: auto; max-width: 380px; aspect-ratio: 1; object-fit: cover; border-radius: 28px; border: 1px solid var(--border); }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.stack-group { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.stack-group h3 { margin-bottom: 2px; }
.years { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; }
.edu { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 20px; margin-top: 56px; }
.edu > div { padding: 28px; border: 1px solid var(--border); border-radius: 18px; }
.edu h3 { margin-bottom: 16px; }
.edu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.edu span { color: var(--muted); font-size: 0.95rem; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.project {
  display: block; padding: 28px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); color: var(--text); transition: transform 0.2s, border-color 0.2s;
}
a.project:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.project h3 { margin: 16px 0 8px; font-size: 1.3rem; }
.project p { color: var(--muted); font-size: 0.97rem; }
.project .link { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: start; order: -1; }
  .hero-photo img { max-width: 160px; border-radius: 22px; }
  .hero-photo::after { inset: 10px -10px -10px 10px; border-radius: 22px; }
  .edu { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
}

/* Legal page */
/* Legal page */
.legal .container { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal .cta { margin-top: 48px; }
@media (max-width: 860px) { .menu.menu-legal { position: static; display: flex; flex-direction: row; padding: 0; background: none; border: 0; } }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: center; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; text-align: center; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.form-status[data-kind="sent"] { background: color-mix(in srgb, #34d399 18%, transparent); }
.form-status[data-kind="error"] { background: color-mix(in srgb, #f87171 18%, transparent); }
.form-note { margin: 0; color: var(--muted); font-size: 0.88rem; text-align: center; }
.form-note a { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
