/* =========================================================================
   Ali Zambrotta — Teacher Website
   Shared stylesheet. Edit the color variables below to recolor the whole
   site in one place. Everything else inherits from these.
   ========================================================================= */

:root {
  /* --- Bright & kid-friendly palette (change these to recolor everything) ---
     Cheerful "classroom" colors: teal + sunshine yellow + coral pops. */
  --bg:          #f3fbfd;   /* soft sky-mint page background */
  --surface:     #ffffff;   /* cards / panels */
  --ink:         #2c3e4d;   /* main text (friendly deep slate-blue) */
  --ink-soft:    #5b7180;   /* secondary text */
  --accent:      #17b6c9;   /* bright teal (buttons, highlights) */
  --accent-dark: #0d8fa1;   /* deeper teal (hover) */
  --amber:       #ffc93c;   /* sunshine yellow (underlines, badges) */
  --coral:       #ff7a59;   /* playful coral accent */
  --grass:       #4fc27b;   /* fresh green accent */
  --border:      #d5eef2;   /* soft teal-tinted border */

  --maxw: 960px;            /* content width */
  --radius: 18px;           /* rounder = friendlier */
  --shadow: 0 5px 20px rgba(23, 130, 160, 0.10);

  --font-body: "Verdana", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
}

/* --- Base --- */
* { box-sizing: border-box; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 2.2rem; margin: 0 0 .4em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }

p { margin: 0 0 1em; }

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

/* Marks placeholders you should replace — shows a soft amber highlight.
   Nothing on the published site uses this. It is kept as a working tool:
   wrap draft text in <span class="placeholder">…</span> while you edit, and
   it will be visually obvious that it still needs replacing. Never publish
   a page that still has one. */
.placeholder {
  background: #fff4e0;
  border-bottom: 1px dashed var(--amber);
  padding: 0 3px;
  border-radius: 3px;
}

/* Visible keyboard focus for every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Layout wrapper --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / navigation --- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.nav .brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav .brand span { color: var(--accent); }

.nav a.navlink {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}
.nav a.navlink:hover { color: var(--accent-dark); }

/* current-page highlight */
.nav a.navlink[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--amber);
}

/* --- Hero (home page) --- */
.hero {
  background: linear-gradient(160deg, #e6f8fb 0%, #fff6d9 100%);
  border-bottom: 3px solid var(--amber);
  padding: 56px 0;
}
.hero-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 320px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 .6em;
}
.hero h1 { font-size: 2.6rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* headshot slot */
.headshot {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #d8f3f7;
  border: 5px solid var(--surface);
  outline: 4px solid var(--coral);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: .85rem;
  overflow: hidden;
}
/* The photo is a portrait crop, so bias the circle toward the top of the
   frame — a plain centre crop would cut off the top of her head. Nudge this
   percentage down to show more of the face, up to show more below it. */
.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Monogram shown until a real headshot.jpg is added — a deliberate design
   element rather than an empty circle. */
.monogram {
  font-family: var(--font-head);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-dark);
  line-height: 1;
  user-select: none;
}

/* --- Main content --- */
main { padding: 40px 0 60px; }

.intro { max-width: 720px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
}
.btn.secondary:hover { background: var(--accent); color: #fff; }

/* --- Card grid (home quick links, resources) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .12s ease, box-shadow .12s ease;
}
/* give each card its own cheerful top-bar color */
.cards .card:nth-child(4n+1) { border-top-color: var(--accent); }
.cards .card:nth-child(4n+2) { border-top-color: var(--amber); }
.cards .card:nth-child(4n+3) { border-top-color: var(--coral); }
.cards .card:nth-child(4n+4) { border-top-color: var(--grass); }
.card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 10px 26px rgba(23, 130, 160, 0.18);
  color: var(--ink);
}
.card h3 { margin-top: 0; color: var(--accent-dark); }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: .98rem; }

/* --- Content panels --- */
.panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 7px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
  margin: 22px 0;
}
.panel h2 { color: var(--accent-dark); margin-top: .2em; }

/* --- Skills / tag pills --- */
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: #e3f7fa;
  color: var(--accent-dark);
  border: 2px solid var(--border);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
}
/* rotate a few cheerful colors through the skill pills */
.pill-list li:nth-child(3n+1) { background: #fff2cc; color: #b57e00; border-color: #ffe49e; }
.pill-list li:nth-child(3n+2) { background: #ffe6de; color: #d1502f; border-color: #ffcbbc; }
.pill-list li:nth-child(3n+3) { background: #e0f6e8; color: #2f8f56; border-color: #bfead0; }

/* --- Resume entries --- */
.entry { margin-bottom: 22px; }
.entry .meta { color: var(--ink-soft); font-size: .95rem; font-style: italic; }
.entry h3 { margin-bottom: .1em; }

/* --- Resource lists --- */
.resource-group ul { padding-left: 1.2em; }
.resource-group li { margin-bottom: .5em; }

/* --- Contact --- */
.contact-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 30px;
  margin: 28px 0;
  max-width: 520px;
  text-align: center;
}
.contact-detail { font-size: 1.15rem; margin-bottom: 1em; }
.contact-detail strong { display: block; color: var(--ink-soft); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2em; }
.contact-note {
  color: var(--ink-soft);
  font-size: .9rem;
  margin: 1.2em 0 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  text-align: center;
  padding: 26px 20px;
  font-size: .9rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 38px 0; }
  .hero h1 { font-size: 2.1rem; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .headshot { width: 160px; height: 160px; }
  .monogram { font-size: 3.4rem; }
  .contact-card { padding: 26px 22px; }
  .nav { gap: 8px 16px; }
  .nav .brand { margin-right: 0; width: 100%; }
}

/* =========================================================================
   PRINT — used to make assets/resume.pdf.
   Open resume.html in a browser, press Cmd+P, choose "Save as PDF".
   Hides the site chrome so the printed page reads like a real resume.
   ========================================================================= */
@media print {
  :root { --maxw: 100%; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.4;
  }

  /* Site chrome has no place in a printed resume */
  .site-header,
  .site-footer,
  .hero,
  .cards,
  .btn { display: none !important; }

  .container { max-width: 100%; padding: 0; }
  main { padding: 0; }

  /* Flatten the decorative panels into plain document sections */
  .panel {
    background: none;
    border: none;
    border-left: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 6pt;
  }

  h1 { font-size: 20pt; margin-bottom: 2pt; }
  h2 {
    font-size: 12pt;
    margin: 12pt 0 4pt;
    border-bottom: 1pt solid #999;
    padding-bottom: 2pt;
  }
  h3 { font-size: 11pt; margin: 8pt 0 1pt; }
  p, li { orphans: 3; widows: 3; }
  ul { margin: 2pt 0; padding-left: 16pt; }
  li { margin-bottom: 1pt; }

  .intro { max-width: 100%; font-size: 10pt; }
  .entry { margin-bottom: 8pt; page-break-inside: avoid; }
  .entry .meta { font-style: normal; color: #333; font-size: 9.5pt; }

  /* Pills become a plain inline list that prints cleanly.
     The nth-child color rules above are more specific than a bare
     ".pill-list li", so they are matched selector-for-selector here. */
  .pill-list { display: block; }
  .pill-list li,
  .pill-list li:nth-child(3n+1),
  .pill-list li:nth-child(3n+2),
  .pill-list li:nth-child(3n+3) {
    display: inline;
    background: none;
    border: none;
    color: #000;
    font-weight: 400;
    padding: 0;
  }
  .pill-list li::after { content: " · "; }
  .pill-list li:last-child::after { content: ""; }

  a { color: #000; text-decoration: none; }
}
