/* richgoodier.info — recreation of the "Label Maker" Google Sites look.
   Playfair Display headings, Open Sans body, dark photographic hero. */

:root {
  --ink: #303033;
  --ink-soft: #5f5f63;
  --line: #e4e2de;
  --bg: #ffffff;
  --hero-tint: rgba(33, 33, 33, 0.55);
  --accent: #2867b2;
  --muted: #c0bdb8;
  --wrap: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: "Playfair Display", serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav a { color: var(--ink-soft); margin-left: 28px; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  background: url("images/Gemini_HS_C.png") center center / cover no-repeat;
  color: #fff;
}
.hero-overlay { position: absolute; inset: 0; background: var(--hero-tint); }
.hero-in {
  position: relative;
  display: flex; flex-direction: row-reverse; align-items: center; gap: 44px;
  padding: 84px 24px; flex-wrap: wrap;
}
.headshot {
  width: 210px; height: 210px; border-radius: 50%;
  object-fit: cover; border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); flex: none;
}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 3.4rem; margin: 0 0 12px; color: #fff; font-weight: 900; }
.summary { font-size: 1.12rem; max-width: 60ch; margin: 0 0 20px; color: rgba(255, 255, 255, 0.94); }
.avail-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
.avail.available {
  background: #2e7d32; color: #fff; font-size: 0.8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.email { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.email:hover { text-decoration: none; border-bottom-color: #fff; }
.socials { display: flex; gap: 12px; }
.social img { width: 67px; height: 67px; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.social:hover img { opacity: 1; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section:nth-of-type(even) { background: #faf9f7; }
.section h2 {
  font-size: 2rem; margin: 0 0 28px; color: var(--ink); position: relative; padding-bottom: 10px;
}
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 54px; height: 3px; background: var(--ink);
}

/* Entries (education, projects, experience) */
.entry { padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: none; }
.entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entry-head h3 { font-size: 1.28rem; margin: 0; }
.dates { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; font-family: "Open Sans", sans-serif; }
.meta { margin: 2px 0 8px; color: var(--ink-soft); font-weight: 600; }
.notes { margin: 0; color: var(--ink-soft); }
.entry ul { margin: 8px 0 0; padding-left: 20px; }
.entry li { margin: 4px 0; }
.live-link { display: inline-block; margin: 2px 0 4px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.live-link:hover { text-decoration: underline; }

/* Collapsed "show more projects" */
.more { border-top: 1px solid var(--line); }
.more > summary {
  cursor: pointer; list-style: none;
  font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 0.95rem;
  color: var(--accent); padding: 16px 0; user-select: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "▾ "; }
.more[open] > summary::before { content: "▴ "; }
.more > summary:hover { text-decoration: underline; }
.more .entry:first-of-type { border-top: none; }

/* Certifications */
.cert-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.cert { display: flex; align-items: center; gap: 16px; }
.cert .badge { width: 84px; height: 84px; object-fit: contain; }
.cert h3 { margin: 0; font-size: 1.15rem; }

/* Skills (optional) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { background: #efece7; color: var(--ink); font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; }
.skillcat h3 { font-size: 1.1rem; margin: 0 0 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fff; }
.footer-in { display: flex; align-items: center; justify-content: space-between; }
.footer p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.footer .flag { width: 34px; height: auto; opacity: 0.75; border-radius: 2px; }

/* Responsive */
@media (max-width: 640px) {
  .hero-in { padding: 56px 24px; gap: 28px; flex-direction: column; }
  .hero-text h1 { font-size: 2.4rem; }
  .headshot { width: 150px; height: 150px; }
  .nav { display: none; }
  .dates { white-space: normal; }
  body { font-size: 16px; }
}
