/* ============================================================
   Kaya Keutler — Custom Styles
   Fonts: Playfair Display (headings) + Inter (body)
   Charcoal: #2D2D2D  — navbar, headers, footer
   Gold:     #D4A843  — accents, links, underlines
   Warm white: #F7F5F0 — background
   Warm grey:  #E0D8C8 — borders
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --charcoal:     #2D2D2D;
  --charcoal-mid: #444444;
  --gold:         #D4A843;
  --gold-dark:    #b08930;
  --bg:           #F7F5F0;
  --border:       #E0D8C8;
  --text:         #1a1a1a;
  --muted:        #6b6560;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Navbar ───────────────────────────────────────────────── */
.kaya-navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0.85rem 0;
}

/* Transparent variant — index.html hero only */
.kaya-navbar.navbar-transparent {
  background-color: transparent !important;
  box-shadow: none;
}

.kaya-navbar.navbar-transparent .navbar-brand,
.kaya-navbar.navbar-transparent .nav-link {
  color: rgba(255,255,255,0.92) !important;
}

.kaya-navbar.navbar-transparent .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.kaya-navbar.navbar-transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Solid variant — all inner pages + post-scroll on index */
.kaya-navbar.navbar-solid {
  background-color: var(--charcoal) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

.kaya-navbar.navbar-solid .navbar-brand,
.kaya-navbar.navbar-solid .nav-link {
  color: rgba(255,255,255,0.85) !important;
}

.kaya-navbar.navbar-solid .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}

.kaya-navbar.navbar-solid .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--gold) !important;
}

/* ── Hero (index.html only) ───────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/background/home.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.55);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  padding: 7rem 0 3rem;
  text-align: center;
  background: var(--charcoal);
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header .accent-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0.9rem auto 0;
}

.page-header p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-top: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

/* ── Writing Cards (Pen page) ─────────────────────────────── */
.writing-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  background: #fff;
}

.writing-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.writing-card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}

.writing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.writing-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.writing-card .read-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.writing-card .read-link:hover { color: var(--gold); }

/* ── Visual Cards (Paper page) ────────────────────────────── */
.visual-card {
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.visual-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.visual-card .visual-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--bg);
  padding: 1.2rem;
  display: block;
}

.visual-card .visual-body {
  padding: 1rem 1.2rem 1.4rem;
  border-top: 1px solid var(--border);
}

.visual-card .visual-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.visual-card .visual-caption {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Publications (Pipette page) ──────────────────────────── */
.orcid-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: #fff !important;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.orcid-btn:hover { background: var(--gold-dark); color: #fff !important; }

.orcid-btn img { width: 22px; height: 22px; }

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:last-child { border-bottom: none; }

.pub-item .pub-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.pub-item .pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.pub-item .pub-authors {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.pub-item .pub-journal {
  font-size: 0.88rem;
  font-style: italic;
  color: #888;
}

.pub-item .pub-doi {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.placeholder-note {
  font-size: 0.78rem;
  color: #bbb;
  font-style: italic;
}

/* ── Contact photo ────────────────────────────────────────── */
.contact-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ── Contact (Contact page) ───────────────────────────────── */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
}

.contact-value a {
  color: var(--text);
}

.contact-value a:hover { color: var(--gold-dark); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--charcoal);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .page-header { padding: 6rem 0 2.5rem; }
  .hero-tagline { letter-spacing: 0.25em; }
}
