/* ClaritaLB.org
   First-person academic website.
   Palette: selected blue-green foundation from Set 1 and Set 3, with a restrained copper accent.
*/

:root {
  /* Selected palette */
  --ink: #041421;          /* Set 1: deep rich navy */
  --heading: #042630;      /* Set 1: blue-black heading tone */
  --primary: #4c7273;      /* Set 1: blue-green */
  --accent: #165578;       /* Set 3: lapis lazuli */
  --accent-soft: #86b9b0;  /* Set 1: soft water green */
  --border: #d0d6d6;       /* Set 1: pale gray-blue */
  --copper: #a06a3a;       /* small warmth accent */
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-tint: #eef6f5;
  --muted: #4e6262;
  --line: rgba(4, 20, 33, 0.14);
  --shadow: 0 24px 70px rgba(4, 20, 33, 0.11);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(134, 185, 176, .30), transparent 34rem),
    radial-gradient(circle at 100% 8%, rgba(22, 85, 120, .18), transparent 34rem),
    linear-gradient(180deg, #f9fbfb 0%, var(--bg) 42%, #eef4f3 100%);
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  z-index: 1000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 248, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 760;
  color: var(--heading);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--heading), var(--primary));
  color: white;
  display: grid;
  place-items: center;
  letter-spacing: .03em;
  font-size: .82rem;
  box-shadow: 0 12px 34px rgba(4, 38, 48, .22);
}

.brand-text { white-space: nowrap; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .95rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: var(--ink);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5.5rem 0; }

.alt {
  background:
    linear-gradient(180deg, rgba(214, 240, 241, .20), rgba(255, 255, 255, .54));
  border-block: 1px solid var(--line);
}

.hero { padding-top: 6.25rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 850;
  margin: 0 0 .9rem;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
  color: var(--heading);
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  letter-spacing: -.065em;
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.045em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 760px;
  margin: 1.4rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 760;
  border: 1px solid var(--accent);
  box-shadow: 0 14px 36px rgba(22, 85, 120, .22);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--heading);
  box-shadow: 0 18px 42px rgba(4, 38, 48, .24);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(22, 85, 120, .08);
  color: var(--heading);
}

.button.small {
  min-height: 38px;
  padding: .5rem .85rem;
  color: white !important;
}

.profile-card,
.card,
.contact-card {
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-card { padding: 1.25rem; }

.portrait-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 8px);
  background:
    radial-gradient(circle at 22% 20%, rgba(214, 240, 241, .35), transparent 16rem),
    linear-gradient(135deg, var(--heading), var(--primary) 58%, var(--accent-soft));
  color: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
}

.profile-card h2 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.profile-card ul,
.check-list {
  padding-left: 1.25rem;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 760;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover { color: var(--heading); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem;
}

.prose {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:first-child { margin-top: 0; }

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-soft), var(--accent));
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: .9rem;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.project p {
  margin: .5rem 0 0;
  color: var(--muted);
}

.pub-tools { margin-bottom: 1rem; }

input[type="search"] {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: .85rem 1rem;
  font: inherit;
  color: var(--ink);
  outline-color: var(--accent);
}

.pub-list {
  display: grid;
  gap: .85rem;
  padding-left: 1.25rem;
}

.pub-list li {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1rem 1.25rem;
}

.pub-list strong { color: var(--heading); }

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

.timeline {
  display: grid;
  gap: 1rem;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.timeline article {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 1.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(160, 106, 58, .16);
}

.timeline p {
  color: var(--muted);
  margin-bottom: 0;
}

.media-list {
  display: grid;
  gap: .75rem;
}

.media-list a {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.media-list a:hover {
  border-color: rgba(22, 85, 120, .35);
  background: var(--surface-tint);
}

.media-list span {
  color: var(--copper);
  font-weight: 850;
}

.contact-card {
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(134, 185, 176, .22), transparent 24rem),
    rgba(255, 255, 255, .88);
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.open { display: flex; }

  .hero-grid,
  .two-col,
  .contact-card,
  .project {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .section { padding: 4rem 0; }

  .hero { padding-top: 4.5rem; }

  .contact-card { align-items: start; }
}

@media (max-width: 520px) {
  .brand-text { display: none; }

  .media-list a {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}
