/* Base */
:root { --maxw: 820px; }
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #222;
  background: #f7f9f8;
}
a { color:#2d4a3f; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
header {
  background:#d7e2dd;
  color:#2d4a3f;
  padding: 16px 12px;
}
header h1 { margin: 0 0 8px; font-size: 22px; color:#2d4a3f; }
nav a { color:#2d4a3f; margin-right: 12px; }
main, footer { max-width: var(--maxw); margin: 24px auto; padding: 0 16px; }

/* Global headings in content (makes ALL section titles match) */
main h1, main h2, main h3 { line-height: 1.3; color:#2d4a3f; }
main h2 {
  font-size: 1.5rem;   /* ← set once for ALL section headings */
  font-weight: 600;    /* boldness matches About me */
  margin: 0 0 16px;    /* consistent spacing under headings */
}

/* Buttons */
button, .btn {
  display:inline-block;
  padding:10px 14px;
  border:1px solid #2d4a3f;
  background:#2d4a3f;
  color:#fff;
  border-radius:6px;
}
.btn--ghost {
  background:#fff;
  color:#2d4a3f;
  border:1px solid #2d4a3f;
}

/* Cards */
.card {
  border:1px solid #eee;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card__body { padding:14px; }

/* Figures */
.figure { margin:0; }
.figure__caption { font-size: 14px; color:#555; }

/* Footer */
footer {
  font-size: 14px;
  color:#666;
  border-top:1px solid #eee;
  padding-top:16px;
}

/* Accessibility */
.skip { position: absolute; left:-9999px; }
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fffa;
  padding: 6px 10px;
  border-radius: 6px;
}

/* === Personal section === */
.personal {
  margin: 40px 0;          /* a bit tighter overall */
  padding-top: 12px;       /* less space above the heading */
  border-top: 1px solid #d0d0d0;
  text-align: left;        /* ensure text is left-aligned */
}

/* personal heading: inherit global main h2 exactly */
.personal h2 {
  text-transform: none;    /* keep “On a personal note” as typed */
  margin: 6px 0 16px;      /* small gap after the divider then heading */
  text-align: left;
}

/* Photos row */
.personal-photos {
  display: flex;
  justify-content: center; /* center images only */
  align-items: center;
  gap: 32px;
  margin: 20px 0 20px;
  flex-wrap: wrap;
}
.personal-photos a { display: block; }

.personal-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: center bottom;  /* show skis */
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.personal-img:hover { transform: scale(1.04); }

/* Personal paragraph — left, not centered */
.personal p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: none;   /* no centered block constraint */
  margin: 0;         /* no auto-centering */
  text-align: left;  /* force left */
}

.skills p {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.4em 0;
}

.skills p:not(:first-child)::before {
  content: "•";             /* bullet */
  position: absolute;
  left: 0;
  color: #2d4a3f;           /* optional: match your site color */
  font-weight: bold;
}

p:first-child {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
}
