:root {
  --ink: #12304a;
  --ink-soft: #4a6378;
  --sea: #0e7c86;
  --sea-dark: #0a5c63;
  --sand: #faf6ef;
  --card: #ffffff;
  --line: #e4ddd0;
  --sun: #e8a33d;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.3rem; margin: .2rem 0 .3rem; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, .95);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 920px; margin: 0 auto; padding: .7rem 16px;
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center;
}
.nav .brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav a { text-decoration: none; font-size: .95rem; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 4rem; }

.hero { text-align: center; padding: 2.6rem 0 1rem; }
.aloha { letter-spacing: .35em; color: var(--sea); font-weight: 700; font-size: .95rem; }
.headshot {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 2px 10px rgba(18, 48, 74, .12); margin-top: 1rem;
}
.tagline { color: var(--ink-soft); margin: 0; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.badge {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: #e3f2f1; color: var(--sea-dark); border: 1px solid #b9dedb;
  font-weight: 600; font-size: .9rem; text-decoration: none;
}
a.badge:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.badge.plain { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.hint { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.about p { margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }

.job { border-left: 3px solid var(--sea); padding: .2rem 0 .2rem 1.1rem; margin: 0 0 1.8rem; }
.job .meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: .4rem; }
.job ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.job li { margin-bottom: .3rem; }
.job.break { border-left-color: var(--line); }
.stat { color: var(--sea-dark); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.tile { display: block; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--sea); }
.tile p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.tile .go { color: var(--sea); font-weight: 600; font-size: .9rem; margin-top: .6rem; display: inline-block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: #fff; font-family: "Fraunces", Georgia, serif; font-weight: 600; }
tbody th { background: #f4efe5; width: 150px; }
tr:last-child th, tr:last-child td { border-bottom: none; }
td.hl { background: #eef7f6; }

.modules { counter-reset: m; list-style: none; padding: 0; display: grid; gap: .5rem; }
.modules li { counter-increment: m; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem .6rem 3rem; position: relative; }
.modules li::before {
  content: counter(m); position: absolute; left: .8rem; top: .55rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sea); color: #fff;
  font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1rem 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; text-align: center; }
.fact b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--sea-dark); }
.fact span { font-size: .88rem; color: var(--ink-soft); }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.photos img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }

.back { display: inline-block; margin-top: 1.5rem; font-weight: 600; text-decoration: none; }
.source { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.note { font-size: .88rem; color: var(--ink-soft); }
footer { text-align: center; color: var(--ink-soft); font-size: .9rem; padding: 2rem 16px; border-top: 1px solid var(--line); }

/* Sunset banner (home page) */
.banner { height: 430px; background: url("sunset.jpg") center 40% / cover no-repeat; position: relative; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(250,246,239,.92) 100%); }
.banner-aloha {
  position: absolute; z-index: 1; top: 60px; left: 0; right: 0; margin: 0; text-align: center;
  color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 4.2rem;
  letter-spacing: .55em; padding-left: .55em; text-shadow: 0 2px 14px rgba(120,50,0,.45);
}
.banner-aloha span { display: inline-block; opacity: 0; transform: translateY(12px); animation: rise .9s ease-out forwards; }
.banner-aloha span:nth-child(2) { animation-delay: .15s; }
.banner-aloha span:nth-child(3) { animation-delay: .3s; }
.banner-aloha span:nth-child(4) { animation-delay: .45s; }
.banner-aloha span:nth-child(5) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .banner-aloha span { animation: none; opacity: 1; transform: none; } }
.profile {
  position: relative; z-index: 2; margin-top: -110px; padding: 0 1.5rem 1.8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.profile .headshot { width: 180px; height: 180px; border-width: 6px; margin-top: -90px; }

@media (max-width: 600px) {
  .banner { height: 270px; }
  .banner-aloha { top: 28px; font-size: 2.2rem; letter-spacing: .4em; padding-left: .4em; }
  .profile { margin-top: -70px; }
  .profile .headshot { width: 140px; height: 140px; margin-top: -70px; }
  h1 { font-size: 1.8rem; }
  .photos { grid-template-columns: 1fr; }
  .photos img { height: 180px; }
  .card { padding: 1.1rem; }
}

/* Media */
.video .frame { position: relative; padding-top: 56.25%; margin: -.2rem 0 .8rem; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Resume download button */
.btn { display: inline-block; margin-top: 1rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--sea); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--sea-dark); color: #fff; }
