/*
Theme Name: Ramsø Musikhus GP Child
Theme URI: https://ramsoemusikhus.dk/
Description: GeneratePress child theme til Ramsø Musikhus: editorial musikmagasin med guides, affiliate-artikler, anmeldelser og advertorials.
Author: Ramsø Musikhus
Author URI: https://ramsoemusikhus.dk/
Template: generatepress
Version: 1.0.3
Text Domain: ramsoe-musikhus
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --rm-bg: #fbfaf7;
  --rm-surface: #fffdf9;
  --rm-surface-warm: #fff5ed;
  --rm-border: #e8dfd3;
  --rm-border-strong: #d9c7b4;
  --rm-text: #102033;
  --rm-muted: #5e6a78;
  --rm-soft: #8a7662;
  --rm-navy: #071a2f;
  --rm-accent: #c95e34;
  --rm-accent-dark: #a94423;
  --rm-accent-soft: #f6d7c7;
  --rm-green: #287a4b;
  --rm-red: #c84335;
  --rm-blue: #3156b7;
  --rm-yellow: #f3a127;
  --rm-radius-sm: 10px;
  --rm-radius: 16px;
  --rm-radius-lg: 24px;
  --rm-shadow: 0 16px 44px rgba(14, 28, 45, .08);
  --rm-shadow-soft: 0 8px 24px rgba(14, 28, 45, .06);
  --rm-container: 1200px;
  --rm-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rm-font-heading: Georgia, Cambria, "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body {
  background: var(--rm-bg);
  color: var(--rm-text);
  font-family: var(--rm-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ramsoe-musikhus-theme {
  background:
    radial-gradient(circle at 8% 0%, rgba(201,94,52,.08), transparent 26rem),
    radial-gradient(circle at 95% 10%, rgba(7,26,47,.04), transparent 24rem),
    var(--rm-bg);
}

a { color: var(--rm-accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rm-accent-dark); }

h1, h2, h3, h4, .site-branding .main-title, .rm-heading-font {
  font-family: var(--rm-font-heading);
  letter-spacing: -.02em;
  color: var(--rm-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.18; }
p { line-height: 1.75; }

/* GeneratePress shell */
.site-header {
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,223,211,.85);
}
.site-branding .main-title a,
.site-branding .main-title a:hover {
  color: var(--rm-text);
}
.main-navigation,
.main-navigation ul ul {
  background: transparent;
}
.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .menu-bar-items {
  color: var(--rm-text);
  font-weight: 650;
  letter-spacing: -.01em;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a {
  color: var(--rm-accent);
  background: transparent;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a::after,
.main-navigation .main-nav ul li:hover > a::after {
  transform: scaleX(1);
}
.main-navigation .main-nav ul li > a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--rm-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.site-content,
.inside-article,
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header {
  background: transparent;
}
.site-footer,
.site-info {
  background: var(--rm-navy);
  color: rgba(255,255,255,.78);
}
.site-footer a, .site-info a { color: #fff; }

/* Layout primitives */
.rm-container {
  width: min(var(--rm-container), calc(100vw - 40px));
  margin-inline: auto;
}
.rm-main { padding: clamp(28px, 5vw, 64px) 0; }
.rm-stack > * + * { margin-top: var(--rm-stack-space, 1.25rem); }
.rm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}
.rm-layout--toc {
  grid-template-columns: 170px minmax(0, 1fr) 300px;
  gap: 24px;
}
.rm-content-narrow { max-width: 780px; }
.rm-prose {
  font-size: 1.04rem;
  color: #243449;
}
.rm-prose h2 { margin-top: 2.4em; margin-bottom: .55em; }
.rm-prose h3 { margin-top: 1.8em; margin-bottom: .4em; }
.rm-prose ul, .rm-prose ol { padding-left: 1.25rem; }
.rm-prose li { margin: .45rem 0; line-height: 1.65; }
.rm-prose blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--rm-accent);
  background: var(--rm-surface-warm);
  border-radius: 0 var(--rm-radius) var(--rm-radius) 0;
}
.rm-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rm-prose th, .rm-prose td { padding: 14px; border-bottom: 1px solid var(--rm-border); text-align: left; }
.rm-prose th { background: rgba(7,26,47,.04); color: var(--rm-text); }

