/* Constrain main width and center it */
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Theme variables */
:root {
  --bg-1: #a8c3a0;
  --bg-2: #fffdd0;
  --text: rgb(2, 90, 78);
  --muted: rgb(76, 103, 99);
  --hover: #f0f0f0;
}

[data-theme="dark"] {
  --bg-1: #0f1715;
  --bg-2: #1b2421;
  --text: #d3e6de;
  --muted: #b6c7c2;
  --hover: #22302b;
}

header{margin:1em 0 3em;}

.menu {
  display: flex;
  justify-content: center;  /* center the nav horizontally */
  gap: 3em;
  list-style-type: none;
  align-items: center;
  font-family: 'Inter', sans-serif; /* unify nav font */
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 20px;
  font-family: inherit; /* match nav font */
}

html, body { height: 100%; }
body {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--bg-1) 0%, var(--bg-2) 100%);
  margin: 0;
}

nav ul li{
  padding: 0.5em 1em;
  transition: background-color 0.3s ease;
  border-radius: 50px;
}

nav ul li:hover{
  background-color: var(--hover);
  border-radius: 50px;
}

/* Theme toggle button */
#theme-toggle {
  /* keep within centered menu, add slight spacing */
  margin: 0 0.25em;
  padding: 0.4em 0.9em;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit; /* match nav font */
}
#theme-toggle:hover { background: var(--hover); }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

h1 {
  font-family: "Playwrite AU TAS", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  font-size: 3rem;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 5em; /* slight extra space below title */
}

.big {
  font-size: 25px;
  font-weight: bold;
}

/* Adjust layout responsively */
.picture {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.picture aside {
  flex: 1;
  min-width: 300px;
}

.picture img {
  height: auto;
  width: 350px;
  max-width: 100%;
  border-radius: 40px;
}

/* Responsive design for smaller screens */
@media (max-width: 900px) {
  main {
    margin: 0 1em;
    padding: 0;
  }

  .picture {
    flex-direction: column;
    align-items: center;
  }

  .picture img {
    width: 80%;
    margin-top: 1em;
  }

  .picture p {
    font-size: 1rem;
    font-family: sans-serif;
  }
}
.big{margin-bottom: 2em;}
p {
  font-family: "Playwrite AU TAS", cursive;
  color: var(--text);
  line-height: 1.6;
}
/* Typewriter: cursor follows text */
#typewriter {
  display: block;
  width: max-content;      /* shrink to text width */
  margin: 0 auto;          /* center within layout */
  padding-right: 0.25em;   /* nudge cursor right of last character */
  font-family: "Playwrite AU TAS", cursive;
  color: var(--text);
  white-space: nowrap;
  overflow: visible;       /* avoid clipping last letter */
}

/* Only show blinking cursor while typing */
#typewriter.typing {
  border-right: 2px solid var(--text);
  animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { border-color: transparent; }
  51%, 100% { border-color: var(--text); }
}
