/* James Biscailuz — personal site
   Navy/slate palette, serif headings, mobile-first
*/

:root {
  --navy: #0c1f3a;
  --navy-mid: #16325c;
  --navy-soft: #1e3a5f;
  --slate: #4a5568;
  --slate-mid: #5c6570;
  --slate-light: #6b7280;
  --ink: #1c2330;
  --cream: #f6f3ee;
  --paper: #fbf9f6;
  --white: #ffffff;
  --gold: #9a7b3c;
  --gold-soft: #c4a46a;
  --rule: #d9d0c3;
  --rule-strong: #c5b9a6;
  --focus: #1e4d8c;
  --max: 68rem;
  --text: 38rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header
   -------------------------------------------------- */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.wordmark:hover {
  color: #fff;
}

.monogram {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.wordmark-text {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #e8e4dc;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold-soft);
}

/* Main
   -------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
}

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

/* Hero
   -------------------------------------------------- */

.hero {
  padding: 4.25rem 0 3.25rem;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, #efebe3 0%, var(--cream) 100%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 42rem;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0 0 0.7rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy-soft);
  line-height: 1.45;
}

.hero-rule {
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.6rem;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 40rem;
}

/* Headshot */
.portrait-slot {
  margin: 0;
  width: 100%;
  max-width: 18rem;
  background: #e6e0d6;
  border: 1px solid var(--rule);
  line-height: 0;
}

.portrait-slot img {
  display: block;
  width: 100%;
  height: auto;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.linkedin-link:hover {
  color: #0a66c2;
}

.linkedin-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.hero-linkedin {
  margin: 0 0 1.35rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--navy-mid);
  color: #fff;
  border-color: var(--navy-mid);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* Sections
   -------------------------------------------------- */

.section {
  padding: 3.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.prose {
  max-width: var(--text);
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--slate);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Expertise
   -------------------------------------------------- */

.expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 0.75rem 1rem;
}

.expertise-list li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* Experience
   -------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
}

.role {
  padding: 1.35rem 0 1.45rem;
  border-top: 1px solid var(--rule);
}

.role:first-child {
  border-top: 0;
  padding-top: 0;
}

.role-title {
  margin: 0 0 0.2rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.role-org {
  margin: 0 0 0.15rem;
  font-weight: 600;
  color: var(--ink);
}

.role-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate-light);
}

/* Education & awards
   -------------------------------------------------- */

.cred-list,
.award-list,
.ed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
}

.ed-list li,
.award-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  color: var(--slate);
}

.ed-list li:first-child,
.award-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ed-list strong,
.award-list strong {
  display: block;
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 0.1rem;
}

.page-intro {
  padding: 3rem 0 0.5rem;
}

.page-intro h1 {
  margin: 0 0 0.75rem;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.15;
}

.page-intro .hero-rule {
  margin-bottom: 0;
}

.placeholder-panel {
  max-width: 40rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2rem 1.75rem;
}

.placeholder-panel p {
  margin: 0 0 1rem;
  color: var(--slate);
}

.placeholder-panel p:last-child {
  margin-bottom: 0;
}


.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 0.75rem;
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #c9c4bb;
  margin-top: auto;
  padding: 2rem 0 1.75rem;
  border-top: 3px solid var(--gold);
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
}

.site-footer a {
  color: #e8e4dc;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-name {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  color: #fff;
  letter-spacing: 0.03em;
}


/* About intro with portrait
   -------------------------------------------------- */

.about-top {
  display: grid;
  gap: 1.75rem;
  padding-top: 3rem;
  padding-bottom: 0.5rem;
}

.about-top .page-intro {
  padding: 0 0 1.5rem;
}

.about-summary h2 {
  margin-bottom: 1rem;
}

/* Contact form
   -------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact-form .optional {
  font-weight: 400;
  color: var(--slate-light);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.7rem 0.85rem;
  width: 100%;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy-mid);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
}

.contact-linkedin {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem;
}

.contact-linkedin h2 {
  margin-bottom: 0.75rem;
}

.contact-linkedin p {
  margin: 0 0 1rem;
  color: var(--slate);
}

.contact-linkedin p:last-child {
  margin-bottom: 0;
}

/* Utilities
   -------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive
   -------------------------------------------------- */

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.15rem 0.75rem;
    gap: 0.7rem;
  }

  .site-nav ul {
    gap: 0.15rem 1.1rem;
    justify-content: flex-start;
  }

  .hero {
    padding: 2.5rem 0 2.25rem;
  }

  .wrap,
  .hero-inner,
  .footer-inner {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .page-intro {
    padding-top: 2.25rem;
  }

  .about-top {
    padding-top: 2.25rem;
  }
}

@media (max-width: 899px) {
  .hero-inner.has-portrait .portrait-slot {
    order: -1;
    max-width: 16rem;
  }
}

@media (min-width: 900px) {
  .hero-inner.has-portrait {
    grid-template-columns: 1fr minmax(15rem, 18rem);
    gap: 3rem;
    align-items: center;
  }

  .portrait-slot.is-active {
    justify-self: end;
  }

  .about-top {
    grid-template-columns: 1fr minmax(15rem, 18rem);
    gap: 3rem;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