.rm-card {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow-soft);
  overflow: hidden;
}
.rm-card-pad { padding: clamp(18px, 3vw, 28px); }
.rm-card:hover .rm-card-title a { color: var(--rm-accent); }
.rm-muted { color: var(--rm-muted); }
.rm-eyebrow,
.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  width: fit-content;
  border-radius: 999px;
  padding: .36rem .64rem;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--rm-accent-soft);
  color: var(--rm-accent-dark);
}
.rm-badge--dark { background: var(--rm-navy); color: #fff; }
.rm-badge--green { background: #dff2e7; color: var(--rm-green); }
.rm-badge--blue { background: #e2e8ff; color: var(--rm-blue); }
.rm-badge--ad { background: #fff0e6; color: var(--rm-accent-dark); border: 1px solid #efc5ad; }
.rm-kicker { font-size: .88rem; color: var(--rm-muted); font-weight: 700; }

.rm-button,
button.rm-button,
input[type="submit"].rm-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 42px;
  padding: .75rem 1.05rem;
  border-radius: 9px;
  border: 1px solid var(--rm-accent);
  background: var(--rm-accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 18px rgba(201,94,52,.18);
}
.rm-button:hover,
.wp-block-button__link:hover {
  background: var(--rm-accent-dark);
  border-color: var(--rm-accent-dark);
  transform: translateY(-1px);
}
.rm-button--dark { background: var(--rm-navy); border-color: var(--rm-navy); box-shadow: 0 8px 18px rgba(7,26,47,.16); }
.rm-button--dark:hover { background: #122b48; border-color: #122b48; }
.rm-button--ghost { background: transparent; color: var(--rm-accent) !important; box-shadow: none; }
.rm-button--ghost:hover { background: var(--rm-surface-warm); color: var(--rm-accent-dark) !important; }
.rm-link-arrow { font-weight: 800; text-decoration: none; }
.rm-link-arrow::after { content: " →"; }

.rm-section { margin-top: clamp(38px, 6vw, 72px); }
.rm-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.rm-section-title { margin: 0; }
.rm-section-desc { margin: .28rem 0 0; color: var(--rm-muted); max-width: 680px; }

/* Cards and media */
.rm-grid { display: grid; gap: 20px; }
.rm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rm-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9e2d9;
}
.rm-card-media img,
.rm-feature-media img,
.rm-hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rm-card-body { padding: 18px; }
.rm-card-title { margin: 0 0 .5rem; font-size: 1.22rem; }
.rm-card-title a { color: var(--rm-text); text-decoration: none; }
.rm-card-excerpt { margin: 0 0 .8rem; color: var(--rm-muted); font-size: .94rem; line-height: 1.55; }
.rm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  align-items: center;
  color: var(--rm-muted);
  font-size: .84rem;
  font-weight: 650;
}
.rm-meta > * + *::before { content: "•"; margin-right: .75rem; color: var(--rm-border-strong); }
.rm-image-placeholder {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #efe6dc, #d9c7b4);
  color: var(--rm-soft);
  font-weight: 800;
}

/* Front page */
.rm-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}
.rm-hero-card {
  min-height: 420px;
  position: relative;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  background: var(--rm-navy);
  color: #fff;
  box-shadow: var(--rm-shadow);
}
.rm-hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,47,.88), rgba(7,26,47,.52) 42%, rgba(7,26,47,.12));
}
.rm-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-hero-content {
  position: relative; z-index: 1;
  max-width: 620px;
  padding: clamp(28px, 5vw, 48px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 420px;
}
.rm-hero-content h1 { color: #fff; margin: .5rem 0 .7rem; }
.rm-hero-content p { color: rgba(255,255,255,.88); max-width: 540px; }

/* Sidebar widgets */
.rm-sidebar { position: sticky; top: 28px; align-self: start; }
.rm-widget { margin-bottom: 22px; }
.rm-widget h2, .rm-widget h3 { margin-top: 0; font-size: 1.38rem; }
.rm-list { list-style: none; padding: 0; margin: 0; }
.rm-list-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rm-border);
}
.rm-list-item:last-child { border-bottom: 0; }
.rm-list-img {
  width: 82px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e9e2d9;
}
.rm-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-list-title { margin: 0 0 .18rem; font-weight: 800; font-size: .94rem; line-height: 1.25; }
.rm-list-title a { color: var(--rm-text); text-decoration: none; }
.rm-list-title a:hover { color: var(--rm-accent); }
.rm-newsletter input[type="email"] {
  width: 100%;
  border: 1px solid var(--rm-border);
  border-radius: 9px;
  min-height: 44px;
  padding: 0 12px;
  margin: .55rem 0 .7rem;
  background: #fff;
}

