/*
Theme Name: GoMedia Theme
Theme URI: https://gomedia-kr.de/
Author: GoMedia
Description: Lightweight block theme for GoMedia Site Core customer packs.
Version: 0.5.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: gomedia-theme
*/

:root {
  --gm-color-primary: #0b2038;
  --gm-color-primary-strong: #071728;
  --gm-color-accent: #b79a62;
  --gm-color-surface: #ffffff;
  --gm-color-surface-soft: #f5f4f1;
  --gm-color-text: #15202b;
  --gm-color-text-muted: #66717b;
  --gm-color-border: #d9dee3;
  --gm-color-success: #1f6b49;
  --gm-color-warning: #8a5b13;
  --gm-color-error: #9e2a2b;

  --gm-space-1: 0.5rem;
  --gm-space-2: 0.75rem;
  --gm-space-3: 1rem;
  --gm-space-4: 1.5rem;
  --gm-space-5: 2rem;
  --gm-space-6: 3rem;
  --gm-section-sm: 3.5rem;
  --gm-section-md: 5rem;
  --gm-section-lg: 7rem;
  --gm-section-xl: 8rem;

  --gm-container-text: 48rem;
  --gm-container-normal: 74rem;
  --gm-container-wide: 86rem;

  --gm-radius-sm: 0.25rem;
  --gm-radius-md: 0.5rem;
  --gm-radius-lg: 1rem;
  --gm-radius-pill: 999px;

  --gm-font-display: Georgia, 'Times New Roman', serif;
  --gm-font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gm-font-size-display-xl: 5.5rem;
  --gm-font-size-display: 4.5rem;
  --gm-font-size-h1: 4rem;
  --gm-font-size-h2: 2.75rem;
  --gm-font-size-h3: 1.75rem;
  --gm-font-size-body-lg: 1.25rem;
  --gm-font-size-body: 1rem;
  --gm-font-size-small: 0.875rem;
  --gm-line-body: 1.6;
  --gm-line-heading: 1.08;
  --gm-motion-duration: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gm-color-surface);
  color: var(--gm-color-text);
  font-family: var(--gm-font-body);
  font-size: var(--gm-font-size-body);
  line-height: var(--gm-line-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.16em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--gm-color-accent); outline-offset: 3px; }

h1,h2,h3,h4,h5,h6 {
  margin-block: 0 0.5em;
  font-family: var(--gm-font-display);
  line-height: var(--gm-line-heading);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, var(--gm-font-size-h1)); }
h2 { font-size: clamp(2.05rem, 4.5vw, var(--gm-font-size-h2)); }
h3 { font-size: clamp(1.45rem, 3vw, var(--gm-font-size-h3)); }
p { margin-block: 0 1em; }

.gm-shell { width: min(calc(100% - 2rem), var(--gm-container-normal)); margin-inline: auto; }
.gm-shell--text { width: min(calc(100% - 2rem), var(--gm-container-text)); margin-inline: auto; }
.gm-shell--wide { width: min(calc(100% - 2rem), var(--gm-container-wide)); margin-inline: auto; }
.gm-section { padding-block: var(--gm-section-md); }
.gm-section--sm { padding-block: var(--gm-section-sm); }
.gm-section--lg { padding-block: var(--gm-section-lg); }
.gm-section--xl { padding-block: var(--gm-section-xl); }

.gm-site-header,.gm-site-footer { background: var(--gm-color-primary); color: #fff; }
.gm-site-header__inner,.gm-site-footer__inner { width: min(calc(100% - 2rem), var(--gm-container-normal)); margin-inline: auto; }
.gm-site-header__inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: var(--gm-space-4); }
.gm-site-header a,.gm-site-footer a { color: inherit; }
.gm-site-main { min-height: 60vh; }

@media (max-width: 48rem) {
  :root { --gm-section-sm: 2.75rem; --gm-section-md: 3.5rem; --gm-section-lg: 4.5rem; --gm-section-xl: 5.25rem; }
  .gm-shell,.gm-shell--text,.gm-shell--wide { width: min(calc(100% - 1.25rem), var(--gm-container-normal)); }
}

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