/* Base reset and variables */
:root {
  --bg: #e9dccf;           /* warm beige */
  --bg-2: #e2d2c1;         /* subtle secondary beige */
  --card: #f5ede6;         /* soft card */
  --card-2: #efe4db;       /* gradient end */
  --text: #2d2219;         /* deep coffee */
  --muted: #7a6a5d;        /* desaturated brown */
  --primary: #7a5a43;      /* brown button */
  --primary-600: #6b4f3b;  /* darker brown */
  --ring: rgba(122, 90, 67, 0.35);
  --border: #e0d3c6;       /* light border */
  --shadow: 0 10px 24px rgba(60, 40, 20, 0.10), 0 2px 10px rgba(60, 40, 20, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background:
    radial-gradient(700px 400px at 80% -10%, rgba(0,0,0,0.06), transparent 60%),
    radial-gradient(600px 360px at 20% 10%, rgba(0,0,0,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Layout */
.container {
  max-width: 680px;
  padding: 24px 16px 80px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  text-align: center;
  padding: 28px 20px;
}

.avatar {
  width: 100px;
  height: 100px;
  margin: 4px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  background: linear-gradient(135deg, #f0e2d6, #e6d6c6);
  border: 4px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(100, 70, 40, 0.15);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

h1 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 2rem; margin: 10px 0 2px; letter-spacing: 0.2px; }
.subtitle { color: var(--muted); margin: 0 0 4px; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.tagline { color: #574739; margin: 0 0 14px; font-weight: 600; }

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  background: #a1836a;
  transition: transform 0.06s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  border-color: transparent;
  box-shadow: 0 8px 18px var(--ring);
}
.btn.primary:hover { filter: brightness(1.06); }

/* Quick links nav */
.links {
  margin-top: 16px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.link {
  display: block;
  padding: 12px 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.link:hover { background: rgba(0,0,0,0.05); }

/* Accordion */
.accordion { margin-top: 16px; padding: 6px 10px; }

.accordion details {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
  background: rgba(0,0,0,0.03);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  position: relative;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.2s ease;
}

.accordion details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0 14px 14px 16px;
  display: grid;
  gap: 12px;
}

.list li {
  border-top: 1px dashed #d5c6b7;
  padding-top: 10px;
}

.role { display: block; font-weight: 600; }
.org { display: block; color: var(--muted); }
.time { display: block; color: var(--muted); font-size: 0.95rem; }
.desc { display: block; margin-top: 4px; color: #5e4f43; }

/* Footer */
.footer {
  max-width: 680px;
  margin: 18px auto 0;
  padding: 14px 0 0;
  color: var(--muted);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Responsive tweaks */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .hero { padding: 40px 28px; }
}
