/* Teaching portfolio — Mark Schachner
   Palette evolved from the personal site stylesheet:
   deep green / antique cream / burlywood-gold accents. */

:root {
  --bg: hsl(40, 100%, 97%);
  --bg-band: hsl(150, 14%, 22%);
  --bg-card: #ffffff;
  --bg-card-band: hsl(150, 13%, 27%);
  --ink: hsl(152, 13%, 18%);
  --ink-soft: hsl(152, 8%, 32%);
  --ink-on-dark: hsl(34, 78%, 91%);
  --ink-on-dark-soft: hsl(36, 30%, 75%);
  --green: #303e37;
  --accent: #8b5a2b;
  --gold: #d4af37;
  --gold-deep: goldenrod;
  --border: rgba(48, 62, 55, 0.16);
  --shadow: 0 12px 32px rgba(48, 62, 55, 0.07);
  --radius: 14px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Nunito", "Verdana", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green);
  line-height: 1.15;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--gold-deep);
}

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


/* ============ Nav ============ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--green);
  box-shadow: 0 4px 14px rgba(48, 62, 55, 0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-on-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  margin: 0 auto;
  background: var(--gold);
  transition: width 200ms ease;
}

.nav-links a:hover::after {
  width: 100%;
}


/* ============ Layout primitives ============ */

main > section,
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

section {
  scroll-margin-top: 70px;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 18px;
}

.section-intro {
  max-width: 720px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}


/* ============ Hero ============ */

.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-text {
  flex: 1.2;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 20px;
}

.hero-blurb {
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  background: rgba(48, 62, 55, 0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--green);
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.button:hover {
  background-color: rgba(48, 62, 55, 0.08);
  color: var(--green);
}

.button.primary {
  background-color: var(--green);
  color: var(--ink-on-dark);
}

.button.primary:hover {
  background-color: hsl(150, 13%, 30%);
}

.hero-photo {
  flex: 1;
  min-width: 280px;
  position: relative;
  border-radius: var(--radius);
}

.hero-photo img {
  border-radius: var(--radius);
  width: 100%;
}

/* Inner shadow sits above the image so it reads as inset into the page */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow:
    inset 0 3px 10px rgba(48, 62, 55, 0.45),
    inset 0 -1px 4px rgba(48, 62, 55, 0.25),
    inset 0 0 0 1px var(--border);
  pointer-events: none;
}


/* ============ Experience timeline ============ */

.timeline-heading {
  font-size: 1.35rem;
  margin: 36px 0 20px;
  color: var(--accent);
}

.timeline {
  list-style: none;
  border-left: 3px solid var(--gold-deep);
  margin-left: 8px;
  padding-left: 0;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 0 0 34px 32px;
}

.timeline li:last-child {
  padding-bottom: 10px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--green);
}

.timeline .when {
  flex: 0 0 150px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  padding-top: 4px;
}

.timeline h4 {
  font-size: 1.18rem;
  margin-bottom: 2px;
}

.timeline .where {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.timeline .what p:not(.where) {
  color: var(--ink-soft);
  max-width: 640px;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.edu-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.edu-card ul {
  list-style: none;
}

.edu-card li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ink-soft);
}

.edu-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--gold-deep);
  font-weight: 900;
}


/* ============ Evaluations (dark band) ============ */

.band {
  max-width: none;
  background: var(--bg-band);
  border-top: 3px solid var(--gold-deep);
  border-bottom: 3px solid var(--gold-deep);
}

.band > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.band h2,
.band h3 {
  color: var(--ink-on-dark);
}

.band .overline {
  color: var(--gold);
}

.band .section-intro {
  color: var(--ink-on-dark-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.stat {
  background: var(--bg-card-band);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1.1;
}

.stat-outof {
  font-size: 1.3rem;
  color: var(--ink-on-dark-soft);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--ink-on-dark-soft);
}

.featured-quote {
  margin: 0 auto 48px;
  max-width: 820px;
  text-align: center;
  padding: 0 12px;
}

.featured-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink-on-dark);
}

.featured-quote figcaption {
  margin-top: 14px;
  color: var(--gold);
  font-weight: 600;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.quote-card {
  background: var(--bg-card-band);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.quote-card p {
  color: var(--ink-on-dark);
}

.quote-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-soft);
}

.quote-card.alt {
  border-left-color: rgba(255, 255, 255, 0.25);
}

.band .subhead {
  font-size: 1.3rem;
  margin: 48px 0 20px;
  text-align: center;
}


/* ============ Outreach ============ */

.outreach-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.outreach-text {
  max-width: 760px;
  color: var(--ink-soft);
  display: grid;
  gap: 14px;
}

.outreach-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
}

.outreach-photo figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
}


/* ============ Footer ============ */

footer {
  background: var(--green);
  text-align: center;
  padding: 56px 24px 48px;
}

footer h2 {
  color: var(--ink-on-dark);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

footer p {
  color: var(--ink-on-dark-soft);
}

footer a {
  color: var(--gold);
}

footer a:hover {
  color: var(--ink-on-dark);
}

.footnote {
  margin-top: 26px;
  font-size: 0.85rem;
  opacity: 0.8;
}


/* ============ Responsive ============ */

@media only screen and (max-width: 880px) {
  .hero {
    flex-direction: column-reverse;
    gap: 36px;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-photo {
    width: 100%;
  }

  main > section,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  main > section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .timeline li {
    flex-direction: column;
    gap: 4px;
  }

  .timeline .when {
    flex: none;
    padding-top: 0;
  }

  h2 {
    font-size: 1.9rem;
  }

  .featured-quote blockquote {
    font-size: 1.25rem;
  }
}
