/**
 * Resekudden brand overrides for the basis base theme.
 *
 * Keeps the editorial Resekudden tone while using a cleaner modern neutral
 * base than the original GeneratePress theme.
 */

html:root {
  --basis-font-sans: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --basis-font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;

  --basis-color-bg: #f6f7f5;
  --basis-color-surface: #ffffff;
  --basis-color-text: #1f2421;
  --basis-color-border: #dfe4de;

  --basis-color-primary: #ad4b2b;
  --basis-color-primary-contrast: #ffffff;
  --basis-color-secondary: #2f6865;
  --basis-color-secondary-contrast: #ffffff;

  --basis-color-link: #ad4b2b;
  --basis-color-link-hover: #2f6865;

  --color-base-100: var(--basis-color-surface);
  --color-base-200: var(--basis-color-bg);
  --color-base-300: var(--basis-color-border);
  --color-base-content: var(--basis-color-text);
  --color-primary: var(--basis-color-primary);
  --color-primary-content: var(--basis-color-primary-contrast);
  --color-secondary: var(--basis-color-secondary);
  --color-secondary-content: var(--basis-color-secondary-contrast);
}

body {
  font-weight: 400;
  line-height: 1.65;
}

:where(h1, h2, h3, h4, h5, h6) {
  letter-spacing: 0;
}

header.sticky {
  background: color-mix(in srgb, var(--basis-color-surface) 94%, transparent);
  backdrop-filter: blur(16px);
}

.tp-nav-link,
.tp-submenu-link {
  font-weight: 500;
}

.btn-primary,
.btn-secondary {
  border-color: transparent;
}

.page-header h1,
.home .basis-latest-articles-feed h2 {
  color: #15100e;
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  line-height: 1.08;
}

.basis-surface,
.card {
  border-color: color-mix(in srgb, var(--basis-color-border) 84%, transparent);
  border-radius: 0.5rem;
  background: var(--basis-color-surface);
  box-shadow: 0 14px 34px rgb(31 36 33 / 5%);
}

.basis-prose {
  color: color-mix(in srgb, var(--basis-color-text) 82%, transparent);
}

.basis-prose :where(p, li) {
  line-height: 1.75;
}

.basis-prose :where(strong) {
  color: var(--basis-color-text);
}

.entry-summary .more-link {
  color: var(--basis-color-primary);
  font-weight: 600;
}

.search-results .page-header {
  max-width: 56rem;
}

.search-results .page-header h1 {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.search-results article.card {
  max-width: 56rem;
  margin-inline: auto;
}

.single article.h-entry > header > div {
  border-color: color-mix(in srgb, var(--basis-color-border) 84%, transparent);
  background: #fbfcfa;
}

.single figure {
  box-shadow: 0 18px 42px rgb(31 36 33 / 8%);
}

.single .basis-prose h2,
.single .basis-prose h3 {
  margin-top: 2.2em;
  color: var(--basis-color-text);
}

.single .basis-prose p {
  color: color-mix(in srgb, var(--basis-color-text) 78%, transparent);
}

.single .basis-prose ul {
  padding-left: 1.25rem;
}

.single .basis-prose li::marker {
  color: var(--basis-color-primary);
}

.single .basis-prose a,
.basis-prose a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(
    in srgb,
    var(--basis-color-primary) 35%,
    transparent
  );
  text-underline-offset: 0.2em;
}

.single .basis-prose a:hover,
.basis-prose a:hover {
  text-decoration-color: currentColor;
}

.single h2:has(+ .grid) {
  max-width: 72rem;
  margin-inline: auto;
}

.single h2:has(+ .grid),
.single h2:has(+ div) {
  color: var(--basis-color-text);
}

/* Hotel galleries are single-column so readers can inspect photos inline. */
.resekudden-hotel-gallery {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid
    color-mix(in srgb, var(--basis-color-border) 82%, transparent);
}

.resekudden-hotel-gallery h2 {
  margin: 0 0 1.25rem;
  color: var(--basis-color-text);
  font-family: var(--basis-font-heading);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.14;
}

.resekudden-hotel-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.resekudden-hotel-gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #e9eeea;
  box-shadow: 0 14px 34px rgb(31 36 33 / 6%);
}

.resekudden-hotel-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.resekudden-hotel-gallery__item:hover .resekudden-hotel-gallery__image {
  transform: scale(1.025);
}

.home .basis-hero-callout {
  border-color: color-mix(in srgb, var(--basis-color-border) 70%, transparent);
  background: #ffffff;
  box-shadow: none;
}

.home .basis-latest-articles-feed .card {
  align-self: start;
  height: auto;
  border: 1px solid
    color-mix(in srgb, var(--basis-color-border) 76%, transparent);
  border-radius: 0.5rem;
  background: var(--basis-color-surface);
  box-shadow: 0 14px 34px rgb(31 36 33 / 5%);
}

.home .basis-latest-articles-feed .card figure {
  aspect-ratio: 16 / 10;
  background: #e9eeea;
}

.home .basis-latest-articles-feed .card-body {
  gap: 0.75rem;
}

.home .basis-latest-articles-feed .card-title {
  font-family: var(--basis-font-heading);
  line-height: 1.2;
}

.home .basis-latest-articles-feed .btn,
.home .basis-hero-callout .btn {
  min-height: 0;
  height: auto;
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
}

.basis-html-form input,
.basis-html-form textarea {
  background: #ffffff;
}

.content-info {
  background: #f2f4f1;
}

@media (max-width: 639px) {
  .page-header h1,
  .single .p-name {
    font-size: 2.45rem;
  }

  .card-body {
    padding: 1.35rem;
  }

  .resekudden-hotel-gallery {
    margin-top: 2.5rem;
  }
}
