/* ============================================
   SHARED STYLES — used by every page on the site
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: #2B2B2B;
  transition: background-color 0.3s ease;
}

/* --- Top navigation, same on every page --- */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

nav a:hover,
nav a.active {
  opacity: 1;
}

/* --- Home link, corner-positioned on the character pages
   (Sweetheart / Midnight / Velvet), replacing the full nav --- */
.home-corner {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.home-corner:hover {
  opacity: 1;
}

/* --- Page-level layout --- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

/* Height-based sizing (instead of width) so all three logos
   render at the same visual size as Midnight, even though each
   SVG has a different shape/aspect ratio. */
.logo-display {
  height: 215px;
  width: auto;
  max-width: 90%;
  margin: 0 auto 0.25rem;
}

h1.character-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6rem;
  font-weight: normal;
  margin: 0.25rem 0 0;
}

p.character-role {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}

p.character-bio {
  font-size: 1rem;
  line-height: 1.5;
  max-width: none;
  margin: 0.75rem auto;
}

.tagline {
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}

/* --- Links to the other two character pages. Fixed in the
   corner, stacked right under the "Home" link, so they don't
   take up space in the main content flow at all. --- */
.sibling-links {
  position: fixed;
  top: 3.25rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.sibling-link {
  width: 130px;
  padding: 0.4rem 0.75rem;
  border: 1px solid #EBD9D6;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sibling-link:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15);
}

footer {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* --- Theme: cream / hero page --- */
body.theme-hero {
  background: #FAF5F4;
  color: #2B2B2B;
}
body.theme-hero .home-corner { color: #2B2B2B; }

/* --- Theme: dark / icon page --- */
body.theme-icon {
  background: #1C1917;
  color: #F4EDEC;
}
body.theme-icon .home-corner { color: #F4EDEC; }
body.theme-icon .character-bio,
body.theme-icon .tagline { color: #E4D6D4; }
body.theme-icon .sibling-link { border-color: #3A3230; }

/* A little less top padding on the character pages, closer to
   the "Home" corner link (kept small so nothing gets clipped
   off the top of the page). */
body.theme-hero main,
body.theme-icon main,
body.theme-personal main {
  padding-top: 0.5rem;
}

/* --- Theme: white / personal page --- */
body.theme-personal {
  background: #FFFFFF;
  color: #2B2B2B;
}
body.theme-personal .home-corner { color: #B76E79; }

/* --- Theme: home page --- */
body.theme-home {
  background: #FAF5F4;
  color: #2B2B2B;
}
/* No nav bar on the homepage anymore, so just a bit of breathing
   room from the top of the page. */
body.theme-home main {
  padding-top: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Homepage intro — stretched to the same width as the card row
   below it, so lines run longer and the paragraph reads in fewer,
   wider lines instead of a tall narrow column. */
p.character-bio.home-intro {
  max-width: none;
}

/* --- Link right under the homepage bio that opens the idea popup --- */
.idea-teaser {
  margin: 1rem 0 0;
}

.idea-teaser a {
  color: inherit;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Idea/comment popup, homepage only. Submissions go through
   Netlify Forms — Netlify emails them to you once notifications
   are turned on in the site's dashboard. --- */
dialog.idea-form {
  max-width: 440px;
  width: 90%;
  margin: auto;
  padding: 2rem;
  border: none;
  border-radius: 16px;
  text-align: left;
  position: relative;
}

dialog.idea-form::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.idea-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}

.idea-close:hover {
  opacity: 1;
}

.idea-form h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 0.25rem;
  text-align: center;
}

.idea-form > p {
  text-align: center;
  opacity: 0.75;
  margin: 0 0 1.5rem;
}

.idea-form .hidden-field {
  display: none;
}

.idea-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin: 1rem 0 0.35rem;
}

.idea-form input[type="text"],
.idea-form input[type="email"],
.idea-form select,
.idea-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #EBD9D6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  color: inherit;
}

.idea-form textarea {
  resize: vertical;
}

.idea-form button {
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: #B76E79;
  color: #FFFFFF;
  font-family: 'Great Vibes', cursive;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idea-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15);
}

/* --- Link to the idea form, shown at the bottom of each
   character page --- */
.idea-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid currentColor;
}

.idea-link:hover {
  opacity: 1;
}

.card {
  border: 1px solid #EBD9D6;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15);
}

/* Fixed-height box each logo sits in, bottom-aligned, so the
   name/role text below always starts at the same spot even
   though the three logo files aren't the same shape. */
.card-img-wrap {
  height: 5.05cm;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 1rem;
}

.card img {
  width: auto;
  margin-bottom: 0;
}

/* Each logo's height is tuned so the actual heart mark (not
   the padding around it) measures the same size on all three.
   margin-top nudges each one down so the collar bar itself
   lines up at the same height, since the three files have
   different amounts of empty space above the collar. */
.img-hero { height: 4.36cm; margin-top: 0.62cm; }
.img-icon { height: 4.42cm; margin-top: 0.09cm; }
.img-personal { height: 4.5cm; margin-top: 0.05cm; }

/* Card backgrounds matched to each logo's own background,
   so there's no visible seam between the card and the logo. */
.card-hero { background: #FAF5F4; }
.card-icon { background: #1C1917; }
.card-icon .card-name,
.card-icon .card-role { color: #F4EDEC; }
.card-personal { background: #FFFFFF; }

.card .card-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  display: block;
}

.card .card-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* --- Little "still building" tag next to a project link --- */
.building-note {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.55;
  margin-left: 0.5rem;
}

/* --- Project link list, used on Velvet's page for her programs --- */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem auto;
  max-width: 440px;
  text-align: left;
}

.project-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #EBD9D6;
}

.project-list li:last-child {
  border-bottom: none;
}

/* --- Velvet's 4 links laid out 2x2 instead of a single column --- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  max-width: 480px;
}

.project-grid li {
  border-bottom: none;
}

.project-list a {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
  text-decoration: none;
  color: inherit;
}

.project-list p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}
