* {
  box-sizing: border-box;
}

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #111111;
  --muted: #555555;
  --border: #e3e3e3;
  --accent: #2b6cb0;
  --accent-soft: #edf2fa;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
  margin: 0;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ===== Header ===== */
header {
  background: var(--card);
  padding: 3rem 2rem 2.25rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 0.3rem;
  color: var(--muted);
}

nav {
  margin-top: 1.2rem;
}

nav a {
  margin-right: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Layout ===== */
section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

h2 {
  font-size: 1.65rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
}

/* ===== Cards ===== */
.project,
.entry {
  background: var(--card);
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.tags {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f0f3f7;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

/* ===== Button ===== */
.button {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(43, 108, 176, 0.25);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.button:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===== Experience ===== */
.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

/* ===== Skills ===== */
.skills {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.skills li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ===== Images ===== */
figure {
  margin: 2rem 0;
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

img {
  width: 100%;
  border-radius: 8px;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Footer ===== */
footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* ===== Mobile ===== */
@media (max-width: 650px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.construction-banner {
  background: repeating-linear-gradient(
    45deg,
    #f6c453,
    #f6c453 12px,
    #f2b632 12px,
    #f2b632 24px
  );
  color: #111;
  text-align: center;
  font-weight: 600;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
