/* ========================================
   Henry (Hank) Krohn — personal site
   Navy field, gold lettering.
   ======================================== */

:root {
  --navy: #0a1628;
  --navy-deep: #07101c;
  --surface: #0b1c33;
  --surface-2: #12243f;
  --gold: #d4af37;
  --gold-deep: #c9a227;
  --gold-soft: #e6c65a;
  --ink: #e4dcc8;
  --ink-soft: #c4bba4;
  --muted: #8f8774;
  --rule: rgba(212, 175, 55, 0.28);
  --max: 70rem;
  --header-h: 4.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Outfit, system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--gold);
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  border-radius: 4px;
}

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--navy) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

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

.mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  text-decoration: none;
}

.mark img {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 4.25rem 0 4rem;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--navy);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.72), var(--navy) 92%),
    url("assets/photos/lupines-mountains.jpg") center 42% / cover no-repeat;
  opacity: 0.38;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.avatar {
  position: relative;
  width: min(11.5rem, 56vw);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.kicker,
.eyebrow,
.accent-kicker,
.role-meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker {
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(3.1rem, 9vw, 5.4rem);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-style: italic;
  color: var(--gold-soft);
  margin-bottom: 1.15rem;
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--gold);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-tint {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.eyebrow {
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 0.85rem;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.split,
.about-layout {
  display: grid;
  gap: 1.75rem;
}

.split-label h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.prose p + p {
  margin-top: 1rem;
}

.prose {
  color: var(--ink-soft);
  max-width: 42rem;
}

/* ---------- Accents ---------- */
.accent-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.75rem;
}

.accent {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem 1.25rem 1.3rem;
}

.accent h3 {
  font-size: 1.45rem;
  margin: 0.45rem 0 0.45rem;
}

.accent p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Experience ---------- */
.role {
  padding: 1.7rem 0;
  border-top: 1px solid var(--rule);
}

.role:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.role-head {
  margin-bottom: 0.9rem;
}

.role-meta {
  margin-bottom: 0.45rem;
}

.role h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  max-width: 46rem;
}

.role ul {
  margin-left: 1.15rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.4rem;
}

.honors {
  margin-top: 2.25rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.honors ul {
  list-style: none;
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
}

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  gap: 1rem;
}

.cred,
.community {
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.cred ul,
.community ul {
  list-style: none;
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-soft);
}

.community {
  margin-top: 1rem;
  background: var(--surface-2);
}

/* ---------- Contact ---------- */
.email-line {
  display: inline-block;
  margin: 1.25rem 0 0.85rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.email-line:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.contact-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-note a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.contact-note a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2rem;
  background: var(--navy-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero {
    padding: 6.25rem 0 5.5rem;
  }

  .hero-grid {
    grid-template-columns: auto 1fr;
    gap: 3.25rem;
  }

  .avatar {
    width: 13.5rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .split,
  .about-layout {
    grid-template-columns: minmax(12rem, 0.85fr) 1.25fr;
    gap: 3.5rem;
    align-items: start;
  }

  .accent-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .cred-grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 1.1rem;
    align-items: start;
  }

  .nav {
    gap: 1.75rem;
  }

  .honors ul {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .btn {
    transition: none;
  }
}

.honors-note {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36rem;
}
