:root {
  --text: #222;
  --muted: #666;
  --link: #0a66c2;
  --bg: #ffffff;
  --border: #eaeaea;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-size: 20px;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav .container {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 20px;
}

.nav a {
  font-weight: 600;
  font-size: 1.2rem;
}

.nav .spacer {
  flex: 1;
}

/* --- Header --- */
.header {
  padding: 32px 0 12px;
}

.header h1 {
  font-size: 2.2rem;
  margin: 0;
}

.header .title {
  margin-top: 6px;
  line-height: 1.2;
}

/* --- Hero (profile image + intro) --- */
.hero {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.hero img {
  width: 240px;
  height: 320px;
  border-radius: 0px;
  border: 0px solid var(--border);
  object-fit: cover;
  background: #f2f2f2;
}

/* --- Section --- */
.section {
  padding: 8px 0 28px;
}

/* --- Headings --- */
h2 {
  margin: 22px 0 10px;
  font-size: 1.35rem;
}

h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
}

/* --- Listing / Cards --- */
.listing {
  display: grid;
  gap: 18px;
}

.card {
  padding: 14px 16px;
  background: #fff;
}

.small {
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Badges & Buttons --- */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
}

/* --- Inline Lists --- */
ul.inline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

ul.inline li {
  margin: 0;
}

/* --- Blockquote --- */
blockquote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--border);
  background: #fafafa;
  border-radius: 8px;
}

/* === Hero layout overrides (append at end) === */
.hero {
  flex-wrap: nowrap; /* force side-by-side on wide screens */
}

.hero > img {
  flex: 0 0 240px; /* fixed image column */
}

.hero > :not(img) {
  flex: 1 1 0;     /* flexible text column */
  min-width: 280px;
}

/* Responsive: stack on narrow screens */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero > img {
    width: 240px;
    height: 240px;
  }

  .hero > :not(img) {
    width: 100%;
  }
}

/* Remove the extra top gap in the text column */
.hero > :not(img) > *:first-child {
  margin-top: 0;
}

.header {
  text-align: center;
}
