/*
Theme Name: Virtual Educator
Theme URI: https://virtual-educator.com/
Author: Mike McKay
Description: Personal site theme for Virtual Educator: client login home page, About page, and Work gallery.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virtual-educator
*/

:root {
  --ve-ground: #0E1A1F;
  --ve-panel: #15272E;
  --ve-well: #0B1519;
  --ve-line: #2C434B;
  --ve-control: #6B868D;
  --ve-text: #EEF3F1;
  --ve-soft: #C9D5D4;
  --ve-muted: #B4C3C4;
  --ve-accent: #F2B544;
  --ve-accent-hover: #FFD27A;
  --ve-display: 'Space Grotesk', system-ui, sans-serif;
  --ve-body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ve-ground);
  background-image: radial-gradient(rgba(238, 243, 241, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ve-text);
  font-family: var(--ve-body);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--ve-accent); }
a:hover { color: var(--ve-accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ve-accent-hover);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ve-skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto;
  clip: auto; clip-path: none; padding: 12px 16px;
  background: var(--ve-accent); color: var(--ve-ground); font-weight: 600; border-radius: 8px;
}

/* Layout shell */
.ve-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.ve-header {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.ve-logo { display: flex; align-items: center; min-height: 44px; }
.ve-logo img { display: block; height: 52px; width: auto; }
.ve-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ve-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-size: 15px; font-weight: 600; color: var(--ve-text); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.ve-nav a:hover { color: var(--ve-accent-hover); }
.ve-nav a[aria-current="page"] { border-bottom-color: var(--ve-accent); }
.ve-nav a.ve-nav-button {
  padding: 0 18px; border: 1px solid var(--ve-control); border-radius: 10px;
}
.ve-nav a.ve-nav-button[aria-current="page"] { border-color: var(--ve-accent); }
.ve-main { flex: 1; padding-top: 48px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 56px; }
.ve-footer {
  padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--ve-line);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 14px; color: var(--ve-muted);
}

/* Shared type */
.ve-eyebrow {
  margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ve-accent);
}
.ve-h1 {
  margin: 0; font-family: var(--ve-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em;
  text-wrap: balance;
}
.ve-lead { margin: 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.6; color: var(--ve-soft); text-wrap: pretty; }
.ve-stack { display: flex; flex-direction: column; gap: 24px; }
.ve-numlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--ve-line); }
.ve-numlist li { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--ve-line); line-height: 1.5; }
.ve-num { font-family: var(--ve-display); font-size: 14px; font-weight: 600; color: var(--ve-accent); }
.ve-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  font-family: var(--ve-display); font-size: 1.0625rem; font-weight: 600;
  color: var(--ve-ground); background-color: var(--ve-accent);
  text-decoration: none; border: 0; border-radius: 10px; cursor: pointer;
}
.ve-button:hover { color: var(--ve-ground); background-color: var(--ve-accent-hover); }
.ve-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 32px; background-color: var(--ve-panel); border: 1px solid var(--ve-line); border-radius: 16px;
}
.ve-band p { margin: 0; flex: 1 1 320px; font-size: 1.0625rem; line-height: 1.5; }

/* Home */
.ve-home { flex-direction: row; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
.ve-home-intro { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ve-home-intro .ve-numlist { margin-top: 8px; max-width: 34rem; }
.ve-card {
  flex: 1 1 380px; min-width: 0; max-width: 460px; padding: 40px;
  background-color: var(--ve-panel); border: 1px solid var(--ve-line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 24px;
}
.ve-card h2 { margin: 0 0 8px; font-family: var(--ve-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.2; }
.ve-card-note { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ve-muted); }
.ve-card-foot { margin: 0; padding-top: 20px; border-top: 1px solid var(--ve-line); font-size: 0.9375rem; line-height: 1.5; color: var(--ve-muted); }
.ve-form { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.ve-field { display: flex; flex-direction: column; gap: 8px; }
.ve-field label, .ve-field-head label { font-size: 14px; font-weight: 500; }
.ve-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ve-field-head a { font-size: 14px; }
.ve-input {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 1rem;
  color: var(--ve-text); background-color: var(--ve-well);
  border: 1px solid var(--ve-control); border-radius: 10px;
}
.ve-pass-row { display: flex; gap: 8px; }
.ve-pass-row .ve-input { flex: 1; min-width: 0; }
.ve-toggle {
  height: 48px; min-width: 72px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ve-text); background-color: transparent;
  border: 1px solid var(--ve-control); border-radius: 10px; cursor: pointer;
}
.ve-check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 0.9375rem; color: var(--ve-soft); cursor: pointer; }
.ve-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ve-accent); }
.ve-error {
  margin: 0; padding: 12px 14px; font-size: 0.9375rem; line-height: 1.4;
  color: #FFD9D2; background-color: #3A1F1C; border: 1px solid #C56A5C; border-radius: 10px;
}
.ve-form .ve-button { width: 100%; }
.ve-links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--ve-line); }
.ve-links li { border-bottom: 1px solid var(--ve-line); }
.ve-links a { display: flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; }

