/* === Vima — Hugo theme matching the original Wix design === */

:root {
  --color-bg: #ebebe6;
  --color-header: #abab9c;
  --color-text: #010101;
  --color-muted: #555;
  --color-divider: #d2d2c9;
  --color-accent: #4a90b8;
  --color-accent-deep: #2c5f80;
  --color-cta-primary-bg: #2c5f80;
  --color-cta-primary-text: #fff;
  --color-cta-secondary-bg: #6ba3c6;
  --color-cta-secondary-text: #fff;
  --font-display: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container-max: 1200px;
  --content-max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-deep); }
a:hover { color: var(--color-accent); }

/* === Header === */

.site-header {
  background: var(--color-header);
  color: #000;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
}

.header-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: #000;
}
.header-mark svg { width: 100%; height: 100%; }

.header-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 36px;
  justify-content: flex-start;
}
.header-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { color: #000; }
.header-nav a[aria-current="page"] {
  border-bottom-color: #000;
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 14px;
}

.cta {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  border-radius: 2px;
  transition: opacity 0.15s;
}
.cta:hover { opacity: 0.85; }
.cta-primary {
  background: var(--color-cta-primary-bg);
  color: var(--color-cta-primary-text);
}
.cta-secondary {
  background: var(--color-cta-secondary-bg);
  color: var(--color-cta-secondary-text);
}
.cta-link {
  color: #000;
  text-decoration: underline;
  font-size: 13px;
  text-align: center;
  padding: 2px 0;
}

/* === Hero === */

.hero {
  background: var(--color-bg);
  padding: 80px 32px 100px;
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-logo svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #111;
  margin: 0;
}

/* === Sections === */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 48px;
  color: #111;
}

.key-points {
  background: var(--color-divider);
  padding: 90px 32px;
}
.key-points-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.key-points-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: keypoint;
}
.key-points-list li {
  counter-increment: keypoint;
  position: relative;
  padding-left: 56px;
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.55;
}
.key-points-list li::before {
  content: counter(keypoint);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  color: #444;
}
.key-points-figure {
  margin: 0;
}
.key-points-figure img {
  width: 100%;
  border-radius: 2px;
}

.cta-strip {
  background: var(--color-bg);
  padding: 80px 32px;
  text-align: center;
}
.cta-line {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.4;
  margin: 0 0 32px;
  color: #111;
}
.cta-line a { color: var(--color-accent-deep); text-decoration: none; border-bottom: 1px solid currentColor; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Card grids === */

.featured-blog,
.featured-stories {
  padding: 90px 32px;
}
.featured-stories { background: var(--color-divider); }

.card-grid {
  display: grid;
  gap: 28px;
}
.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0eb;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin: 16px 18px 6px;
  line-height: 1.3;
}
.card-desc {
  font-size: 14px;
  margin: 0 18px 18px;
  color: var(--color-muted);
}

/* === Conferences === */

.conferences {
  background: var(--color-bg);
  padding: 90px 32px;
}
.conference-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.conference-row figure {
  margin: 0;
  text-align: center;
}
.conference-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.conference-row figcaption {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 10px;
  line-height: 1.3;
}

/* === Authors === */

.authors {
  background: var(--color-divider);
  padding: 90px 32px;
}
.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}
.author {
  text-align: center;
}
.author img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.author h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  margin: 0 0 12px;
}
.author p {
  font-size: 15px;
  line-height: 1.55;
  color: #333;
  margin: 0;
}

/* === FAQ === */

.faq {
  background: var(--color-bg);
  padding: 90px 32px;
}
.faq .container { max-width: 760px; }
.faq details {
  border-bottom: 1px solid #ccc;
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  padding: 4px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  font-weight: 200;
  font-size: 22px;
  margin-left: 16px;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin: 12px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

/* === Contact === */

.contact {
  background: var(--color-divider);
  padding: 90px 32px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 980px;
}
.contact .section-title { text-align: left; margin-bottom: 24px; }
.contact address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #aaa;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  border-radius: 2px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

/* === Site footer === */

.site-footer {
  background: var(--color-header);
  color: #000;
  padding: 32px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: #000;
  text-decoration: none;
}

/* === Inner pages (single + list) === */

.page-hero {
  height: 360px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-divider);
}

.page-back {
  margin-top: 48px;
  font-size: 14px;
}
.page-back a { text-decoration: none; }

.page {
  padding: 0 0 96px;
}
.page > .page-inner,
section.page > .page-inner {
  padding: 64px 32px 0;
}
.page-hero + .page-inner { padding-top: 56px; }
.page-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.page h1 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.15;
  margin: 0 0 32px;
}
.page-meta {
  color: var(--color-muted);
  font-size: 14px;
  margin: -24px 0 32px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  margin: 48px 0 16px;
}
.page-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 36px 0 12px;
}
.page-content p { margin: 0 0 18px; }
.page-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 18px;
  color: #444;
  margin: 24px 0;
}
.page-content table {
  border-collapse: collapse;
  margin: 24px 0;
  width: 100%;
}
.page-content table td, .page-content table th {
  border-bottom: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}
.page-content img {
  margin: 24px 0;
  border-radius: 2px;
}
.page-content ul, .page-content ol { margin: 0 0 18px; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }

.md-figure { margin: 24px 0; }
.md-figure img { border-radius: 2px; }
.md-figure figcaption { font-size: 13px; color: var(--color-muted); margin-top: 6px; }

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

/* === Responsive === */

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo svg { margin: 0 auto; }
  .key-points-grid, .author-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .conference-row { grid-template-columns: repeat(3, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-nav ul { gap: 18px; flex-wrap: wrap; }
  .card-grid-4, .conference-row, .list-grid { grid-template-columns: 1fr; }
}
