/* Wayne Black — personal professional profile */

:root {
  --navy: #0c141c;
  --navy-mid: #151e28;
  --navy-soft: #1c2836;
  --ivory: #f3efe6;
  --ivory-deep: #e7e0d2;
  --paper: #fbf9f4;
  --ink: #12171d;
  --ink-soft: #3d4650;
  --muted: #66707a;
  --gold: #c6a56a;
  --gold-bright: #e0c58a;
  --gold-deep: #8d6b35;
  --line: rgba(12, 20, 28, 0.12);
  --line-light: rgba(243, 239, 230, 0.16);
  --radius: 18px;
  --header-h: 4.5rem;
  --shadow: 0 24px 50px rgba(12, 20, 28, 0.08);
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--gold);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.8rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.8rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--navy);
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(12, 20, 28, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--ivory);
}

.logo-mark {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.logo-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.68);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: rgba(243, 239, 230, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line-light);
  background: transparent;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */

.hero {
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(198, 165, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(198, 165, 106, 0.06), transparent 50%),
    var(--navy);
  color: var(--ivory);
  padding: 0;
  overflow: clip;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.hero-inner {
  max-width: 42rem;
  width: min(1140px, calc(100% - 2.5rem));
  padding: 4.5rem 0 3.5rem;
  margin-inline: auto;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  color: var(--paper);
}

.role {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  color: var(--gold-bright);
  margin: 0 0 1.25rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero .eyebrow {
  color: var(--gold-bright);
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0 auto;
  color: rgba(243, 239, 230, 0.82);
  text-wrap: balance;
}

.trust-strip {
  border-top: 1px solid var(--line-light);
  background: rgba(0, 0, 0, 0.18);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 1.05rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0;
}

.trust-list li {
  color: rgba(243, 239, 230, 0.86);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0;
}

.trust-list li:not(:last-child)::after {
  content: "·";
  color: var(--gold);
  margin: 0 0.9rem;
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section-tint {
  background: var(--ivory-deep);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-intro h2 {
  margin-bottom: 0.9rem;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem 4rem;
  align-items: start;
}

.about-intro {
  margin-bottom: 0;
}

.about-copy {
  padding-top: 0.15rem;
}

.about-copy p {
  font-size: 1.08rem;
  max-width: 40rem;
}

/* Qualifications */

.qualify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.qualify-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.qualify-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.qualify-list h3 {
  margin-bottom: 0.25rem;
}

.qualify-list p {
  margin: 0;
}

/* Experience */

.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

.experience-list > li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.75rem;
}

.cv-dates {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
}

.cv-org {
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.experience-list h3 {
  margin-bottom: 0.2rem;
}

.experience-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.experience-list ul li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-soft);
}

.experience-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Interests */

.interest-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.7rem;
}

.card h3 {
  font-size: 1.45rem;
}

/* Languages */

.languages-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.languages-layout .section-intro {
  margin-bottom: 0;
}

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.language-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
}

/* Footer */

.site-footer {
  background: #080e14;
  color: rgba(243, 239, 230, 0.72);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-legal,
.footer-link {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 500;
}

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

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Responsive */

@media (max-width: 1020px) {
  .about-layout,
  .languages-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--line-light);
    padding: 1rem 1.25rem 1.3rem;
    flex-direction: column;
    align-items: stretch;
    min-height: calc(100dvh - var(--header-h));
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding: 3rem 0 2.75rem;
    text-align: left;
    width: min(1140px, calc(100% - 1.5rem));
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .lead {
    margin-left: 0;
  }

  .trust-list {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .trust-list li {
    background: rgba(243, 239, 230, 0.07);
    border: 1px solid var(--line-light);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
  }

  .trust-list li:not(:last-child)::after {
    content: none;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.75rem 0;
  }

}

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

  .nav-toggle-bar,
  .js .reveal,
  .js .reveal.is-visible {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