/* Single page */
.rm-breadcrumbs { font-size: .84rem; color: var(--rm-muted); margin-bottom: 1.2rem; }
.rm-breadcrumbs a { color: var(--rm-muted); text-decoration: none; }
.rm-breadcrumbs span { margin-inline: .35rem; color: var(--rm-border-strong); }
.rm-single-header { margin-bottom: 28px; }
.rm-single-title { margin: .65rem 0 .75rem; max-width: 780px; }
.rm-single-excerpt { max-width: 780px; color: #37465a; font-size: 1.07rem; }
.rm-author-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px;
  margin-top: 1.5rem; color: var(--rm-muted); font-size: .91rem;
}
.rm-author-row img { width: 42px; height: 42px; border-radius: 50%; }
.rm-author-name { color: var(--rm-text); font-weight: 800; }
.rm-feature-media {
  border-radius: var(--rm-radius);
  overflow: hidden;
  background: #e8dfd3;
  margin: 1.6rem 0;
  box-shadow: var(--rm-shadow-soft);
}
.rm-feature-media img { aspect-ratio: 16 / 8.4; }

.rm-toc {
  padding: 0;
  position: sticky;
  top: 28px;
  overflow: hidden;
}
.rm-toc summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  color: var(--rm-text);
  font-size: .92rem;
  font-weight: 850;
  list-style: none;
}
.rm-toc summary::-webkit-details-marker { display: none; }
.rm-toc summary::after {
  content: '▾';
  color: var(--rm-accent);
  font-size: .82rem;
  transition: transform .16s ease;
}
.rm-toc:not([open]) summary::after { transform: rotate(-90deg); }
.rm-toc-count {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--rm-border);
  border-radius: 999px;
  background: var(--rm-surface-warm);
  color: var(--rm-soft);
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}
.rm-toc-list {
  max-height: min(52vh, 460px);
  overflow: auto;
  padding: 4px 14px 12px;
  border-top: 1px solid var(--rm-border);
}
.rm-toc a {
  display: block;
  padding: .52rem 0;
  border-bottom: 1px solid rgba(232, 223, 211, .72);
  color: var(--rm-text);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.32;
}
.rm-toc a:last-child { border-bottom: 0; }
.rm-toc a:hover { color: var(--rm-accent); }
.rm-toc .rm-toc-level-3 { padding-left: .75rem; color: var(--rm-muted); font-size: .8rem; }

.rm-disclosure,
.rm-callout {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  background: rgba(255,253,249,.8);
  color: #314158;
  font-size: .94rem;
}
.rm-disclosure { margin: 1.2rem 0 1.8rem; }
.rm-callout { background: var(--rm-surface-warm); border-color: #efcdbb; }
.rm-disclosure strong,
.rm-callout strong { color: var(--rm-text); }

.rm-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  overflow: hidden;
  background: var(--rm-border);
  margin: 1.6rem 0 2rem;
}
.rm-info-cell { background: var(--rm-surface); padding: 16px; }
.rm-info-label { display: block; color: var(--rm-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rm-info-value { display: block; margin-top: .24rem; font-weight: 800; color: var(--rm-text); }

/* Review / affiliate modules */
.rm-score-card .rm-big-score {
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: .9;
  font-family: var(--rm-font-heading);
  font-weight: 800;
  color: var(--rm-text);
}
.rm-stars { color: var(--rm-yellow); letter-spacing: .08em; white-space: nowrap; }
.rm-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rm-pros-cons ul { list-style: none; padding: 0; margin: .7rem 0 0; }
.rm-pros-cons li { margin: .42rem 0; padding-left: 1.45rem; position: relative; line-height: 1.45; }
.rm-pros-cons .rm-pros li::before { content: "✓"; color: var(--rm-green); position: absolute; left: 0; font-weight: 900; }
.rm-pros-cons .rm-cons li::before { content: "×"; color: var(--rm-red); position: absolute; left: 0; font-weight: 900; }
.rm-price { font-size: 1.3rem; font-weight: 900; color: var(--rm-text); }
.rm-rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .7rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rm-border);
}
.rm-rating-row:last-child { border-bottom: 0; }

