/* MVR Infotainer — jadeepa-inspired editorial skin */

:root {
  --mvr-accent: #bcb34c;
  --mvr-accent-soft: rgba(188, 179, 76, 0.18);
  --mvr-ink: #111111;
  --mvr-muted: #595a6c;
  --mvr-surface: #ffffff;
  --mvr-bar: #222222;
  --mvr-bar-deep: #141414;
  --mvr-rule: #eaeaea;
  --mvr-cream: #f4f1e6;
  --mvr-serif: "Noto Serif Tamil", "Noto Serif", Georgia, serif;
  --mvr-sans: "Catamaran", "Helvetica Neue", sans-serif;
  --mvr-measure: 42rem;
  --mvr-wide: 72rem;
}

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

html.mvr-site {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mvr-sans);
  color: var(--mvr-ink);
  background-color: var(--mvr-cream);
  background-image:
    radial-gradient(ellipse at top, rgba(188, 179, 76, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f4ea 0%, #efe9d8 100%);
  background-attachment: fixed;
  line-height: 1.65;
}

a {
  color: var(--mvr-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--mvr-accent);
}

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

/* ---------- Header ---------- */

.mvr-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--mvr-bar);
  color: #fff;
  border-bottom: 3px solid var(--mvr-accent);
}

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

.mvr-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  animation: mvr-fade-up 0.7s ease both;
}

.mvr-brand:hover,
.mvr-brand:focus-visible {
  color: #fff;
  opacity: 0.92;
}

.mvr-brand__mark {
  font-family: var(--mvr-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mvr-accent);
}

.mvr-brand__name {
  font-family: var(--mvr-sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.mvr-nav__link {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mvr-nav__link:hover,
.mvr-nav__link:focus-visible {
  color: var(--mvr-accent);
}

/* ---------- Hero ---------- */

.mvr-hero {
  position: relative;
  min-height: min(88vh, 44rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--mvr-bar-deep);
  color: #fff;
}

.mvr-hero__media {
  position: absolute;
  inset: 0;
}

.mvr-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: mvr-kenburns 12s ease-out both;
}

.mvr-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.25) 0%, rgba(20, 20, 20, 0.78) 58%, rgba(20, 20, 20, 0.94) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.55), transparent 55%);
}

.mvr-hero--has-image .mvr-hero__veil {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.2) 0%, rgba(20, 20, 20, 0.72) 55%, rgba(20, 20, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.5), transparent 60%);
}

.mvr-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--mvr-wide);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  animation: mvr-fade-up 0.85s ease 0.12s both;
}

.mvr-hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--mvr-serif);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
}

.mvr-hero__tagline {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.mvr-hero__kicker {
  margin: 0 0 0.55rem;
  color: var(--mvr-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mvr-hero__title {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-family: var(--mvr-serif);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
}

.mvr-hero__title a {
  color: #fff;
  text-decoration: none;
}

.mvr-hero__title a:hover,
.mvr-hero__title a:focus-visible {
  color: var(--mvr-accent);
}

.mvr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mvr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  font-family: var(--mvr-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mvr-btn--primary {
  background: var(--mvr-accent);
  color: #111;
}

.mvr-btn--primary:hover,
.mvr-btn--primary:focus-visible {
  background: #d0c65c;
  color: #111;
}

.mvr-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.mvr-btn--ghost:hover,
.mvr-btn--ghost:focus-visible {
  border-color: var(--mvr-accent);
  color: var(--mvr-accent);
}

.mvr-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Archive ---------- */

.mvr-archive {
  max-width: var(--mvr-wide);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1rem;
}

.mvr-year + .mvr-year {
  margin-top: 2.5rem;
}

.mvr-year__label {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--mvr-accent);
  font-family: var(--mvr-serif);
  font-size: 1.75rem;
  font-weight: 700;
  display: inline-block;
  min-width: 4.5rem;
}

.mvr-year__list {
  display: flex;
  flex-direction: column;
}

.mvr-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--mvr-rule);
  transition: background-color 0.2s ease;
}

.mvr-row:hover {
  background: var(--mvr-accent-soft);
}

.mvr-row__date {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mvr-muted);
  padding-top: 0.35rem;
  white-space: nowrap;
}

