:root {
  --charcoal: #303038;
  --gold: #D6CB9D;
  --light: #F9F9F9;
  --dark: #1E1C1C;
  --muted: #8a8a90;
  --rule: rgba(249, 249, 249, 0.18);
  --rule-light: rgba(48, 48, 56, 0.14);
  --max: 1100px;
  --bg-green: #12A150;
  --serif-head: "Marcellus", Georgia, "Times New Roman", serif;
  --serif-body: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif-head);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a { opacity: 0.85; transition: opacity 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }

.nav .bg-link { margin-left: 8px; }

/* BlinkingGreen lockup */
.bg-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #000;
  opacity: 1 !important;
}
.bg-link .bg-word b { font-weight: 700; }
.bg-link:hover .bg-word { text-decoration: underline; text-underline-offset: 4px; }
.led {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-green);
  box-shadow: 0 0 0 3px rgba(18, 161, 80, 0.25), 0 0 14px rgba(18, 161, 80, 0.6);
  animation: blink 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes blink { 50% { opacity: 0.25; } }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  opacity: 1 !important;
}

.btn:hover { background: var(--gold); color: var(--dark); }

body.light .btn { border-color: var(--charcoal); color: var(--charcoal); }
body.light .btn:hover { background: var(--charcoal); color: var(--light); }

/* Hero (home) */
.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 72px;
  text-align: center;
}

.hero .logo {
  width: min(520px, 82vw);
  height: auto;
  margin: 0 auto 44px;
  display: block;
}

.hero h1 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.hero .blurb {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.92;
}

.hero .caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 18px 0 0;
}

.hero .caption em { font-style: normal; color: var(--gold); }

.hero .links {
  margin-top: 44px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .links a { opacity: 0.75; padding: 0 14px; }
.hero .links a:hover { opacity: 1; }
.hero .links span { opacity: 0.35; }

/* Page intro */
.page-head {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 40px;
}

.page-head p { max-width: 640px; color: #5c5c64; margin: 0; }

/* Experience */
.section { padding: 0 0 56px; }

.section-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c5c64;
  margin: 0 0 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  border: 1px solid var(--rule-light);
  border-top: 3px solid var(--gold);
  padding: 26px 26px 22px;
  background: #fff;
}

.card h3 { margin-bottom: 6px; font-size: 1.35rem; }
.card p { margin: 0; color: #5c5c64; }

.group { margin-bottom: 36px; }

.group h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-light);
}

.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}

.group li {
  break-inside: avoid;
  padding: 5px 0;
  color: #3d3d45;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding-bottom: 72px;
}

.contact-info h3 { margin-bottom: 8px; }
.contact-info p { color: #5c5c64; }

form { display: grid; gap: 18px; }

label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c64;
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(48, 48, 56, 0.25);
  background: #fff;
  color: var(--charcoal);
  border-radius: 2px;
}

input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: transparent;
}

textarea { min-height: 160px; resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button.btn { cursor: pointer; background: transparent; justify-self: start; }
button.btn:disabled { opacity: 0.5; cursor: default; }

.form-msg {
  font-family: var(--sans);
  font-size: 0.9rem;
  min-height: 1.4em;
  margin: 0;
}
.form-msg.ok { color: #2f6b3a; }
.form-msg.err { color: #9b2c2c; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule-light);
  padding: 28px 0 36px;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

body.light .site-footer { border-top-color: var(--rule-light); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a:hover { color: var(--gold); }
body.light .site-footer a:hover { color: var(--charcoal); }

/* Mobile */
@media (max-width: 720px) {
  .site-header { padding: 16px 0; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 14px; }
  .brand img { height: 30px; }
  .nav { gap: 16px; font-size: 0.68rem; letter-spacing: 0.08em; }
  .nav .bg-link { display: none; }
  .hero { min-height: auto; padding: 36px 0 56px; }
  .group ul { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
