/* =========================================================
   janinelim.com — main stylesheet
   Static site, no frameworks, no JS dependencies.
   ========================================================= */

:root {
  --dark-green: #1a3d2b;   /* nav background, headings, footer */
  --pill-green: #2d6b45;   /* nav pills, default state */
  --bright-green: #4a9e6a; /* nav pills hover/active, links */
  --pale-mint: #e8f5ec;    /* section backgrounds */
  --blue-grey: #869fc1;    /* soft accent */
  --pale-blue: #dce8f4;    /* Creative Outlets section background */
  --white: #ffffff;        /* content backgrounds */
  --body-text: #333333;    /* body text */

  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-width: 960px;
}

/* ---------- Reset / base ---------- */

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

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

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bright-green);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark-green);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 56px 0;
}

/* ---------- Masthead / hero ---------- */

.masthead-wrap {
  position: relative;
}

.masthead-image {
  width: 100%;
  display: block;
  /* deliberately no overlay, filter, or opacity change */
}

.masthead-overlay {
  position: absolute;
  left: 28px;
  bottom: 20px;
  text-align: left;
}

.masthead-overlay .site-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.75rem;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.7);
}

.masthead-overlay .site-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--white);
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ---------- Nav ---------- */

.site-nav {
  background-color: var(--dark-green);
  padding: 16px 24px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-nav a {
  display: inline-block;
  background-color: var(--pill-green);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.active {
  background-color: var(--bright-green);
  text-decoration: none;
}

/* ---------- Academic section ---------- */

.academic-section {
  background-color: var(--white);
}

.academic-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.academic-flex img {
  width: 220px;
  border-radius: 8px;
  flex-shrink: 0;
}

.academic-flex .academic-text {
  flex: 1;
}

/* ---------- Creative Outlets section ---------- */

.creative-section {
  background-color: var(--pale-blue);
}

.creative-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.creative-flex img {
  width: 200px;
  border-radius: 8px;
  flex-shrink: 0;
}

.creative-outlets-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.creative-outlets-grid .outlet-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 24px;
  flex: 1 1 260px;
}

.creative-outlets-grid .outlet-card h3 {
  color: var(--dark-green);
}

/* ---------- Generic content sections (used on inner pages) ---------- */

.page-section {
  background-color: var(--white);
}

.page-section.alt {
  background-color: var(--pale-mint);
}

.page-header {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 40px 0 32px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 6px;
}

.page-header p {
  color: var(--pale-mint);
  margin: 0;
}

/* ---------- Publications list ---------- */

.publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.publications-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--pale-mint);
}

.publications-list li:first-child {
  padding-top: 0;
}

.placeholder-line {
  color: #888;
  font-style: italic;
}

/* ---------- Presentation cards ---------- */

.presentation-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.presentation-card {
  background-color: var(--pale-mint);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.presentation-card h3 {
  margin-bottom: 8px;
}

.presentation-card p {
  flex: 1;
}

.btn {
  display: inline-block;
  background-color: var(--pill-green);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.15s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--bright-green);
  text-decoration: none;
}

.presentation-list-simple {
  list-style: none;
  margin: 0;
  padding: 0;
}

.presentation-list-simple li {
  padding: 10px 0;
  border-bottom: 1px solid var(--pale-mint);
}

/* ---------- Projects ---------- */

.project-card {
  background-color: var(--pale-mint);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}

.project-card h3 {
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 12px 0;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 32px 0;
  text-align: center;
}

.site-footer a {
  color: var(--pale-mint);
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .masthead-overlay { left: 16px; bottom: 12px; }
  .masthead-overlay .site-title { font-size: 1.9rem; }
  .masthead-overlay .site-subtitle { font-size: 0.95rem; }

  .academic-flex,
  .creative-flex {
    flex-direction: column;
  }

  .academic-flex img,
  .creative-flex img {
    width: 160px;
  }

  .presentation-cards {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ---------- Faith / essay pages ---------- */

.essay-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.6rem;
  font-style: italic;
}

.essay-body img {
  max-width: 280px;
  border-radius: 6px;
  margin: 0 0 1rem 1.5rem;
  float: right;
}

.essay-body.no-float img {
  float: none;
  max-width: 100%;
  margin: 0 0 1.2rem;
}

.judgment-story {
  background-color: #000833;
  color: #e8e8e8;
  padding: 28px 32px;
  border-radius: 8px;
}

.judgment-story a {
  color: #ffe680;
}

/* ---------- Leadership Portfolio ---------- */

.portfolio-menu {
  background-color: var(--pale-mint);
  border-radius: 8px;
  padding: 20px 28px;
  margin-bottom: 32px;
}

.portfolio-menu h3 {
  margin-bottom: 10px;
}

.portfolio-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}

.portfolio-menu li {
  padding: 3px 0;
  font-size: 0.92rem;
  break-inside: avoid;
}

.portfolio-body .Header {
  display: block;
  font-family: var(--font-heading);
  color: var(--dark-green);
  font-weight: bold;
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.portfolio-body .normalitalics {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
}

.portfolio-body .TinyItalicized {
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
}

.portfolio-body .image {
  margin: 0 0 1rem 1.5rem;
}

.portfolio-body .image img {
  max-width: 220px;
  border-radius: 6px;
}

.portfolio-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.5rem;
}

.portfolio-body table td {
  border: 1px solid var(--pale-mint);
  padding: 10px;
  vertical-align: top;
}

@media (max-width: 700px) {
  .portfolio-menu ul {
    columns: 1;
  }
}

.dialogue {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.dialogue td {
  padding: 6px 10px 6px 0;
  vertical-align: top;
}

.dialogue td.speaker {
  font-weight: 700;
  color: var(--dark-green);
  white-space: nowrap;
  width: 90px;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}

.faith-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.faith-card {
  background-color: var(--pale-mint);
  border-radius: 8px;
  padding: 22px;
}

.faith-card h3 {
  margin-bottom: 8px;
}

.faith-quiet-note {
  background-color: var(--pale-blue);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 8px;
}

/* ---------- Gingerbread ---------- */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.highlight-grid figure {
  margin: 0;
}

.highlight-grid img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.highlight-grid figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

.year-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--pale-mint);
}

.year-block img {
  width: 220px;
  border-radius: 8px;
  flex-shrink: 0;
}

.year-block h3 {
  margin-bottom: 6px;
}

.year-block a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.92rem;
}

.recipe-block {
  background-color: var(--pale-mint);
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 40px;
}

.recipe-block h2 {
  margin-top: 0;
}

/* ---------- Gingerbread year galleries ---------- */

.gallery-intro {
  max-width: 700px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.photo-gallery figure {
  margin: 0;
  background-color: var(--pale-mint);
  border-radius: 8px;
  padding: 12px;
}

.photo-gallery img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.photo-gallery figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}
