/* Yassuan portfolio – matches CV v4 palette */
:root {
  --text: #191919;
  --muted: #646464;
  --accent: #374b58;
  --accent-soft: #f1f2f3;
  --line: #b4b4b4;
  --link: #233744;
  --bg: #ffffff;
  --max: 960px;
  --sidebar: 260px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--link); }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.site-logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav a.is-active,
.site-nav a:hover { color: var(--accent); }

.site-nav a.is-active { font-weight: 600; }

main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 3rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.35rem;
  margin: 2rem 0 1rem;
}

.section-label:first-child { margin-top: 0; }

/* ── Landing ── */
.landing {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.landing h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.landing .tagline { color: var(--muted); margin-bottom: 2.5rem; max-width: 32rem; }

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 640px;
}

.landing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.landing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(55, 75, 88, 0.08);
  text-decoration: none;
}

.landing-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.landing-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ── Professional ── */
.pro-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.pro-hero img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.pro-hero h1 {
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.pro-hero .role { color: var(--muted); font-size: 1.05rem; margin-bottom: 0.75rem; }

.pro-contact { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.pro-contact a { color: var(--link); }

.pro-profiles {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn:hover { opacity: 0.92; }

.pro-grid {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 2rem;
  align-items: start;
}

.pro-sidebar {
  background: var(--accent-soft);
  padding: 1.25rem;
  border-radius: 4px;
}

.pro-sidebar h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  margin: 1.25rem 0 0.5rem;
}

.pro-sidebar h3:first-child { margin-top: 0; }

.pro-sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.pro-sidebar li { margin-bottom: 0.2rem; }

.pro-sidebar .lang-table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
  margin-bottom: 0.25rem;
}

.pro-sidebar .lang-table th {
  text-align: left;
  font-weight: 700;
  padding: 0.1rem 0.5rem 0.1rem 0;
}

.pro-sidebar .lang-table td { color: var(--muted); }

.pro-sidebar .qual-list { font-size: 0.85rem; }

.pro-main p { margin: 0 0 0.85rem; }

.edu { margin-bottom: 1.5rem; }

.grades-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0.35rem;
}

.grades-table {
  width: 100%;
  max-width: 36rem;
  font-size: 0.88rem;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.grades-table td { padding: 0.15rem 0.5rem 0.15rem 0; vertical-align: top; }

.grades-table td.grade {
  font-weight: 700;
  white-space: nowrap;
  width: 2rem;
  padding-right: 0.35rem;
}

.grades-table--two td:nth-child(3) { padding-left: 1rem; }

.voluntary { margin-bottom: 0.85rem; }

.voluntary-role { font-weight: 700; font-size: 0.92rem; }

.voluntary-org { font-size: 0.9rem; }

.voluntary-status {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.job { margin-bottom: 1.5rem; }

.job-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }

.job-title { font-weight: 700; font-size: 0.95rem; }

.job-org { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.35rem; }

.job ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }

.social-links { margin-top: 2rem; font-size: 0.88rem; }
.social-links a { margin-right: 1rem; }

/* ── Blog ── */
.blog-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }

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

.blog-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.blog-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

.blog-list a:hover { color: var(--accent); }

.blog-list .meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

.blog-post .post-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.blog-post .post-content {
  max-width: 42rem;
  font-size: 1rem;
}

.blog-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.blog-post .post-content figure { margin: 1.5rem 0; }

.blog-post .post-content h2,
.blog-post .post-content h3 { color: var(--accent); margin-top: 1.75rem; }

/* ── Private (Cloudflare Access in production) ── */
.private-notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.private-notice code {
  font-size: 0.85em;
  background: #fff;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.private-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.private-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.private-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.private-list a:hover { color: var(--accent); }

.private-list .meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

.private-notes {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.1rem;
}

.private-page .post-content .wp-block-button__link {
  pointer-events: none;
  opacity: 0.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .pro-hero { grid-template-columns: 1fr; text-align: center; }
  .pro-hero img { margin: 0 auto; }
  .pro-grid { grid-template-columns: 1fr; }
}
