/* Ruth Lange Design — light flexbox redesign (Jimdo brand cues) */
:root {
  --brand: #6592a7;
  --brand-dark: #4f778a;
  --bg: #e8d9d6;
  --bg-soft: #f3ebe9;
  --ink: #3a3a3a;
  --muted: #666;
  --paper: #fffaf8;
  --footer-bg: #333;
  --footer-accent: #e7c6c6;
  --line: rgba(79, 119, 138, 0.25);
  --font-display: "Kelly Slab", "Palatino Linotype", Palatino, serif;
  --font-body: "Noto Sans", "Segoe UI", sans-serif;
  --wrap: 1080px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(101, 146, 167, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 10%, rgba(190, 152, 152, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, #f7f1ef 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, rgba(255, 250, 248, 0.92), rgba(255, 250, 248, 0.72));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--brand-dark);
}

.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--brand);
  background: var(--paper);
  color: var(--brand-dark);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

/* Nav */
.site-nav {
  background: rgba(255, 250, 248, 0.55);
  border-bottom: 1px solid var(--line);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: stretch;
}

.site-nav__list > li {
  position: relative;
}

.site-nav__list a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 0.7rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__list > li > a:hover,
.site-nav__list > li:hover > a,
.site-nav__list a.is-current {
  color: var(--brand-dark);
  background: rgba(101, 146, 167, 0.12);
}

.nav-item-row {
  display: flex;
  align-items: stretch;
}

.nav-item-row > a {
  flex: 1;
}

.submenu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.has-sub > .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 14rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(51, 51, 51, 0.12);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  display: block;
}

.submenu a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.55rem 1rem;
}

.submenu a:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* Main */
.site-main {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

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

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand-dark);
  margin: 0;
  max-width: 18ch;
}

.is-home .page-header h1 {
  max-width: 22ch;
}

.content-body {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.content-body h1,
.content-body h2,
.content-body h3 {
  font-family: var(--font-display);
  color: var(--brand-dark);
  line-height: 1.25;
  font-weight: 400;
}

.content-body h2 {
  font-size: 1.55rem;
  margin-top: 1.75rem;
}

.content-body h3 {
  font-size: 1.25rem;
}

.content-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--muted);
}

.content-body .cta a,
.btn {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  padding: 0.7rem 1.15rem;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.content-body .cta a:hover,
.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.content-image {
  margin: 1.25rem 0;
}

.content-image img {
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

/* Blog list (r-template_blog may emit its own markup) */
.blog-list,
.romli-blog,
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-accent);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--brand);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.site-footer__meta span {
  opacity: 0.55;
}

.site-footer__social {
  display: flex;
  gap: 0.85rem;
}

.site-footer__note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.75;
  max-width: 70ch;
}

.sitewide-slot {
  margin-top: 1.25rem;
}

/* Romli homepage blocks */
.romlidata {
  margin-bottom: 1.5rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: fade-down 0.55s ease both;
  }

  .page-header h1 {
    animation: rise 0.7s ease both;
  }

  .content-body {
    animation: rise 0.85s ease 0.08s both;
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu {
    display: none;
  }

  .has-sub.is-open:hover > .submenu,
  .has-sub.is-open:focus-within > .submenu,
  .has-sub.is-open > .submenu {
    display: block;
  }

  .has-sub > .submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 0.75rem;
  }

  .page-header h1 {
    max-width: none;
  }
}

/* Blog cards from r-template_blog.php */
.blog-container { width: 100%; }
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.blog-card {
  flex: 1 1 260px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
}
.blog-title { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.25rem; }
.blog-title a { text-decoration: none; color: var(--brand-dark); }
.blog-preview p { margin: 0; font-size: 0.95rem; }
