/* =========================================================
   William Sheets, Personal Site
   Palette: navy, white, black, grey, gold accent
   Type: Times New Roman (classic serif)
   ========================================================= */

:root {
  --navy: #0f1f3d;
  --navy-deep: #0a1733;
  --navy-soft: #1b2f55;
  --gold: #c8a24a;
  --gold-bright: #e0bd66;
  --white: #ffffff;
  --offwhite: #f7f8fa;
  --grey: #6b7280;
  --grey-light: #e5e7eb;
  --grey-mid: #aab1bd;
  --black: #111315;
  --shadow: 0 8px 30px rgba(15, 31, 61, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 31, 61, 0.16);
  --radius: 10px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Times New Roman", Times, Georgia, serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--offwhite); }
.section--navy { background: var(--navy); color: var(--white); }

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold-bright); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
h1 { font-size: 3.1rem; }
h2 { font-size: 2.2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; }

.lead { font-size: 1.25rem; color: var(--grey); }
.section--navy .lead { color: var(--grey-mid); }

.divider {
  width: 56px; height: 3px; background: var(--gold);
  border: none; margin: 0 0 26px;
}
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 13px 28px; border-radius: 6px;
  transition: all 0.2s ease; cursor: pointer; border: 2px solid transparent;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(200, 162, 74, 0.25);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav__brand {
  color: var(--white); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em;
}
.nav__brand span { color: var(--gold); }
.nav__links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav__links a {
  color: var(--grey-mid); font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  transition: color 0.2s; padding: 6px 0;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-bright); }
.nav__toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,74,0.18), transparent 70%);
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px;
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 56px; align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 10px; }
.hero .role {
  font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--gold-bright); margin-bottom: 22px;
}
.hero p { color: var(--grey-mid); font-size: 1.18rem; max-width: 520px; }
.hero__cta { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__photo {
  justify-self: center; width: 230px; height: 230px; border-radius: 50%;
  background: var(--navy-soft); border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-mid); font-family: Arial, sans-serif; font-size: 0.85rem;
  text-align: center; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page header (interior pages) ---------- */
.pagehead {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: var(--white); padding: 72px 0 60px; text-align: center;
}
.pagehead h1 { color: var(--white); font-size: 2.7rem; }
.pagehead p { color: var(--grey-mid); max-width: 640px; margin: 14px auto 0; font-size: 1.15rem; }
.pagehead .divider { margin: 18px auto 22px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s; border-top: 3px solid var(--gold);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card .meta {
  font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--gold);
  font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px;
}
.card p { color: var(--grey); font-size: 1rem; }

/* Highlight stat cards */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 18px; }
.stat__num { font-size: 2.6rem; font-weight: 700; color: var(--gold); }
.stat__label { font-family: Arial, sans-serif; font-size: 0.9rem; color: var(--grey-mid); letter-spacing: 0.04em; }
.section--navy .stat__label { color: var(--grey-mid); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--grey-light);
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold);
}
.tl-item .meta {
  font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--gold);
  font-weight: 700; letter-spacing: 0.04em;
}
.tl-item h3 { margin: 4px 0 2px; }
.tl-item .org { color: var(--navy); font-weight: 700; }
.tl-item ul { margin: 12px 0 0 18px; color: var(--grey); }
.tl-item ul li { margin-bottom: 6px; font-size: 1rem; }

/* ---------- Skills / tags ---------- */
.skillgroup { margin-bottom: 30px; }
.skillgroup h4 { color: var(--navy); margin-bottom: 12px; font-size: 1.05rem;
  font-family: Arial, sans-serif; letter-spacing: 0.03em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: Arial, sans-serif; font-size: 0.88rem; font-weight: 600;
  background: var(--offwhite); color: var(--navy);
  border: 1px solid var(--grey-light); border-radius: 30px; padding: 7px 16px;
}
.section--navy .tag { background: var(--navy-soft); color: var(--white); border-color: var(--navy-soft); }

/* ---------- Two column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* ---------- List clean ---------- */
.clean-list { list-style: none; }
.clean-list li {
  padding: 14px 0 14px 28px; position: relative; border-bottom: 1px solid var(--grey-light);
  color: var(--black);
}
.clean-list li::before {
  content: "\25B8"; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}
.clean-list li span { display: block; color: var(--grey); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 30px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 26px;
  background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.contact-card .ico {
  width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--navy);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: Arial, sans-serif; font-weight: 700; font-size: 1.1rem;
}
.contact-card .label { font-family: Arial, sans-serif; font-size: 0.8rem; color: var(--grey); letter-spacing: 0.05em; text-transform: uppercase; }
.contact-card .val { font-size: 1.05rem; color: var(--navy); font-weight: 700; }

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px; gap: 16px; margin-top: 34px;
}
.gallery figure {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--offwhite); border: 1px solid var(--grey-light);
  box-shadow: var(--shadow); margin: 0;
}
.gallery figure.tall { grid-row: span 2; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery .ph {
  display: flex; align-items: center; justify-content: center; height: 100%;
  text-align: center; padding: 16px; color: var(--grey);
  font-family: Arial, sans-serif; font-size: 0.82rem; line-height: 1.5;
}
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,23,51,0.85));
  color: var(--white); font-family: Arial, sans-serif; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.02em; padding: 26px 14px 12px;
  opacity: 0; transition: opacity 0.25s;
}
.gallery figure:hover figcaption { opacity: 1; }

/* ---------- Belief / quote block ---------- */
.belief {
  border-left: 4px solid var(--gold); padding: 6px 0 6px 28px; margin-top: 8px;
}
.belief p { font-size: 1.18rem; color: var(--black); }
.section--navy .belief p { color: var(--white); }

/* ---------- Essays accordion ---------- */
.essay-list { margin-top: 34px; }
details.essay {
  background: var(--white); border: 1px solid var(--grey-light);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden;
}
details.essay > summary {
  list-style: none; cursor: pointer; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
details.essay > summary::-webkit-details-marker { display: none; }
details.essay > summary .etitle {
  font-size: 1.35rem; font-weight: 700; color: var(--navy);
}
details.essay > summary .emeta {
  font-family: Arial, Helvetica, sans-serif; font-size: 0.82rem;
  color: var(--gold); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
details.essay > summary .eprompt {
  color: var(--grey); font-size: 0.98rem; font-style: italic;
}
details.essay > summary::after {
  content: "Read"; position: absolute; right: 28px; margin-top: 2px;
  font-family: Arial, sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; color: var(--gold); text-transform: uppercase;
}
details.essay { position: relative; }
details.essay[open] > summary::after { content: "Close"; }
details.essay[open] > summary { border-bottom: 1px solid var(--grey-light); }
.essay-body { padding: 8px 28px 28px; }
.essay-body p { color: var(--black); font-size: 1.05rem; line-height: 1.75; }
.essay-body p:first-child { margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--grey-mid); padding: 40px 0; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer a { color: var(--grey-mid); font-family: Arial, sans-serif; font-size: 0.9rem; margin-left: 20px; }
.footer a:hover { color: var(--gold-bright); }
.footer .fbrand { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.footer .fbrand span { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 64px 24px; }
  .hero__cta { justify-content: center; }
  .hero__photo { order: -1; width: 170px; height: 170px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .grid--2, .grid--3, .split, .stats, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery figure.tall { grid-row: span 1; }
  .gallery figcaption { opacity: 1; }
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy-deep); padding: 10px 0;
    border-bottom: 1px solid rgba(200,162,74,0.25);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links a { display: block; padding: 14px 0; }
  .nav__toggle { display: block; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer a { margin: 0 10px; }
}
