/* Layout shell */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Wrapper container to center content */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Make About + Projects honor the wrapper too */
.about,
.projects {
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 16px;
}

/* Global text */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  margin: 0;
  padding: 0;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

/* Header block */
.site-header {
  text-align: center;
  margin-bottom: 40px;
}

.site-header h1 {
  font-size: 2.5rem;
  font-weight: 700; /* bold Montserrat */
}

.site-header .tagline {
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 400;  /* Inter, lighter */
  color: #555;
  font-style: italic;
}

.about {
  margin: 40px 0;
  background-color: #77c79b;
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-color: #5dd9c1;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-text {
  flex: 2;
}

.about-photo {
  flex: 1;
  max-width: 180px;
  padding: 10px;
}

.about-photo img {
  padding: 10px;
  width: 100%;
  height: auto;
  border-radius: 50%;   /* circle crop */
  border: 2px solid #ddd;
}

/* Stack vertically on mobile */
@media (max-width: 720px) {
  .about-row {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about-photo {
    max-width: 140px;
  }
}

/* Flexbox two-column row */
.row {
  display: flex;
  gap: 24px;             /* space between columns */
  align-items: flex-start;
}

/* Columns */
.column {
  display: flex;
  flex-direction: column;
}

/* Left: 25% / Right: 75% on larger viewports */
.left {
  flex: 0 0 25%;
  min-width: 180px;      /* keeps the avatar column from getting too tiny */
}

.right {
  flex: 1 1 0%;
}

/* Media: stack on small screens */
@media (max-width: 720px) {
  .row {
    flex-direction: column;
  }
  .left, .right {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Image styles */
.avatar {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Optional typography polish */
.section p {
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* Projects section */
.projects {
  margin-top: 32px;
  display: grid;       /* stacks as rows */
  gap: 50px;
}

/* Card */
.project {
  position: relative;
  background: #f8f0d9; /* manila color */
  border: 1px solid #d4c9a1;
  border-radius: 4px 4px 0 0;
  padding: 28px 16px 16px;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.1);
}

.project::after {
  content: "";
  position: absolute;
  top: -12px;      /* sit above main body */
  left: 0;
  width: 100%;
  height: 24px;    /* bar height */
  background: #e6d7aa; /* slightly darker manila */
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  z-index: 0;      /* sits behind the tab */
}

.project::before {
  content: "";
  position: absolute;
  top: -12px;   /* tab height */
  left: 0px;   /* tab inset */
  width: 200px; /* tab width */
  height: 24px; /* tab height */
  background: #f8f0d9;
  border: 1px solid #d4c9a1;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -1px 1px rgba(0,0,0,0.05);
  z-index: 1;
}

.project:hover {
  box-shadow: 3px 6px 10px rgba(0,0,0,0.15);
  border-color: #c7b98e;
}

.project-description {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #555;          /* softer than body text */
  line-height: 1.5;
}

/* Responsive 16:9 media wrapper */
.media {
  position: relative;
  width: 100%;
}

.media-16x9 {
  aspect-ratio: 16 / 9;              /* modern, simple */
}

.site-header h1 {
  font-size: 2.5rem;
}

.media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Linked image thumbnail */
.thumb-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Optional: nicer headings spacing inside cards */
.project h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.3;
}

