:root {
  --bg: #faf8f4;
  --bg-warm: #f3ead9;
  --text: #0a2540;
  --muted: #5a6b7d;
  --border: #e6e3dc;
  --card-bg: #ffffff;
  --pill-bg: #f4f1ea;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --shadow-soft: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-lift: 0 8px 24px rgba(10, 37, 64, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 5%, var(--bg-warm) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 48px;
}

@media (max-width: 600px) {
  main { padding: 56px 20px 32px; }
}

/* ---------- HERO ---------- */

.hero { margin-bottom: 64px; position: relative; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.hero h1::after {
  content: "*";
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
  margin-left: 4px;
  font-size: 0.7em;
  vertical-align: super;
}

.hero .tagline {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.hero .intro {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  max-width: 480px;
  line-height: 1.5;
}

/* ---------- SECTIONS ---------- */

section { margin-bottom: 64px; }

section > h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

section > h2::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  display: inline-block;
}

/* ---------- PROJECT CARDS ---------- */

.project {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: #d6d2c6;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-head h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.project-head p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.embed {
  margin: 18px 0;
  border-radius: 12px;
  overflow: hidden;
}

.embed iframe {
  display: block;
  border: 0;
  width: 100%;
}

/* ---------- LINKS / PILLS ---------- */

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links li { display: inline-flex; }

.links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: var(--pill-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

/* ---------- FOOTER ---------- */

footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.socials a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--serif);
}

/* ---------- ACCESSIBILITY ---------- */

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
  .project:hover { transform: none; }
}
