:root {
  --bg: #f7f7f5;
  --text: #111111;
  --muted: #666666;
  --accent: #0a66ff;
  --border: #e6e6e6;
  --maxw: 1100px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin:  0;
  padding: 0;
}

body {
  font-family: "Inter", Arial, sans-serif;
/* system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: bold;
  font-size: 1.2rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  margin-left: 20px;
  transition: .3s;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 15px;
}

.hero p {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.1rem;
}

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: .3s;
}

.cta:hover {
  opacity: .9;
}

/* Sections */
section {
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}

section h2 {
  margin-top: 0;
  font-size: 2rem;
}

.lead {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.link:hover {
  text-decoration: underline;
}

/* Experience & Writing */
.item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.item:first-child {
  border-top: none;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.title {
  font-weight: bold;
}

.meta {
  color: var(--muted);
}

/* Footer */
footer {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
}

.social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  transition: .3s;
}

.social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {

  .nav {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 0 10px;
    display: inline-block;
  }

}




.image-row img {
    width: 100%;
    max-width: 750px;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--border);
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.image-row figure {
    margin: 0;
    text-align: center;
    flex: 1;
}

.image-row figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}











.image-row img,
.gallery img {
    height: auto;
    width: auto;
    max-height: 400px;
    max-width: 100%;
min-width: 350px;
    object-fit: cover;
}