.rm-winners {
  background: var(--rm-navy);
  color: #fff;
  border-radius: var(--rm-radius);
  padding: 18px;
  margin: 1.6rem 0;
}
.rm-winners h2 { color: #fff; margin: 0 0 1rem; font-size: 1.6rem; }
.rm-winner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rm-winner-card { background: #fff; color: var(--rm-text); border-radius: 13px; padding: 18px; text-align: center; }
.rm-winner-card img { width: 145px; max-width: 70%; aspect-ratio: 1 / 1; object-fit: contain; margin: 8px auto 12px; display: block; }
.rm-compare-table-wrap { overflow-x: auto; border: 1px solid var(--rm-border); border-radius: var(--rm-radius); background: var(--rm-surface); }
.rm-compare-table { min-width: 760px; width: 100%; border-collapse: collapse; }
.rm-compare-table th, .rm-compare-table td { padding: 13px 14px; border-bottom: 1px solid var(--rm-border); text-align: left; font-size: .92rem; }
.rm-compare-table th { background: rgba(7,26,47,.04); color: var(--rm-text); }
.rm-compare-table tr:last-child td { border-bottom: 0; }

/* Archive */
.rm-archive-header { margin-bottom: 2rem; }
.rm-filter-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.rm-filter-pills a {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: .4rem 1rem;
  border: 1px solid var(--rm-border);
  border-radius: 999px;
  color: var(--rm-text);
  background: var(--rm-surface);
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
}
.rm-filter-pills a:hover, .rm-filter-pills .is-active { background: var(--rm-navy); color: #fff; border-color: var(--rm-navy); }
.rm-featured-archive-card {
  display: grid;
  min-height: 300px;
  border-radius: var(--rm-radius);
  overflow: hidden;
  background: var(--rm-navy);
  position: relative;
  color: #fff;
  margin-bottom: 20px;
}
.rm-featured-archive-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-featured-archive-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,47,.88), rgba(7,26,47,.2)); }
.rm-featured-archive-body { position: relative; z-index: 1; padding: 34px; max-width: 560px; align-self: end; }
.rm-featured-archive-body h2 { color: #fff; }
.rm-pagination,
.pagination { margin-top: 26px; }
.nav-links { display: flex; gap: 8px; align-items: center; justify-content: center; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 .6rem;
  border-radius: 8px; border: 1px solid var(--rm-border); background: var(--rm-surface); color: var(--rm-text); text-decoration: none;
  font-weight: 800;
}
.page-numbers.current { background: var(--rm-navy); color: #fff; border-color: var(--rm-navy); }

/* Advertorial */
.rm-ad-top { margin-bottom: 1.4rem; background: #fff7f1; border-color: #efcdbb; }
.rm-ad-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}
.rm-ad-hero-media { border-radius: var(--rm-radius); overflow: hidden; box-shadow: var(--rm-shadow-soft); }
.rm-ad-hero-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rm-cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 2rem 0;
  padding: 18px;
  border-radius: var(--rm-radius);
  background: var(--rm-surface-warm);
  border: 1px solid #efcdbb;
}

/* Footer custom block */
.rm-footer-note {
  background: #061321;
  color: rgba(255,255,255,.76);
  font-size: .82rem;
  text-align: center;
  padding: 10px 16px;
}

/* Utilities */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.alignwide { max-width: 1060px; margin-inline: auto; }
.alignfull { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }

@media (max-width: 1120px) {
  .rm-layout, .rm-home-hero, .rm-ad-hero { grid-template-columns: 1fr; }
  .rm-layout--toc { grid-template-columns: minmax(0, 1fr) 300px; }
  .rm-layout--toc .rm-toc-wrap { display: none; }
  .rm-sidebar { position: static; }
  .rm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .rm-container { width: min(100% - 28px, var(--rm-container)); }
  .rm-main { padding: 28px 0; }
  .rm-layout--toc, .rm-layout { grid-template-columns: 1fr; }
  .rm-grid--3, .rm-grid--4, .rm-winner-grid, .rm-pros-cons, .rm-info-strip { grid-template-columns: 1fr; }
  .rm-home-hero .rm-sidebar { display: none; }
  .rm-hero-card, .rm-hero-content { min-height: 360px; }
  .rm-hero-content { padding: 26px; }
  .rm-section-head, .rm-cta-strip { align-items: flex-start; flex-direction: column; }
  .rm-author-row { gap: 10px 18px; }
}
