/* =====================================================================
   bothausa.com — shared stylesheet (v2)
   ---------------------------------------------------------------------
   Every page links to this file.
     - headings:  Roboto      - body text: Open Sans
     - calm blues throughout (no bright orange / red)
   Change a color here once (see :root below) and every page updates.

   Sections:
     1. Theme colors and sizes      6. Buttons
     2. Basics                      7. Embedded video (Nickole)
     3. Header + tab navigation     8. Phones and small screens
     4. Title banners (hero)        9. Dark resume page (/ and /francois)
     5. Page sections
   ===================================================================== */

/* ---------- 1. Theme colors and sizes (edit these first) ---------- */
:root {
  --accent: #4aa8ff;          /* blue bar under titles, active tab line */
  --accent-soft: #9fcbff;     /* links on dark backgrounds */
  --text: #212121;            /* normal body text */
  --muted: #6a6a6a;           /* small text */
  --white: #ffffff;
  --nav-bg: #0b1626;          /* top tab row */
  --nav-bg-2: #13243d;        /* second tab row */
  --nav-text: #b9c8e0;
  --content-width: 1204px;    /* max width of the page content (incl. side padding) */
  --hero-height: 104px;       /* height of the title banner (was 310px in v1) */
}

/* ---------- 2. Basics ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.56;
  color: var(--text);
  background: var(--white);
}

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

/* Centers content and keeps it from getting too wide */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 3. Site header + tab navigation ---------- */
/* Row 1: site title + one tab per family member (always visible).
   Row 2: tabs for the active member's sub-pages (only on that member's pages).
   Both rows are plain links. On narrow screens a row scrolls sideways
   instead of hiding behind a menu button. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  color: var(--nav-text);
  font-family: Roboto, sans-serif;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tabs-top {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 20px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.site-title {
  flex: 0 0 auto;
  padding: 12px 0 11px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--white);
  text-decoration: none;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;              /* swipe sideways if the row is too wide */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  flex: 0 0 auto;
  display: block;
  padding: 12px 16px 9px;
  font-size: 16px;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-radius: 6px 6px 0 0;
}
.tabs a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.tabs a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: -2px; }

/* active family member (row 1) */
.tabs--members a.active {
  color: var(--white);
  background: var(--nav-bg-2);
  border-bottom-color: var(--accent);
}

