/**
 * Art Revisionist Global Styles
 * Based on artrevisionist.com design
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ar-font-body);
  font-size: var(--ar-text-base);
  font-weight: var(--ar-weight-normal);
  line-height: 1.6;
  color: var(--ar-text);
  background-color: var(--ar-bg);
  background-image: url('../bg_parchment.png');
  background-repeat: repeat;
  background-attachment: scroll;
  background-size: contain;
}

/* Fixed fade overlay for scrolling content */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background-image: url('../bg_parchment.png');
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(to bottom,
    black 10px,
    black 50px,
    rgba(0, 0, 0, 0.7) 62px,
    rgba(0, 0, 0, 0.4) 75px,
    transparent 90px
  );
  mask-image: linear-gradient(to bottom,
    black 10px,
    black 50px,
    rgba(0, 0, 0, 0.7) 62px,
    rgba(0, 0, 0, 0.4) 75px,
    transparent 90px
  );
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ar-font-heading);
  font-weight: var(--ar-weight-semibold);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--ar-space-lg);
  color: var(--ar-primary);
}

/* Light portion of a split title — inherits weight 400 from a font-weight:400 parent heading */
.ar-title-light {
  font-weight: 400;
  display: inline;
}

a {
  color: var(--ar-primary);
  text-decoration: none;
  transition: color var(--ar-transition-fast);
}

a:hover,
a:focus {
  color: var(--ar-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.ar-header {
  background-color: transparent;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: none;
}

.ar-header__container {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: var(--ar-space-lg) var(--ar-space-2xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--ar-space-xl);
}

/* Logo */
.ar-header__logo {
  flex-shrink: 0;
  max-width: 300px;
  grid-column: 1;
  margin-left: calc(100px - var(--ar-space-2xl));
}

.ar-header__logo a {
  display: flex;
  align-items: center;
}

.ar-logo-image {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ar-logo-text {
  font-family: var(--ar-font-heading);
  font-size: var(--ar-text-xl);
  font-weight: var(--ar-weight-bold);
  color: var(--ar-primary);
}

/* Navigation */
.ar-header__nav {
  grid-column: 2;
  display: block;
}

.ar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ar-space-xl);
}

.ar-menu li {
  position: relative;
}

.ar-menu a {
  font-family: var(--ar-font-heading);
  font-size: var(--ar-text-base);
  font-weight: var(--ar-weight-semibold);
  color: var(--ar-primary);
  padding: var(--ar-space-xs) var(--ar-space-sm);
  display: block;
  transition: color var(--ar-transition-fast);
}

.ar-menu a:hover,
.ar-menu a:focus,
.ar-menu li.current-menu-item > a {
  color: var(--ar-accent);
}

/* Submenu */
.ar-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--ar-bg);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-md);
  box-shadow: var(--ar-shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--ar-space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--ar-transition-base);
  z-index: var(--ar-z-dropdown);
}

.ar-menu li:hover > .sub-menu,
.ar-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ar-menu .sub-menu a {
  padding: var(--ar-space-sm) var(--ar-space-lg);
}

/* Search */
.ar-header__search {
  grid-column: 3;
  display: none;
}

.ar-header__search form {
  position: relative;
  display: flex;
  align-items: center;
}

.ar-header__search input[type="search"] {
  padding: var(--ar-space-xs) var(--ar-space-lg);
  padding-right: 2.5rem;
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-lg);
  font-family: var(--ar-font-body);
  font-size: var(--ar-text-sm);
  width: 200px;
  transition: all var(--ar-transition-base);
}

.ar-header__search input[type="search"]:focus {
  outline: none;
  border-color: var(--ar-accent);
  width: 250px;
}

.ar-header__search button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ar-primary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-header__search button:hover {
  color: var(--ar-accent);
}

/* Mobile Toggle */
.ar-header__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: var(--ar-space-xs);
  cursor: pointer;
  z-index: var(--ar-z-fixed);
  grid-column: 3;
}

.ar-hamburger {
  width: 24px;
  height: 2px;
  background-color: var(--ar-primary);
  transition: all var(--ar-transition-base);
}

.ar-header__toggle[aria-expanded="true"] .ar-hamburger:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ar-header__toggle[aria-expanded="true"] .ar-hamburger:nth-child(2) {
  opacity: 0;
}

