/* Clint Claessen — academic homepage
   Palette: deep ocean blue */

:root {
  --ocean-900: #061f33;
  --ocean-800: #0a3d62;
  --ocean-700: #144b7a;
  --ocean-600: #1e5f8e;
  --ocean-500: #3c7ea3;
  --ocean-300: #8fb6ce;
  --ocean-100: #d6e6f0;
  --ocean-50:  #eef4f9;
  --ink:       #15212d;
  --body:      #3a4856;
  --muted:     #6b7785;
  --rule:      #dde6ee;
  --bg:        #fbfcfd;
  --surface:   #ffffff;
  --shadow-sm: 0 1px 2px rgba(6, 31, 51, 0.05);
  --shadow-md: 0 8px 24px rgba(6, 31, 51, 0.08);
  --shadow-lg: 0 24px 48px rgba(6, 31, 51, 0.12);
  --radius:    14px;
  --radius-sm: 8px;
  --maxw:      1080px;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ocean-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
a:hover {
  color: var(--ocean-900);
  border-bottom-color: var(--ocean-500);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.005em; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

/* ───── Top bar / navigation ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ocean-900);
  border: none;
  letter-spacing: 0.005em;
}
.brand:hover { color: var(--ocean-700); border: none; }
.brand-mark {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ocean-700);
  vertical-align: middle;
  box-shadow: 0 0 0 4px var(--ocean-100);
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--body);
  border: none;
}
nav a:hover {
  background: var(--ocean-50);
  color: var(--ocean-800);
  border: none;
}
nav a.active {
  background: var(--ocean-800);
  color: #fff;
}

/* ───── Page layout ───── */
main { padding: 64px 28px 96px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-600);
  margin: 0 0 14px;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}

/* ───── Hero (homepage) ───── */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 24px 0 56px;
}
.hero-text h1 { margin-top: 12px; }
.hero-text h1 .accent {
  color: var(--ocean-700);
  background: linear-gradient(180deg, transparent 60%, var(--ocean-100) 60%);
  padding: 0 4px;
}
.hero-photo {
  position: relative;
  justify-self: end;
}
.hero-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--ocean-700);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ocean-800);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ocean-900);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ocean-800);
  border-color: var(--ocean-300);
}
.btn-ghost:hover {
  background: var(--ocean-50);
  color: var(--ocean-900);
  border-color: var(--ocean-500);
}

/* ───── Sections ───── */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 4px 0 4px;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--ocean-700);
  margin-top: 10px;
  border-radius: 2px;
}

/* ───── Cards / lists ───── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--ocean-300);
  box-shadow: var(--shadow-md);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* publication / item lists */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.pub-item {
  position: relative;
  padding: 18px 22px 18px 56px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .15s ease;
}
.pub-item:hover {
  border-color: var(--ocean-300);
  transform: translateX(2px);
}
.pub-item .num {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ocean-50);
  color: var(--ocean-800);
  font-size: 0.78rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.pub-item .title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.pub-item .meta {
  font-size: 0.92rem;
  color: var(--muted);
}
.pub-item .meta em { color: var(--ocean-700); font-style: normal; font-weight: 600; }

/* simple list (no numbers) */
.flat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.flat-list li {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ocean-500);
  border-radius: var(--radius-sm);
  transition: border-left-color .2s ease, transform .15s ease;
}
.flat-list li:hover {
  border-left-color: var(--ocean-800);
  transform: translateX(2px);
}

/* ───── Timeline (Resume) ───── */
.timeline {
  position: relative;
  padding-left: 28px;
  margin: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--ocean-300), var(--ocean-100));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 6px 0 22px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 12px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ocean-700);
  box-shadow: 0 0 0 4px #fff;
}
.timeline .when {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ocean-800);
  background: var(--ocean-50);
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 8px;
}
.timeline .what {
  font-weight: 600;
  color: var(--ink);
}
.timeline .where {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ───── Tags / chips ───── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ocean-800);
  background: var(--ocean-50);
  border: 1px solid var(--ocean-100);
  border-radius: 999px;
}

/* ───── Quote / callout ───── */
.callout {
  background: linear-gradient(135deg, var(--ocean-900), var(--ocean-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset: -50% auto auto -10%;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.callout p { color: rgba(255,255,255,0.92); margin: 0; }
.callout .eyebrow { color: var(--ocean-300); }

/* image figure */
.figure {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rule);
}
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption {
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--ocean-50);
  border-top: 1px solid var(--rule);
}

/* contact block */
.contact-card {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.contact-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-card .email {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ocean-800);
  font-weight: 600;
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--rule);
  padding: 36px 28px;
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-inner a { color: var(--ocean-700); border: none; }
.footer-inner a:hover { color: var(--ocean-900); }

/* ───── Responsive ───── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 8px;
  }
  .hero-photo { justify-self: center; }
  .hero-photo img { max-width: 280px; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
  nav ul { gap: 0; }
  nav a { padding: 8px 10px; font-size: 0.88rem; }
  .topbar-inner { padding: 14px 18px; }
  main { padding: 36px 18px 72px; }
  section { padding: 36px 0; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.1rem; }
  nav a { padding: 6px 8px; font-size: 0.82rem; }
  .pub-item { padding-left: 22px; }
  .pub-item .num { display: none; }
}

/* subtle entrance */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeUp .6s ease both; }
  .fade-in-2 { animation: fadeUp .6s .1s ease both; }
  .fade-in-3 { animation: fadeUp .6s .2s ease both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
