/*
  Shared styles for choco-mazapan.page.
  Nunito is served from this site's own /fonts folder, so pages make no
  requests to other servers and collect no visitor data.
  Font license: fonts/OFL.txt (SIL Open Font License 1.1).
*/
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFF6EC;
  --cocoa: #3B2418;
  --cocoa-soft: #6B4E3D;
  --mazapan: #E8A6A0;
  --mazapan-dark: #B5655D;
  --card: #FFFFFF;
  --shadow: 0 4px 14px rgba(59, 36, 24, 0.10);
  --radius: 18px;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: var(--mazapan-dark); }

a:focus-visible {
  outline: 3px solid var(--cocoa);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Top navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.brand {
  color: var(--cocoa);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--cocoa);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover { background: #FBE3E0; }

/* Marks the page the visitor is on. */
.nav-links a[aria-current="page"] { background: var(--mazapan); }

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
}

.intro {
  margin: 0 0 36px;
  color: var(--cocoa-soft);
  font-size: 1.1rem;
}

/* About page */
.about {
  max-width: 640px;
}

.about-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.about-header h1 { margin: 0; }

/*
  Placeholder circle. To use a picture instead, replace the
  <div class="avatar"> element with:
  <img class="avatar" src="avatar.png" alt="Description of the image">
*/
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--mazapan);
  box-shadow: var(--shadow);
  color: var(--cocoa);
  font-size: 2rem;
  font-weight: 800;
  object-fit: cover;
}

.about p {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .about-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Project cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.status {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* One class per status. Add more here if needed. */
.status-progress { background: #FBE3E0; color: var(--mazapan-dark); }
.status-blocked  { background: #FCEBC7; color: #8A5A00; }
.status-released { background: #DDF1DF; color: #2F6B3A; }
.status-paused   { background: #ECE6E1; color: var(--cocoa-soft); }

.update {
  margin: 0;
  color: var(--cocoa-soft);
  font-size: 0.95rem;
}

.update time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cocoa);
}

.button {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--mazapan);
  color: var(--cocoa);
  font-weight: 700;
  text-decoration: none;
}

.card .button {
  margin-top: auto;
  align-self: flex-start;
}

.button:hover,
.button:focus-visible {
  background: var(--mazapan-dark);
  color: #FFFFFF;
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--cocoa-soft);
  font-size: 0.85rem;
}

footer p { margin: 0 0 6px; }