/* row 2: the member's sub-pages */
.tabs--sub {
  background: var(--nav-bg-2);
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* line row 2 up with the content */
@media (min-width: 1205px) {
  .tabs--sub { padding-left: calc((100vw - var(--content-width)) / 2 + 20px); }
}
.tabs--sub a {
  padding: 8px 14px 6px;
  font-size: 14px;
  border-radius: 0;
}
.tabs--sub a[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* long / short tab labels: e.g. "College Archive (Portfolio)" becomes "Archive" on phones */
.tab-short { display: none; }
@media (max-width: 600px) {
  .tab-long { display: none; }
  .tab-short { display: inline; }
}

/* ---------- 4. Title banners (hero) ---------- */
/* A short banner with the page title. The picture is chosen with a class:
     (none)          default blue picture (Francois pages)
     hero--ruby      Ruby's pages
     hero--nickole   Nickole
   The pictures are AI-generated, in assets/ (banner-*.webp, with a .jpg
   fallback), made by tools/convert_banners.py. hero--light = white layer and
   dark text, for a light picture. */
.hero {
  position: relative;
  min-height: var(--hero-height);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: #12305a;
  background-image: url("/assets/banner-francois.jpg");
  background-image: image-set(url("/assets/banner-francois.webp") type("image/webp"),
                              url("/assets/banner-francois.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center center;
}
.hero--ruby {
  background-color: #4a4f9a;
  background-image: url("/assets/banner-ruby.jpg");
  background-image: image-set(url("/assets/banner-ruby.webp") type("image/webp"),
                              url("/assets/banner-ruby.jpg") type("image/jpeg"));
}
.hero--nickole {
  background-color: #1f4f5a;
  background-image: url("/assets/banner-nickole.jpg");
  background-image: image-set(url("/assets/banner-nickole.webp") type("image/webp"),
                              url("/assets/banner-nickole.jpg") type("image/jpeg"));
}

/* see-through layer on top of the picture so the title is readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.35);
}
.hero.hero--light { color: #1c2a3a; }
.hero.hero--light::before { background: rgba(255, 255, 255, 0.35); }

.hero > * { position: relative; }   /* keep the text above the layer */

.hero h1 {
  font-family: Roboto, sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.hero.hero--light h1 { text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6); }

/* the short blue bar under the title */
.hero h1::after {
  content: "";
  display: block;
  width: 56px;
  margin: 8px auto 0;
  border-bottom: 4px solid var(--accent);
  border-radius: 2px;
}

.hero p { margin: 6px 0 0; font-size: 15px; }

/* ---------- 5. Page sections ---------- */
.section { padding: 28px 0; }

/* band with a background picture and a dark see-through layer */
.section--image {
  position: relative;
  background-size: cover;
  background-position: center center;
  padding: 20px 0;
}
.section--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.35);
}
.section--image > * { position: relative; }

/* picture for the store-button band on /ruby/wishlist. The picture is light,
   so it gets a soft white layer instead of the dark one; the buttons are dark
   text on white with a dark border. */
.band--ruby::before { background: rgba(255, 255, 255, 0.12); }
.band--ruby .button { box-shadow: 0 1px 4px rgba(30, 50, 90, 0.18); }
.band--ruby {
  background-color: #eef0fa;
  background-image: url("/assets/band-ruby.jpg");
  background-image: image-set(url("/assets/band-ruby.webp") type("image/webp"),
                              url("/assets/band-ruby.jpg") type("image/jpeg"));
}

/* store-button band and blue headings on /francois/francois-wishlist
   (same layout as Ruby's page, in the Francois section's blue) */
.band--francois {
  background-color: #12305a;
  background-image: url("/assets/banner-francois.jpg");
  background-image: image-set(url("/assets/banner-francois.webp") type("image/webp"),
                              url("/assets/banner-francois.jpg") type("image/jpeg"));
  background-position: center 70%;
}
.wishlist.wishlist--francois h2 { color: #1f5fa8; }
.wishlist--books { padding-top: 4px; }
.wishlist--books h2 { margin-bottom: 4px; }
.wl-note { margin: 0 0 14px; text-align: center; font-size: 14px; font-style: italic; color: #4a6584; }

/* ---------- 6. Buttons ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 36px;
  padding: 6px 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #000;
  background: var(--white);
  border: 1px solid #000;
  border-radius: 4px;
  text-decoration: none;
}
.button:hover { background: #f1f1f1; }

/* ---------- 7. Embedded video (Nickole) ---------- */
/* Keeps an iframe at a fixed shape. Set the shape with --ratio
   (height divided by width), e.g. style="--ratio: 0.5625" for 16:9. */
.embed {
  position: relative;
  width: 100%;
  padding-top: calc(var(--ratio, 0.5625) * 100%);
  background: #000;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 8. Phones and small screens ---------- */
@media (max-width: 767px) {
  .hero { min-height: 84px; padding: 12px 16px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 13px; }
  .button-row { gap: 12px; justify-content: center; }
  .button { min-width: 140px; }
  .tabs-top { gap: 6px; padding: 0 10px; }
  .site-title { font-size: 17px; letter-spacing: 1px; }
  .tabs a { padding: 11px 11px 8px; font-size: 15px; }
  .tabs--sub { padding: 0 10px; }
  .tabs--sub a { padding: 8px 11px 6px; font-size: 14px; }
}

/* ---------- 9. Dark resume page (/ and /francois) ---------- */
body.dark {
  background: #0e1726;
  color: #dbe4f0;
}
body.dark a { color: var(--accent-soft); }
body.dark .site-header a { color: var(--nav-text); }
body.dark .site-header a.active,
body.dark .site-header a[aria-current="page"],
body.dark .site-header .site-title { color: var(--white); }

.resume .doc-container { max-width: 880px; }

.resume-intro { padding: 14px 0 4px; }

/* Profile photos: two round avatars overlapping like coins (real photo on top) */
.profile { padding: 22px 0 0; }
.profile-row { display: flex; align-items: center; gap: 18px; }
.avatars { display: flex; align-items: center; flex: none; }
.avatar {
  position: relative;
  display: block;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 3px solid #4f8fe6;
  box-shadow: 0 0 0 3px #0e1726, 0 6px 16px rgba(0, 0, 0, .45);
  overflow: hidden;
  background: #16233a;
  transition: transform .18s ease, box-shadow .18s ease;
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar--real { z-index: 2; }
.avatar--alter { z-index: 1; margin-left: -6px; }
.avatar:hover, .avatar:focus-visible {
  z-index: 3;
  transform: translateY(-5px);
  box-shadow: 0 0 0 3px #0e1726, 0 10px 22px rgba(0, 0, 0, .55);
}
.avatar:focus-visible { outline: 2px solid #9cc4ff; outline-offset: 3px; }
.profile-name { margin: 0; font-size: 26px; font-weight: 700; color: #e6eefb; letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) {
  .avatar { transition: none; }
  .avatar:hover, .avatar:focus-visible { transform: none; }
}
.resume-intro .doc-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.jump { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 15px; }
.jump-label { color: #8da2bf; margin-right: 4px; }
.jump a {
  padding: 3px 12px;
  border: 1px solid #2b4466;
  border-radius: 999px;
  text-decoration: none;
  background: #14223a;
}
.jump a:hover { background: #1b2f50; }

.button--dark {
  min-width: 0;
  min-height: 32px;
  padding: 4px 14px;
  font-size: 14px;
  background: #14223a;
  border-color: #2b4466;
  text-decoration: none;
}
body.dark .button--dark { color: #dbe4f0; }
.button--dark:hover { background: #1b2f50; }

.resume .doc { padding: 28px 0 8px; scroll-margin-top: 100px; }
.resume .doc + .doc { border-top: 1px solid #1f3352; }

/* section heading with the download links in it */
.resume .doc h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  font-family: Roboto, sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  border-bottom: 3px solid var(--accent);
}
.resume .dl { display: inline-flex; gap: 8px; align-items: baseline; font-family: "Open Sans", sans-serif; }
.resume .dl a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
}
.resume .dl .dl-pdf { background: var(--accent); color: #06162b; }
.resume .dl .dl-pdf:hover { background: var(--accent-soft); }
.resume .dl .dl-docx { font-weight: 400; padding: 4px 6px; }

/* the document text */
.doc-body { font-size: 15.5px; line-height: 1.6; }
.doc-body .doc-head { margin-bottom: 8px; }
.doc-body .doc-name {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}
.doc-body .doc-contact { margin: 0; color: #a9b9cf; font-size: 14.5px; }
.doc-body h3.doc-h {
  margin: 24px 0 8px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-align: left;
  color: var(--accent-soft);
}
.doc-body p { margin: 0 0 8px; }
.doc-body .role {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  margin: 14px 0 0;
  color: var(--white);
}
.doc-body .when { color: #8da2bf; font-size: 14px; }
.doc-body .org { font-style: italic; color: #b8c6da; margin-bottom: 4px; }
.doc-body .kv strong, .doc-body .subhead strong { color: var(--white); }
.doc-body .subhead { margin-top: 14px; }
.doc-body ul { margin: 4px 0 10px; padding-left: 22px; }
.doc-body li { margin: 2px 0; }
.doc-body li::marker { color: var(--accent); }

.doc-body .table-wrap { overflow-x: auto; margin: 6px 0 14px; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc-body th, .doc-body td { text-align: left; padding: 5px 10px; border-bottom: 1px solid #22385a; vertical-align: top; }
.doc-body th { color: var(--accent-soft); font-weight: 700; background: #13213a; }
.doc-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

.resume .to-top { margin: 18px 0 0; font-size: 13px; text-align: right; }
.placeholder { padding: 16px; border: 1px dashed #3a5a85; border-radius: 8px; color: #a9b9cf; }

@media (max-width: 767px) {
  .resume .doc h2 { font-size: 23px; }
  .doc-body { font-size: 15px; }
  .doc-body table { font-size: 13px; }
  .doc-body th, .doc-body td { padding: 4px 6px; }
  .resume-intro .doc-container { justify-content: flex-start; }
  .profile { padding-top: 16px; }
  .profile-row { gap: 14px; }
  .avatar { width: 80px; height: 80px; border-width: 2px; }
  .avatar--alter { margin-left: -5px; }
  .profile-name { font-size: 21px; }
}
