/*
Theme Name: Tunerinstitutet Premium
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A minimal, premium WordPress theme for Tunérinstitutet with editorial typography, restrained color palette, and a wide responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tunerinstitutet-premium
*/
:root {
  --bg: #f7f5f0;
  --surface: #fbfaf7;
  --text: #1c1c1a;
  --muted: #6a655b;
  --line: #ddd7cc;
  --green: #0e6f63;
  --green-dark: #0b5c52;
  --dark: #1f1f1d;
  --light: #f2efe9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --shell: 1280px;
  --content: 820px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 18px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,240,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand-block { display: flex; flex-direction: column; gap: 4px; }
.site-brand {
  font-family: var(--serif);
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1;
  color: var(--green);
  letter-spacing: .01em;
}
.site-tagline, .site-footer__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav .menu,
.site-footer__nav .footer-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}
.site-main { min-height: 70vh; }
.page-shell,
.front-page-shell,
.content-shell,
.single-shell { padding: 56px 0 96px; }
.page-article .entry-content,
.single-article .entry-content {
  max-width: var(--content);
}
.is-tuner-front-page .page-shell,
.is-tuner-front-page .front-page-shell { padding-top: 48px; }
.page-header,
.single-header,
.archive-intro,
.section-heading-block { margin-bottom: 28px; }
.page-title,
.single-title,
.archive-title,
.section-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
}
.page-title,
.single-title,
.archive-title,
.entry-content h1 { font-size: clamp(48px, 6vw, 76px); margin: 0; }
.section-title,
.entry-content h2 { font-size: clamp(32px, 3.5vw, 48px); margin: 0 0 18px; }
.entry-content h3 { font-size: clamp(28px, 2.4vw, 36px); margin: 0 0 14px; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin: 0 0 22px; }
.entry-content > * + * { margin-top: 0; }
.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text,
.entry-content .wp-block-separator,
.entry-content .wp-block-image,
.entry-content .wp-block-buttons,
.entry-content .wp-block-query,
.entry-content .wp-block-latest-posts { margin: 0 0 42px; }
.entry-content .wp-block-group.has-background,
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text {
  padding: 40px;
  border-radius: 28px;
}
.entry-content .wp-block-separator { border-color: var(--line); }
.entry-content .wp-block-buttons .wp-block-button__link,
.button,
.wp-element-button {
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--green);
  background: var(--green);
  color: white !important;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button__link.has-background[style*="background-color:transparent"] {
  background: transparent !important;
  color: var(--green) !important;
}
.entry-content .has-text-align-center { text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.archive-description,
.section-intro { color: var(--muted); max-width: 720px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.post-card {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.post-card__image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card__content { padding: 22px 24px 24px; }
.post-card__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
}
.post-card__excerpt { color: var(--muted); font-size: 16px; }
.text-link { color: var(--green); font-weight: 600; font-size: 15px; }
.pagination-wrap { margin-top: 36px; }
.single-featured-image { margin: 0 0 32px; border-radius: 28px; overflow: hidden; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
}
.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__brand {
  font-family: var(--serif);
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}
/* Better default block widths */
.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide,
.entry-content > .wp-block-columns.alignwide,
.entry-content > .wp-block-media-text.alignwide,
.entry-content > .wp-block-cover.alignwide {
  max-width: 1080px;
}
.entry-content > .alignfull,
.entry-content > .wp-block-group.alignfull,
.entry-content > .wp-block-cover.alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(24px, calc((100vw - var(--shell)) / 2));
  padding-right: max(24px, calc((100vw - var(--shell)) / 2));
}
.entry-content .has-background[style*="#1f1f1d"],
.entry-content .has-background[style*="rgb(31,31,29)"],
.entry-content .is-dark-section {
  color: var(--light) !important;
}
.entry-content .has-background[style*="#1f1f1d"] h1,
.entry-content .has-background[style*="#1f1f1d"] h2,
.entry-content .has-background[style*="#1f1f1d"] h3,
.entry-content .has-background[style*="#1f1f1d"] p,
.entry-content .has-background[style*="rgb(31,31,29)"] h1,
.entry-content .has-background[style*="rgb(31,31,29)"] h2,
.entry-content .has-background[style*="rgb(31,31,29)"] h3,
.entry-content .has-background[style*="rgb(31,31,29)"] p,
.entry-content .is-dark-section h1,
.entry-content .is-dark-section h2,
.entry-content .is-dark-section h3,
.entry-content .is-dark-section p {
  color: var(--light) !important;
}
/* Hide default block template title on front page if it sneaks in */
.is-tuner-front-page .wp-block-post-title,
.is-tuner-front-page .page-header,
.is-tuner-front-page .entry-header { display: none; }
/* Remove default WP patterns of social/share if present */
.sharedaddy,
.sd-sharing,
.post-meta,
.entry-meta,
.comments-area { display: none !important; }
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr; }
  .site-header__inner,
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-nav .menu,
  .site-footer__nav .footer-menu { flex-wrap: wrap; gap: 14px 18px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .page-shell,
  .front-page-shell,
  .content-shell,
  .single-shell { padding: 36px 0 72px; }
}
