/* All layout changes are opt-in. Original + Original preserves the baseline. */
body:not(.theme2-palette-original) .theme2-footer-copyright {
  color: var(--theme2-palette-ink) !important;
}
body:not(.theme2-palette-original) :is(header, footer) > .wp-block-group,
body:not(.theme2-palette-original) .theme2-post-list-item {
  border-color: var(--theme2-palette-border) !important;
}

body.theme2-layout-soft {
  --theme2-soft-surface: var(--theme2-palette-surface, #f3f6f9);
  --theme2-soft-border: var(--theme2-palette-border, #e2e8f0);
  --theme2-soft-ink: var(--theme2-palette-ink, #41658a);
  --theme2-soft-muted: var(--theme2-palette-muted, #64748b);
}

body.theme2-layout-soft header > .wp-block-group {
  border-bottom: 0 !important;
  padding-block: 1.25rem !important;
}
body.theme2-layout-soft header .theme2-header-brand .wp-block-site-tagline::before {
  content: "·";
}
body.theme2-layout-soft .theme2-front-hero {
  position: relative;
  isolation: isolate;
  width: min(100% - 2rem, 1240px);
  max-width: none;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--theme2-soft-surface);
}
/* Quiet contour lines suggest exploring a map without a heavy image download. */
body.theme2-layout-soft .theme2-front-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 540px;
  height: 650px;
  top: -120px;
  right: -160px;
  border: 1px solid var(--theme2-soft-border);
  border-radius: 46% 54% 64% 36%;
  box-shadow: 0 0 0 32px var(--theme2-soft-surface), 0 0 0 33px var(--theme2-soft-border), 0 0 0 72px var(--theme2-soft-surface), 0 0 0 73px var(--theme2-soft-border), 0 0 0 120px var(--theme2-soft-surface), 0 0 0 121px var(--theme2-soft-border);
  transform: rotate(24deg);
  pointer-events: none;
}
body.theme2-layout-soft .theme2-front-hero__inner {
  box-sizing: border-box;
  position: relative;
  width: min(100% - 3rem, 1140px);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
body.theme2-layout-soft .theme2-front-hero__eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  color: var(--theme2-soft-muted);
  font-size: 0.72rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.12em;
}
body.theme2-layout-soft .theme2-front-hero__title {
  max-width: 760px;
  padding: 0;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
body.theme2-layout-soft .theme2-front-hero__lead {
  max-width: 570px;
  margin-top: 1rem;
  padding: 0;
  color: var(--theme2-soft-muted);
  font-size: 1rem;
  line-height: 1.7;
}
body.theme2-layout-soft .theme2-hero-discover {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
body.theme2-layout-soft .theme2-hero-search {
  flex: 0 1 540px;
  min-width: 0;
  margin: 0;
}
body.theme2-layout-soft .theme2-hero-search label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
body.theme2-layout-soft .theme2-hero-search__fields {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border: 1px solid var(--theme2-soft-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 3%);
}
body.theme2-layout-soft .theme2-hero-search input {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 0;
  border-radius: 8px;
  color: var(--theme2-soft-ink);
  background: #fff;
  font-size: 1rem;
}
body.theme2-layout-soft .theme2-hero-search input::placeholder {
  color: var(--theme2-soft-muted);
  opacity: 1;
}
body.theme2-layout-soft .theme2-hero-search button,
body.theme2-layout-soft .theme2-comment-form-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-shrink: 0;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 9px;
  color: #fff !important;
  background: var(--theme2-soft-ink);
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
body.theme2-layout-soft .theme2-hero-search button:is(:hover, :focus-visible),
body.theme2-layout-soft .theme2-comment-form-toggle:is(:hover, :focus-visible) {
  color: #fff !important;
  background: var(--theme2-soft-ink);
  box-shadow: none;
  filter: brightness(1.15);
}
body.theme2-layout-soft .theme2-hero-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  font-size: 0.875rem;
  text-underline-offset: 0.25em;
}

body.theme2-layout-soft .theme2-single-post-layout {
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: flex-start;
}
body.theme2-layout-soft .theme2-single-post-sidebar {
  box-sizing: border-box;
  min-width: 0;
  margin-top: 1rem;
  padding: 1.4rem;
  border: 0;
  border-radius: 18px;
  background: var(--theme2-soft-surface);
}
body.theme2-layout-soft .theme2-single-post-sidebar .theme2-sidebar-widget {
  border: 0;
  padding: 0;
}
body.theme2-layout-soft .theme2-single-post-sidebar .theme2-sidebar-widget + .theme2-sidebar-widget {
  margin-top: 1.75rem;
}
body.theme2-layout-soft .theme2-single-post-sidebar .theme2-sidebar-widget .wp-block-heading {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500;
}
body.theme2-layout-soft .theme2-single-post-sidebar :is(.theme2-sidebar-widget > ul li, .wp-block-categories-list li) {
  margin-bottom: 0.6rem;
}
body.theme2-layout-soft .theme2-post-list-item {
  padding-block: 1.25rem 1.75rem !important;
  margin-bottom: 0.5rem !important;
  border-bottom: 1px solid var(--theme2-soft-border) !important;
  column-gap: 1.4rem;
}
body.theme2-layout-soft .wp-block-post:last-child .theme2-post-list-item { border-bottom: 0 !important; }
body.theme2-layout-soft .theme2-post-list-item__thumbnail { border-radius: 14px; }
body.theme2-layout-soft .theme2-post-list-item .wp-block-post-title {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
body.theme2-layout-soft .theme2-post-list-item .wp-block-post-excerpt__excerpt { color: var(--theme2-soft-muted); }
body.theme2-layout-soft footer > .wp-block-group {
  border-top: 0 !important;
  margin-top: 1.5rem;
  padding-block: 1.75rem !important;
  background: var(--theme2-soft-surface);
}
body.theme2-layout-soft :is(.theme2-hero-search, .theme2-hero-browse):focus-within {
  scroll-margin-block: 2rem;
}
@media (max-width: 900px) {
  body.theme2-layout-soft .theme2-front-hero::after { opacity: 0.4; right: -360px; }
  body.theme2-layout-soft .theme2-single-post-sidebar { padding: 1.1rem; }
}
@media (max-width: 640px) {
  body.theme2-layout-soft .theme2-front-hero {
    width: calc(100% - 1rem);
    border-radius: 18px;
  }
  body.theme2-layout-soft .theme2-front-hero__inner { width: calc(100% - 2rem); }
  body.theme2-layout-soft .theme2-front-hero::after { display: none; }
  body.theme2-layout-soft .theme2-front-hero__eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; }
  body.theme2-layout-soft .theme2-hero-discover { gap: 0.5rem; }
  body.theme2-layout-soft .theme2-hero-search { flex-basis: 100%; }
  body.theme2-layout-soft .theme2-hero-search__fields { flex-wrap: wrap; }
  body.theme2-layout-soft .theme2-hero-search input { flex-basis: 100%; min-height: 46px; }
  body.theme2-layout-soft .theme2-hero-search button { width: 100%; }
  body.theme2-layout-soft .theme2-hero-browse { min-height: 44px; }
  body.theme2-layout-soft .theme2-post-list-item { padding-block: 1rem 1.5rem !important; }
}
