/* =========================================================
   MelAlyGreen — personal academic site
   Static rebuild (migrated from Wix)
   ========================================================= */

:root {
  --green-900: #14342a;
  --green-700: #1f5141;
  --green-600: #2a6b54;
  --green-500: #3a8a6d;
  --teal-400: #57b89b;
  --teal-200: #bfe3d6;
  --cream: #faf7f1;
  --cream-2: #f1ece1;
  --ink: #20221f;
  --ink-soft: #4a4f49;
  --muted: #6f756d;
  --line: #e3ddd0;
  --white: #ffffff;
  --max: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 52, 42, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 52, 42, 0.07);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Playwrite AU VIC Guides", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; color: var(--green-900); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 .5em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; }

p { margin: 0 0 1.1em; }
a { color: var(--green-600); text-decoration-color: var(--teal-200); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-500);
  font-family: var(--sans);
  margin: 0 0 .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green-700);
  color: #fff;
  padding: .8em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-900); color: #fff; transform: translateY(-2px); }
.btn.outline { background: transparent; color: var(--green-700); border: 1.5px solid var(--green-600); }
.btn.outline:hover { background: var(--green-700); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: .5em .8em; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-900); background: var(--cream-2); }

.nav-social { display: flex; gap: 10px; align-items: center; margin-left: 8px; }
.nav-social a img { width: 20px; height: 20px; opacity: .7; transition: opacity .2s; }
.nav-social a:hover img { opacity: 1; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(87,184,155,0.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 80px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; align-items: center; }
.hero .roles { font-size: 1.05rem; color: var(--green-600); font-weight: 600; letter-spacing: .02em; margin-bottom: .8em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36ch; }
.hero-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
  aspect-ratio: 4/5; object-fit: cover;
}
.quote-strip {
  background: var(--green-900); color: var(--teal-200);
  text-align: center; font-family: var(--script); font-style: normal;
  padding: 18px 24px; font-size: 1.1rem; letter-spacing: .01em; line-height: 1.4;
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 26px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num { font-family: var(--serif); font-size: 2rem; color: var(--teal-400); display: block; margin-bottom: .2em; }
.card h3 { color: var(--green-700); }
.card p:last-child { margin-bottom: 0; }

/* Image cards (blog / writing / speaking) */
.media-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--cream-2); }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.media-card .meta { font-size: .82rem; color: var(--muted); margin-bottom: .5em; text-transform: uppercase; letter-spacing: .06em; }
.media-card h3 { font-size: 1.18rem; margin-bottom: .4em; }
.media-card p { color: var(--ink-soft); font-size: .98rem; }
.media-card .more { margin-top: auto; color: var(--green-600); font-weight: 600; font-size: .92rem; }

/* ---------- Book feature ---------- */
.book { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.book .cover img { border-radius: 8px; box-shadow: var(--shadow); max-width: 320px; margin: 0 auto; }

/* ---------- Impact lists ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.impact-grid h3 { color: var(--green-700); font-size: 1.15rem; border-bottom: 2px solid var(--teal-200); padding-bottom: .4em; }
.impact-grid ul { list-style: none; padding: 0; margin: 0; }
.impact-grid li { padding: .5em 0 .5em 1.5em; position: relative; color: var(--ink-soft); font-size: .98rem; }
.impact-grid li::before { content: "›"; position: absolute; left: 0; color: var(--teal-400); font-weight: 700; }

/* ---------- Publications ---------- */
.pub-list { display: grid; gap: 20px; }
.pub {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal-400);
  border-radius: 10px; padding: 24px 28px; box-shadow: var(--shadow-sm);
}
.pub .date { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pub h3 { font-size: 1.2rem; margin: .2em 0 .4em; }
.pub .cite { font-size: .95rem; color: var(--ink-soft); margin-bottom: .6em; }
.pub .cite a { word-break: break-word; }

/* ---------- CV ---------- */
.cv-item { border-left: 2px solid var(--line); padding: 0 0 30px 28px; position: relative; }
.cv-item::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--teal-400); border: 3px solid var(--cream);
}
.cv-item:last-child { padding-bottom: 0; }
.cv-item .when { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cv-item h3 { margin: .2em 0 .1em; font-size: 1.25rem; }
.cv-item .org { color: var(--green-600); font-weight: 600; margin-bottom: .5em; }
.cv-item ul { margin: .4em 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.cv-item ul li { margin-bottom: .3em; }

/* ---------- Writing / speaking list rows ---------- */
.entry {
  display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.entry .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: var(--cream-2); }
.entry .thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry h3 { font-size: 1.25rem; margin-bottom: .25em; }
.entry .source { color: var(--green-600); font-weight: 600; font-size: .95rem; margin-bottom: .6em; }
.entry p { color: var(--ink-soft); font-size: .98rem; }
.entry .source .year { color: var(--muted); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-card a { font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .55em 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Article (blog post) ---------- */
.post-hero { background: var(--cream-2); padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.post-hero .meta { color: var(--muted); font-size: .92rem; margin-top: .5em; }
.article { padding: 50px 0 70px; }
.article .narrow > p { font-size: 1.08rem; }
.article h2, .article h3 { margin-top: 1.4em; }
.article blockquote {
  border-left: 4px solid var(--teal-400); margin: 1.4em 0; padding: .4em 0 .4em 1.4em;
  font-family: var(--serif); font-style: italic; color: var(--green-700); font-size: 1.15rem;
}
.article .refs { font-size: .9rem; color: var(--muted); }
.article .refs p { margin-bottom: .8em; word-break: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.tags a, .tags span { background: var(--cream-2); color: var(--green-700); border-radius: 999px; padding: .35em 1em; font-size: .85rem; text-decoration: none; }
.post-nav { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Newsletter / Footer ---------- */
.newsletter { background: var(--green-900); color: #e9f3ee; padding: 60px 0; }
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--teal-200); }
.subscribe { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.subscribe input {
  flex: 1; min-width: 220px; padding: .85em 1.1em; border-radius: 999px; border: 1px solid var(--green-500);
  background: rgba(255,255,255,.95); font-size: 1rem; font-family: var(--sans);
}
.form-note { font-size: .85rem; margin-top: 1em; }

.site-footer { background: var(--green-900); color: #cfe0d8; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner .copy { font-size: .9rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: .8; }
.footer-social a:hover img { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .book, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 380px; }
  .cards.c3, .cards.c2, .impact-grid { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry .thumb { max-width: 100%; }

  .nav-links, .nav-social {
    position: fixed; top: 71px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px; gap: 4px; margin: 0;
    max-height: 0; overflow: hidden; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .nav-social { top: auto; position: static; flex-direction: row; padding-top: 8px; }
  .nav-toggle:checked ~ .nav-links { max-height: 80vh; opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .7em .6em; font-size: 1.05rem; }
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .nav-toggle-label span { width: 26px; height: 2.5px; background: var(--green-900); border-radius: 2px; transition: .25s; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  section.block { padding: 52px 0; }
  .hero { padding: 50px 0 40px; }
}