.mvr-row__title {
  margin: 0 0 0.35rem;
  font-family: var(--mvr-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}

.mvr-row__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--mvr-accent), var(--mvr-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.mvr-row:hover .mvr-row__title a,
.mvr-row__title a:focus-visible {
  background-size: 100% 2px;
  color: var(--mvr-ink);
}

.mvr-row__excerpt {
  margin: 0;
  color: var(--mvr-muted);
  font-size: 0.98rem;
  max-width: 46rem;
}

.mvr-archive-pager {
  max-width: var(--mvr-wide);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mvr-archive-pager .mvr-btn--ghost {
  border-color: rgba(17, 17, 17, 0.25);
  color: var(--mvr-ink);
}

.mvr-archive-pager .mvr-btn--ghost:hover,
.mvr-archive-pager .mvr-btn--ghost:focus-visible {
  border-color: var(--mvr-accent);
  color: var(--mvr-accent);
}

/* ---------- Article ---------- */

.mvr-article {
  max-width: var(--mvr-measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.mvr-article__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--mvr-rule);
  animation: mvr-fade-up 0.55s ease both;
}

.mvr-article__date {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--mvr-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mvr-article__title {
  margin: 0;
  font-family: var(--mvr-serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.mvr-article__content {
  font-size: 1.05rem;
}

.mvr-article__content h1,
.mvr-article__content h2,
.mvr-article__content h3,
.mvr-article__content h4 {
  font-family: var(--mvr-serif);
  font-weight: 700;
  line-height: 1.35;
}

.mvr-article__content img,
.mvr-article__content figure {
  margin-left: auto;
  margin-right: auto;
}

.mvr-article__content figure {
  margin: 1.5rem 0;
}

.mvr-article__content a {
  color: #6d6820;
  text-decoration: underline;
}

.mvr-article__content a:hover {
  color: var(--mvr-accent);
}

.mvr-pager {
  max-width: var(--mvr-measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--mvr-rule);
}

.mvr-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  padding: 0.75rem 0;
}

.mvr-pager__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mvr-accent);
}

.mvr-pager__title {
  font-family: var(--mvr-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mvr-ink);
}

.mvr-pager__link:hover .mvr-pager__title {
  color: var(--mvr-accent);
}

@media (min-width: 720px) {
  .mvr-pager {
    grid-template-columns: 1fr 1fr;
  }

  .mvr-pager__link--next {
    text-align: right;
  }
}

.mvr-share {
  max-width: var(--mvr-measure);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
}

.mvr-share__title {
  margin: 0 0 0.75rem;
  font-family: var(--mvr-serif);
  font-size: 1.1rem;
}

/* ---------- About ---------- */

.mvr-about {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.mvr-about__card {
  background: var(--mvr-surface);
  border-top: 3px solid var(--mvr-accent);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.mvr-about__avatar {
  margin: 0 auto 1.25rem;
  width: 10rem;
  height: 10rem;
}

.mvr-about__avatar img,
.mvr-about__content img {
  display: block;
  width: 10rem;
  height: 10rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mvr-accent);
}

.mvr-about__content h1,
.mvr-about__content h3 {
  margin: 0 0 0.75rem;
  font-family: var(--mvr-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--mvr-ink);
}

.mvr-about__content p {
  margin: 0;
  color: var(--mvr-muted);
  font-size: 1.05rem;
}

.mvr-about__social {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.mvr-about__social-link {
  color: var(--mvr-bar);
  font-size: 1.6rem;
  text-decoration: none;
}

.mvr-about__social-link:hover,
.mvr-about__social-link:focus-visible {
  color: var(--mvr-accent);
}

/* ---------- Footer ---------- */

.mvr-footer {
  margin-top: 2rem;
  background: var(--mvr-bar);
  color: rgba(255, 255, 255, 0.72);
  border-top: 3px solid var(--mvr-accent);
}

.mvr-footer__inner {
  max-width: var(--mvr-wide);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.mvr-footer__copy,
.mvr-footer__credit {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.mvr-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.mvr-footer a:hover,
.mvr-footer a:focus-visible {
  color: var(--mvr-accent);
}

.mvr-footer__credit a {
  font-size: 0.8rem;
}

/* ---------- Charaka / Bulma quieting ---------- */

.mvr-site .navbar,
.mvr-site .navbar-brand,
.mvr-site .navbar-menu {
  background: transparent;
}

.mvr-site .container > .navbar.level {
  display: none;
}

.mvr-site .button.is-marginless.is-paddingless {
  color: var(--mvr-accent);
}

.mvr-site .pagination {
  max-width: var(--mvr-measure);
  margin: 0 auto;
}

/* ---------- Motion ---------- */

@keyframes mvr-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mvr-kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .mvr-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .mvr-hero__content {
    padding-top: 5.5rem;
  }

  .mvr-brand__name {
    letter-spacing: 0.05em;
  }
}
