:root {
  --bg: #8a6a54;      /* mid brown, matches the layered-waves background */
  --ink: #f8ecdc;     /* warm cream */
  --muted: #e6cfb3;   /* light tan */
  --accent: #e0a96d;  /* caramel, for future highlights */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  /* Layered brown waves image, filling the screen and staying still on scroll */
  background: var(--bg) url("background.jpg") center / cover no-repeat fixed;
  color: var(--ink);
  padding-inline: 20px;
}

main {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 6vw;
  padding-bottom: 64px;
}

/* Hero: text on the left, photo on the right */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
}
.intro {
  text-shadow: 0 2px 14px rgba(40, 22, 10, 0.55); /* keeps cream text readable on the lighter top band */
}

.photo {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(248, 236, 220, 0.35);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(40, 22, 12, 0.35);
  box-shadow:
    0 20px 50px rgba(20, 10, 4, 0.6),
    0 0 60px rgba(55, 32, 18, 0.55);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-placeholder {
  color: var(--muted);
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-style: italic;
}

/* Highlight cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 72px;
}
.card {
  padding: 24px;
  border: 1px solid rgba(248, 236, 220, 0.25);
  border-radius: 18px;
  background: rgba(38, 22, 13, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(20, 10, 4, 0.35);
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
}
.card-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}
.card-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 1.05rem;
  line-height: 1.5;
}
.card-list li + li { margin-top: 10px; }
.card-list li::marker { color: var(--accent); }

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-3px);
  background: rgba(38, 22, 13, 0.75);
  outline: none;
}

/* Quote */
.quote {
  max-width: none;
  margin: 72px auto 0;
  text-align: center;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  text-shadow: 0 2px 14px rgba(20, 10, 4, 0.6);
}
.quote blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
}
/* Keep the quote on one line where there's room (phones still wrap) */
@media (min-width: 860px) {
  .quote blockquote { white-space: nowrap; }
}
.quote figcaption {
  margin-top: 12px;
  color: var(--muted);
}

/* Inner pages (e.g. Achievements) */
.page-header { padding-top: 48px; }
.back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--muted);
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-weight: 500;
  text-decoration: none;
}
.back:hover { color: var(--ink); }

.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
/* Blog */
.post-list {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin-top: 56px;
}
.post h2 {
  margin: 0 0 14px;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
}
.post-body p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.7; }
.post-body.collapsed {
  max-height: 9.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.story-body p { white-space: pre-line; } /* keep poem line breaks */

.read-more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 500 0.95rem "Inter", system-ui, "Segoe UI", sans-serif;
  cursor: pointer;
}
.read-more:hover { color: var(--ink); }
.post-list .soon { color: var(--muted); font-family: "Inter", system-ui, sans-serif; font-style: italic; }

.achievement h2 {
  margin: 0 0 10px;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

/* Achievement cards: short summary + Learn more */
.achievement {
  display: flex;
  flex-direction: column;
}
.achievement .card-text {
  flex: 1;
  margin-bottom: 20px;
  color: var(--muted);
}
.learn-more {
  align-self: flex-start;
  padding: 9px 18px;
  border: 1px solid rgba(248, 236, 220, 0.45);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.learn-more:hover,
.learn-more:focus-visible {
  background: rgba(248, 236, 220, 0.12);
  border-color: var(--ink);
  outline: none;
}

/* Achievement detail pages */
.detail-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
}
.detail-org {
  margin: 16px 0 0;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
}
.detail-body {
  max-width: 760px;
  margin-top: 48px;
  padding: 32px;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
}
.detail-body h2 {
  margin: 28px 0 12px;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p,
.detail-body li { font-size: 1.05rem; line-height: 1.7; }
.detail-body p { margin: 0 0 14px; }
.detail-body ul { margin: 0; padding-left: 1.2em; }
.detail-body li + li { margin-top: 6px; }
.detail-body li::marker { color: var(--accent); }
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--ink); }
.detail-body .chips { padding: 0; }
.detail-body .chips li { margin-top: 0; font-size: 0.95rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  max-width: 760px;
  margin-top: 24px;
}
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto; /* show the whole image, never cropped */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 10, 4, 0.45);
}
.gallery figcaption {
  margin-top: 8px;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}
.video {
  max-width: 760px;
  margin: 24px 0 0;
}
.video video {
  display: block;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 24px rgba(20, 10, 4, 0.45);
}
.video figcaption {
  margin-top: 8px;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-heading {
  margin: 56px 0 0;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
}

/* Phones and small screens: stack everything */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .photo { justify-self: start; max-width: 280px; }
  .cards { grid-template-columns: 1fr; margin-top: 48px; }
  .detail-body { padding: 22px; }
}

h1 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(3.25rem, 11vw, 6.5rem);
  line-height: 1;
  text-shadow:
    0 4px 6px rgba(20, 10, 4, 0.8),        /* crisp near-black drop shadow */
    0 10px 24px rgba(20, 10, 4, 0.6),      /* softer, deeper shadow */
    0 0 10px rgba(30, 16, 8, 0.9),         /* espresso, almost black, hugging the letters */
    0 0 28px rgba(55, 32, 18, 0.8),        /* dark chocolate */
    0 0 60px rgba(80, 50, 32, 0.65),       /* mocha halo */
    0 0 100px rgba(80, 50, 32, 0.45);      /* soft mocha outer haze */
}

.subtitle {
  margin: 0 0 16px;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--muted);
}

.tagline {
  max-width: 36ch;
  margin: 20px 0 0;
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}

/* Buttons row */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.buttons button,
.buttons a {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(248, 236, 220, 0.45);
  border-radius: 999px;
  background: rgba(40, 22, 12, 0.45);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 10, 4, 0.35);
  transition: background .2s, transform .2s, border-color .2s;
}
.buttons button:hover,
.buttons button:focus-visible,
.buttons a:hover,
.buttons a:focus-visible {
  background: rgba(40, 22, 12, 0.75);
  border-color: var(--ink);
  transform: translateY(-2px);
  outline: none;
}

/* Pop-up windows */
.popup {
  width: min(560px, calc(100% - 32px));
  max-height: 80vh;
  padding: 36px 32px 32px;
  border: 1px solid rgba(248, 236, 220, 0.2);
  border-radius: 18px;
  background: rgba(38, 22, 13, 0.94);
  color: var(--ink);
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  box-shadow: 0 24px 60px rgba(10, 5, 2, 0.6);
}
.popup::backdrop {
  background: rgba(20, 10, 4, 0.55);
  backdrop-filter: blur(4px);
}
.popup[open] { animation: pop .25s ease-out; }
@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.popup h2 {
  margin: 0 0 18px;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.02em;
}
.popup h3 {
  margin: 24px 0 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.popup p { margin: 0 0 14px; }
.popup .soon { color: var(--muted); font-style: italic; }

.close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.close:hover { background: rgba(248, 236, 220, 0.1); color: var(--ink); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(224, 169, 109, 0.18);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .popup[open] { animation: none; }
  .buttons button { transition: none; }
}
