/*
Theme Name: Vita Circle
Theme URI: https://example.com/vita-circle
Author: Vita Circle
Description: Starter membership theme for member biographies. Dark mode by default. Uses WordPress users as the member database.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: vita-circle
*/

:root,
[data-theme="dark"] {
  --bg: #12110f;
  --bg-deep: #0c0b0a;
  --paper: #1c1a17;
  --ink: #f3ece2;
  --ink-soft: #b7aea1;
  --line: #3a342c;
  --accent: #7dba9a;
  --accent-hover: #95cbb0;
  --gold: #d4b072;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --notice-bg: #243328;
  --notice-ink: #c5e6d2;
  --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #f4efe6;
  --bg-deep: #ebe4d6;
  --paper: #fffaf2;
  --ink: #1c1915;
  --ink-soft: #5c554c;
  --line: #d8cfc0;
  --accent: #2f5d4a;
  --accent-hover: #244839;
  --gold: #b0894a;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.08);
  --notice-bg: #e8f0ea;
  --notice-ink: #2f5d4a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(125, 186, 154, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
  top: 32px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

.brand span {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font: 600 0.95rem var(--sans);
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #10140f;
}

[data-theme="light"] .btn-primary {
  color: #f8f4ec;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper);
}

.hero {
  padding: 88px 0 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  margin: 0 0 18px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions,
.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card,
.card,
.form-panel,
.profile-side,
.member {
  background: var(--paper);
  border: 1px solid var(--line);
}

.hero-card {
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.portrait,
.avatar {
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}

.portrait {
  aspect-ratio: 4 / 5;
}

.quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 10px;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.content-section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 8px 0 12px;
}

.grid-3,
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--ink-soft);
}

.member {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.member:hover {
  transform: translateY(-4px);
}

.member-photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
}

.member-body {
  padding: 18px 18px 22px;
}

.role {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.form-panel {
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto 96px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 16px 0 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 12px 14px;
  font: 1rem var(--sans);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.notice,
.vita-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-weight: 600;
}

.vita-error {
  background: #3a2420;
  color: #f0c7c0;
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 64px 0 96px;
}

.profile-side {
  border-radius: 28px;
  padding: 24px;
  height: fit-content;
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
}

.bio-text {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.bio-text p + p {
  margin-top: 16px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--accent);
  color: #10140f;
  border-color: var(--accent);
}

.social-list--compact {
  margin: 12px 0 0;
}

.social-list--compact .social-link {
  width: 34px;
  height: 34px;
}

.social-fields {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 22px;
  padding: 8px 16px 16px;
}

.social-fields legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.entry {
  padding: 64px 0 96px;
  max-width: 720px;
}

@media (max-width: 860px) {
  .hero,
  .grid-3,
  .member-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 2.4rem;
  }
}