/* About */
.ve-about { gap: 64px; }
.ve-about-lead { margin: 0; max-width: 46rem; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; text-wrap: pretty; }
.ve-about-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.ve-about-text { flex: 999 1 460px; min-width: 0; max-width: 42rem; display: flex; flex-direction: column; gap: 24px; }
.ve-about-text p { margin: 0; font-size: 1.125rem; line-height: 1.7; color: var(--ve-soft); text-wrap: pretty; }
.ve-areas {
  flex: 1 1 340px; min-width: 0; padding: 32px;
  background-color: var(--ve-panel); border: 1px solid var(--ve-line); border-radius: 16px;
}
.ve-areas h2 { margin: 0 0 16px; font-family: var(--ve-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
.ve-areas .ve-numlist li { padding: 14px 0; }
.ve-approach { display: flex; flex-direction: column; gap: 20px; padding-top: 48px; border-top: 1px solid var(--ve-line); }
.ve-approach h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ve-accent); }
.ve-approach p {
  margin: 0; max-width: 24ch; font-family: var(--ve-display); font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance;
}

/* Work */
.ve-work-h1 { max-width: 20ch; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.05; }
.ve-work-lead { max-width: 40rem; }
.ve-filters { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.ve-filter {
  min-height: 44px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ve-text); background-color: transparent;
  border: 1px solid var(--ve-control); border-radius: 999px; cursor: pointer;
}
.ve-filter[aria-pressed="true"] { color: var(--ve-ground); background-color: var(--ve-accent); border-color: var(--ve-accent); }
.ve-group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--ve-line);
}
.ve-group-head h2 { margin: 0; font-family: var(--ve-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.ve-group-head span { font-size: 14px; color: var(--ve-muted); }
.ve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.ve-project {
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  background-color: var(--ve-panel); border: 1px solid var(--ve-line); border-radius: 16px;
}
.ve-project-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background-color: var(--ve-well); border: 1px solid var(--ve-line); border-radius: 10px; }
.ve-project-meta { display: flex; gap: 12px; align-items: baseline; }
.ve-project-tags { font-size: 13px; line-height: 1.5; color: var(--ve-muted); }
.ve-project-status { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ve-accent); }
.ve-project h3 { margin: 0; font-family: var(--ve-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.ve-project p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ve-soft); }
.ve-project-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: auto; }
.ve-project-links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

/* Other pages and posts */
.ve-prose { max-width: 46rem; }
.ve-prose h1 { margin: 0 0 24px; font-family: var(--ve-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
.ve-prose h2, .ve-prose h3 { font-family: var(--ve-display); line-height: 1.25; margin: 2em 0 0.5em; }
.ve-prose p, .ve-prose li { font-size: 1.0625rem; line-height: 1.7; color: var(--ve-soft); }
.ve-prose table { width: 100%; border-collapse: collapse; }
.ve-prose th, .ve-prose td { padding: 10px 12px; border: 1px solid var(--ve-line); text-align: left; }
.ve-prose article + article { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--ve-line); }

@media (max-width: 600px) {
  .ve-wrap { padding-left: 20px; padding-right: 20px; }
  .ve-logo img { height: 44px; }
  .ve-card { padding: 28px 24px; }
  .ve-home { gap: 40px; }
}