.ar-header__toggle[aria-expanded="true"] .ar-hamburger:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.ar-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--ar-bg);
  box-shadow: var(--ar-shadow-lg);
  padding: var(--ar-space-3xl) var(--ar-space-xl);
  transform: translateX(100%);
  transition: transform var(--ar-transition-base);
  z-index: var(--ar-z-modal);
  overflow-y: auto;
}

.ar-mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.ar-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ar-mobile-menu__list li {
  margin-bottom: var(--ar-space-sm);
}

.ar-mobile-menu__list a {
  font-family: var(--ar-font-heading);
  font-size: var(--ar-text-lg);
  font-weight: var(--ar-weight-semibold);
  color: var(--ar-primary);
  padding: var(--ar-space-sm) 0;
  display: block;
}

.ar-mobile-menu__list .sub-menu {
  list-style: none;
  padding-left: var(--ar-space-lg);
  margin-top: var(--ar-space-xs);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.ar-main {
  min-height: 60vh;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.ar-footer {
  background-color: transparent;
  border-top: none;
  margin-top: var(--ar-space-4xl);
  padding: var(--ar-space-2xl) 0;
}

.ar-footer__container {
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 0 var(--ar-container-padding);
}

/* Footer Bottom - Centered copyright text matching artrevisionist.com */
.ar-footer__bottom {
  text-align: center;
  padding: var(--ar-space-lg) 0;
}

.ar-footer__copyright {
  font-size: var(--ar-text-sm);
  color: var(--ar-text-light);
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (min-width: 768px) {
  .ar-header__toggle {
    display: none;
  }

  .ar-header__nav {
    display: block;
  }

  .ar-header__search {
    display: block;
  }
}

@media (max-width: 767px) {
  .ar-header__container {
    padding: var(--ar-space-md);
    display: flex;
    justify-content: space-between;
  }

  .ar-header__logo {
    max-width: 200px;
    margin-left: var(--ar-space-md);
  }

  .ar-logo-image {
    max-height: 60px;
  }

  .ar-header__nav {
    display: none;
  }

  .ar-header__search {
    display: none;
  }

  .ar-footer__widgets {
    grid-template-columns: 1fr;
    gap: var(--ar-space-xl);
  }

  .ar-footer-menu {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Remove De Andere Krant specific styles */
/* This section intentionally overrides any potential DAK styling */
body:not(.dak-style) {
  /* Ensure Art Revisionist styles take precedence */
}


/* Content Templates Styles */
.ar-content-wrapper { padding: 3rem 0; }
.ar-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.ar-content { background: transparent; padding: 3rem; border-radius: 0.5rem; box-shadow: none; }
.ar-posts { display: flex; flex-direction: column; gap: 3rem; }
.ar-post { padding-bottom: 3rem; border-bottom: 1px solid #4A546B1A; }
.ar-post:last-child { border-bottom: none; padding-bottom: 0; }
.ar-post__title { font-size: 1.875rem; margin-bottom: 0.75rem; }
.ar-post__title a { color: #142A5C; }
.ar-post__title a:hover { color: #D0B263; }
.ar-post__meta { display: flex; gap: 1rem; font-size: 0.875rem; color: #666; }
.ar-post__thumbnail { margin-bottom: 1.5rem; }
.ar-post__thumbnail img { width: 100%; border-radius: 0.5rem; }
.ar-post__read-more { display: inline-block; padding: 0.75rem 1.5rem; background: #142A5C; color: white; border-radius: 0.5rem; font-weight: 600; }
.ar-post__read-more:hover { background: #D0B263; color: #142A5C; }
.ar-single-post__header { margin-bottom: 2rem; text-align: center; padding-bottom: 2rem; border-bottom: 2px solid #D0B263; }
.ar-single-post__title { font-size: 2.25rem; margin-bottom: 1rem; }
.ar-single-post__content { font-size: 1.125rem; line-height: 1.8; margin-bottom: 2rem; }
.ar-archive__header, .ar-search__header { margin-bottom: 3rem; text-align: center; padding-bottom: 2rem; border-bottom: 2px solid #D0B263; }
.ar-404 { text-align: center; padding: 4rem 1.5rem; }
.ar-404__title { font-size: 8rem; color: #D0B263; font-weight: 800; }
.ar-button { display: inline-block; padding: 1rem 2rem; background: #142A5C; color: white; border-radius: 0.5rem; font-weight: 600; }
.ar-pagination { margin-top: 3rem; text-align: center; }
.ar-pagination .page-numbers { display: inline-block; padding: 0.75rem 1rem; margin: 0 0.5rem; background: #F7F7F7; color: #142A5C; border-radius: 0.25rem; }
.ar-pagination .page-numbers:hover, .ar-pagination .page-numbers.current { background: #D0B263; color: white; }

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.ar-homepage__newsletter-section {
  margin-top: var(--ar-space-4xl);
  padding: 52px 20px;
  background: transparent;
}

.ar-newsletter-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: static;
}

.ar-newsletter-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--ar-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ar-newsletter-title {
  font-family: var(--ar-font-heading);
  font-size: 1.55rem;
  font-weight: var(--ar-weight-semibold);
  color: var(--ar-primary);
  margin-bottom: 0.4rem;
}

.ar-newsletter-hook {
  max-width: 30rem;
  margin: 0 auto 1rem;
  color: rgba(34, 46, 74, 0.86);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ar-newsletter-form {
  margin-top: 0;
}

.ar-newsletter-signup {
  max-width: 100%;
  margin: 0 auto;
}

.ar-newsletter-signup__form {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 0 0;
  border: 0;
  background: transparent;
}

.ar-newsletter-signup__row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) auto;
  gap: 0.7rem;
  align-items: stretch;
}

.ar-newsletter-signup__field {
  min-width: 0;
}

.ar-newsletter-form .ar-newsletter-signup__field input {
  width: 100% !important;
  min-height: 48px !important;
  padding: 0.8rem 0.95rem !important;
  border: 1px solid rgba(20, 42, 92, 0.22) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 6px !important;
  color: var(--ar-primary) !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ar-newsletter-form .ar-newsletter-signup__field input::placeholder {
  color: rgba(20, 42, 92, 0.48);
}

.ar-newsletter-form .ar-newsletter-signup__field input:focus {
  outline: none;
  border-color: rgba(20, 42, 92, 0.7);
  box-shadow: 0 0 0 3px rgba(20, 42, 92, 0.08);
  background: #fff;
}

.ar-newsletter-form .ar-newsletter-signup__submit {
  min-width: 140px !important;
  min-height: 48px !important;
  padding: 0.8rem 1.35rem !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--ar-primary) !important;
  color: var(--ar-accent) !important;
  font-family: var(--ar-font-body) !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(20, 42, 92, 0.12) !important;
  appearance: none;
}

.ar-newsletter-form .ar-newsletter-signup__submit:hover {
  background: #10234c;
  transform: translateY(-1px);
}

.ar-newsletter-form .ar-newsletter-signup__submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 42, 92, 0.14);
}

.ar-newsletter-signup__meta {
  display: none !important;
}

.ar-newsletter-signup__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 42rem;
  color: rgba(34, 46, 74, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.ar-newsletter-form .ar-newsletter-signup__consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.12rem;
  accent-color: var(--ar-primary);
  flex: 0 0 auto;
}

.ar-newsletter-signup__trap {
  position: absolute;
  inset: auto auto auto -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ar-newsletter-signup__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
  display: block !important;
}

.ar-newsletter-signup__notice {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--ar-accent);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ar-primary);
  text-align: left;
  font-size: 0.82rem;
}

.ar-newsletter-signup__notice--error {
  border-left-color: #9b2c2c;
  color: #7a1f1f;
}

.ar-newsletter-signup__notice--success {
  border-left-color: #2f7d4c;
  color: #245f39;
}

@media (max-width: 767px) {
  .ar-homepage__newsletter-section {
    padding: 36px 15px;
  }

  .ar-newsletter-title {
    font-size: 1.35rem;
  }

  .ar-newsletter-hook {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .ar-newsletter-signup__row {
    grid-template-columns: 1fr;
  }

  .ar-newsletter-signup__form {
    padding-top: 0.75rem;
  }

  .ar-newsletter-form .ar-newsletter-signup__submit {
    width: 100%;
  }

  .ar-newsletter-signup__consent {
    font-size: 0.78rem;
  }
}

