/*
Theme Name: Howards Kadence
Theme URI: https://howards.se/
Description: Projektspecifikt child theme för Linda Howard.
Author: Howards.se
Template: kadence
Version: 1.0.11
Text Domain: howards
*/

@font-face {
  font-family: "Howards Sans";
  src: url("assets/fonts/howards-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Howards Serif";
  src: url("assets/fonts/howards-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --hw-ink: #26231f;
  --hw-ink-soft: #57514a;
  --hw-paper: #fcfaf6;
  --hw-cream: #f3ede3;
  --hw-sand: #e6d8c5;
  --hw-gold: #89591f;
  --hw-gold-dark: #674014;
  --hw-plum: #583b43;
  --hw-white: #fff;
  --hw-border: rgba(38, 35, 31, 0.14);
  --hw-shadow: 0 24px 60px rgba(49, 39, 29, 0.12);
  --hw-radius: 22px;
  --hw-width: 1400px;
  --hw-narrow: 780px;
  --hw-serif: "Howards Serif", Georgia, "Times New Roman", serif;
  --hw-sans: "Howards Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body.hw-theme {
  margin: 0;
  background: var(--hw-paper);
  color: var(--hw-ink);
  font-family: var(--hw-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

.hw-theme a {
  color: var(--hw-gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hw-theme a:hover { color: var(--hw-plum); }

:focus-visible {
  outline: 3px solid #cf8f2f;
  outline-offset: 4px;
}

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

.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;
}

.screen-reader-text:focus {
  background: var(--hw-white);
  clip: auto !important;
  clip-path: none;
  color: var(--hw-ink);
  display: block;
  height: auto;
  left: 1rem;
  padding: 0.8rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.hw-shell {
  margin-inline: auto;
  max-width: var(--hw-width);
  padding-inline: clamp(20px, 4vw, 64px);
  width: 100%;
}

.hw-site-header {
  background: color-mix(in srgb, var(--hw-paper) 94%, transparent);
  border-bottom: 1px solid var(--hw-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
}

.admin-bar .hw-site-header { top: 32px; }

.hw-header-inner {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 92px;
}

.hw-brand {
  color: var(--hw-ink);
  display: inline-block;
  flex: 0 0 auto;
  text-decoration: none;
}

.hw-brand-logo-frame {
  aspect-ratio: 21 / 11;
  display: block;
  overflow: hidden;
  width: clamp(128px, 14vw, 142px);
}

.hw-brand-logo {
  display: block;
  height: auto;
  max-width: none;
  width: 100%;
}

.hw-nav-wrap { align-items: center; display: flex; gap: 30px; }

.hw-nav ul {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hw-nav a {
  color: var(--hw-ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.hw-nav .current-menu-item > a,
.hw-nav .current_page_item > a,
.hw-nav a:hover { color: var(--hw-gold-dark); }

.hw-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--hw-border);
  border-radius: 999px;
  color: var(--hw-ink);
  cursor: pointer;
  display: none;
  font: 700 14px/1 var(--hw-sans);
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
}

.hw-menu-icon,
.hw-menu-icon::before,
.hw-menu-icon::after {
  background: currentColor;
  display: block;
  height: 2px;
  position: relative;
  transition: transform 180ms ease;
  width: 20px;
}

.hw-menu-icon::before,
.hw-menu-icon::after { content: ""; position: absolute; }
.hw-menu-icon::before { top: -6px; }
.hw-menu-icon::after { top: 6px; }
.nav-open .hw-menu-icon { background: transparent; }
.nav-open .hw-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav-open .hw-menu-icon::after { top: 0; transform: rotate(-45deg); }

.hw-main { overflow: hidden; }

.hw-section {
  padding-block: clamp(72px, 8vw, 128px);
  position: relative;
}

.hw-section--compact { padding-block: clamp(52px, 6vw, 84px); }
.hw-section--cream { background: var(--hw-cream); }
.hw-section--ink { background: var(--hw-ink); color: var(--hw-white); }
.hw-section--plum { background: var(--hw-plum); color: var(--hw-white); }
.hw-section--goldwash { background: #f8f1e7; }

.hw-hero {
  min-height: min(790px, calc(100vh - 92px));
  padding-block: clamp(58px, 7vw, 104px);
  position: relative;
}

.hw-hero-grid,
.hw-split {
  align-items: center;
  display: grid;
  gap: clamp(42px, 7vw, 112px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.hw-hero-copy { max-width: 720px; }
.hw-hero-media {
  --hw-portrait-radius: 48% 48% 20px 20px;
  border: 1px solid rgba(168, 117, 50, 0.62);
  border-radius: var(--hw-portrait-radius);
  overflow: hidden;
  position: relative;
}

.hw-hero-media img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  display: block;
  object-fit: cover;
  width: 100%;
}

.hw-hero-media--live img { object-position: 50% 58%; }

.hw-eyebrow {
  color: var(--hw-gold-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hw-section--ink .hw-eyebrow,
.hw-section--plum .hw-eyebrow { color: #e8c58d; }

.hw-main h1,
.hw-main h2,
.hw-main h3,
.hw-main h4 {
  color: inherit;
  font-family: var(--hw-serif);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 0.55em;
}

.hw-main h1 { font-size: clamp(46px, 6.2vw, 88px); }
.hw-main h2 { font-size: clamp(36px, 4.5vw, 64px); }
.hw-main h3 { font-size: clamp(25px, 2.5vw, 34px); }
.hw-main h4 { font-size: 22px; }

.hw-main .hw-section--ink h1,
.hw-main .hw-section--ink h2,
.hw-main .hw-section--ink h3,
.hw-main .hw-section--ink h4,
.hw-main .hw-section--plum h1,
.hw-main .hw-section--plum h2,
.hw-main .hw-section--plum h3,
.hw-main .hw-section--plum h4 { color: var(--hw-white); }

.hw-display-small { font-size: clamp(42px, 5vw, 72px); }
.hw-lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.52; max-width: 720px; }
.hw-muted { color: var(--hw-ink-soft); }
.hw-section--ink .hw-muted,
.hw-section--plum .hw-muted { color: rgba(255, 255, 255, 0.76); }

.hw-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hw-theme .hw-button,
button.hw-button,
input.hw-button {
  align-items: center;
  background: var(--hw-gold);
  border: 2px solid var(--hw-gold);
  border-radius: 999px;
  color: var(--hw-white);
  cursor: pointer;
  display: inline-flex;
  font: 750 15px/1 var(--hw-sans);
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hw-theme .hw-button:hover {
  background: var(--hw-gold-dark);
  border-color: var(--hw-gold-dark);
  color: var(--hw-white);
  transform: translateY(-2px);
}

.hw-theme .hw-button--ghost { background: transparent; color: var(--hw-ink); }
.hw-section--ink .hw-button--ghost,
.hw-section--plum .hw-button--ghost { border-color: rgba(255,255,255,.7); color: var(--hw-white); }
.hw-button--ghost:hover { background: var(--hw-ink); border-color: var(--hw-ink); color: var(--hw-white); }

.hw-facts {
  border-bottom: 1px solid var(--hw-border);
  border-top: 1px solid var(--hw-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
}

.hw-facts-context { margin-top: 48px; }
.hw-facts-context .hw-facts { margin-top: 10px; }
.hw-facts-title {
  color: var(--hw-ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}
.hw-facts-title strong { color: var(--hw-gold-dark); margin-right: 0.55em; }

.hw-fact { padding: 22px clamp(10px, 2vw, 28px); text-align: center; }
.hw-fact + .hw-fact { border-left: 1px solid var(--hw-border); }
.hw-fact strong { display: block; font-family: var(--hw-serif); font-size: 25px; line-height: 1.2; }
.hw-fact span { color: var(--hw-ink-soft); font-size: 13px; }

.hw-intro { margin-bottom: clamp(40px, 6vw, 72px); max-width: 850px; }
.hw-intro--center { margin-inline: auto; text-align: center; }

.hw-grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.hw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hw-card {
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  padding: clamp(26px, 3.5vw, 44px);
}

.hw-card--soft { background: rgba(255,255,255,.48); }
.hw-card--dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.hw-card h3 { margin-bottom: 14px; }
.hw-card p:last-child { margin-bottom: 0; }

.hw-card-number {
  color: var(--hw-gold-dark);
  display: block;
  font-family: var(--hw-serif);
  font-size: 42px;
  font-style: italic;
  line-height: 1;
  margin-bottom: 24px;
}

.hw-card--dark .hw-card-number { color: #e8c58d; }

.hw-lesson-grid { gap: clamp(18px, 2vw, 28px); }
.hw-lesson-grid .hw-card { min-width: 0; padding: clamp(24px, 2.5vw, 34px); }
.hw-lesson-grid .hw-card h3 {
  font-size: clamp(24px, 2vw, 30px);
  hyphens: auto;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.hw-checks { list-style: none; margin: 28px 0 0; padding: 0; }
.hw-checks li { padding: 8px 0 8px 30px; position: relative; }
.hw-checks li::before { color: var(--hw-gold); content: "✓"; font-weight: 800; left: 0; position: absolute; }

.hw-media-frame img {
  aspect-ratio: 5 / 4;
  border-radius: var(--hw-radius);
  display: block;
  object-fit: cover;
  width: 100%;
}

.hw-media-frame--portrait img { aspect-ratio: 4 / 5; }

.hw-quote {
  border-left: 3px solid var(--hw-gold);
  font-family: var(--hw-serif);
  font-size: clamp(25px, 3vw, 38px);
  font-style: italic;
  line-height: 1.35;
  margin: 32px 0;
  padding-left: 28px;
}

.hw-price { align-items: baseline; display: flex; gap: 9px; margin: 22px 0; }
.hw-price strong { font-family: var(--hw-serif); font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.hw-price span { color: var(--hw-ink-soft); font-size: 14px; white-space: nowrap; }

.hw-kicker-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.hw-kicker-list span { border: 1px solid var(--hw-border); border-radius: 999px; font-size: 14px; padding: 8px 14px; }

.hw-track-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hw-theme .hw-track-card {
  align-content: start;
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(49, 39, 29, 0.06);
  color: var(--hw-ink);
  display: grid;
  gap: 16px;
  min-height: 166px;
  min-width: 0;
  padding: 22px 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.hw-theme .hw-track-card:hover {
  border-color: rgba(103, 64, 20, 0.48);
  box-shadow: 0 14px 32px rgba(49, 39, 29, 0.1);
  color: var(--hw-ink);
}

.hw-track-summary { align-items: center; display: grid; gap: 16px; grid-template-columns: auto minmax(0, 1fr); }
.hw-track-number { color: var(--hw-gold-dark); font-family: var(--hw-serif); font-size: 32px; font-style: italic; }
.hw-track-copy { display: grid; line-height: 1.25; min-width: 0; }
.hw-track-copy strong { font-family: var(--hw-serif); font-size: clamp(24px, 2.4vw, 32px); }
.hw-track-copy small { color: var(--hw-ink-soft); font-size: 14px; margin-top: 7px; }
.hw-track-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 16px; }

.hw-theme .hw-track-preview,
.hw-theme .hw-track-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font: 750 13px/1 var(--hw-sans);
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  text-decoration: none;
}

.hw-theme .hw-track-preview {
  background: #1ed760;
  border: 1px solid #189f4b;
  color: #12351f;
  cursor: pointer;
}

.hw-theme .hw-track-preview:hover { background: #19c957; }
.hw-theme .hw-track-link { color: var(--hw-gold-dark); padding-inline: 2px; }
.hw-track-player { min-width: 0; }
.hw-track-player iframe { border: 0; border-radius: 12px; display: block; height: 152px; width: 100%; }
.hw-track-bonus {
  align-items: center;
  border-top: 1px solid var(--hw-border);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  margin-top: clamp(42px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 60px);
}
.hw-track-bonus .hw-eyebrow { margin-bottom: 12px; }
.hw-track-bonus h3 { margin-bottom: 12px; }
.hw-embed-notice { border-left: 3px solid var(--hw-gold); color: var(--hw-ink-soft); font-size: 14px; margin-top: 28px; max-width: 780px; padding-left: 18px; }
.hw-progression-note { margin: 34px auto 0; max-width: 880px; text-align: center; }

.hw-form-wrap { max-width: 880px; }
.hw-form { display: grid; gap: 22px; }
.hw-form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-field--wide { grid-column: 1 / -1; }
.hw-field label,
.hw-field legend { display: block; font-size: 15px; font-weight: 750; margin-bottom: 8px; }
.hw-field .hw-optional { color: var(--hw-ink-soft); font-size: 13px; font-weight: 400; }

.hw-field input:not([type="checkbox"]):not([type="radio"]),
.hw-field select,
.hw-field textarea {
  appearance: none;
  background: var(--hw-white);
  border: 1px solid #9a9187;
  border-radius: 10px;
  color: var(--hw-ink);
  font: 400 17px/1.4 var(--hw-sans);
  min-height: 52px;
  padding: 12px 14px;
  width: 100%;
}

.hw-field textarea { min-height: 145px; resize: vertical; }
.hw-field input:focus,
.hw-field select:focus,
.hw-field textarea:focus { border-color: var(--hw-gold-dark); box-shadow: 0 0 0 3px rgba(168,117,50,.16); outline: 0; }
.hw-field input[type="checkbox"]:focus-visible,
.hw-field input[type="radio"]:focus-visible { outline: 2px solid var(--hw-gold-dark); outline-offset: 2px; }

.hw-consent { align-items: flex-start; display: flex; gap: 12px; }
.hw-consent input { accent-color: var(--hw-gold-dark); cursor: pointer; flex-shrink: 0; height: 22px; margin-top: 4px; min-height: 0; width: 22px; }
.hw-consent label { cursor: pointer; font-size: 14px; font-weight: 400; margin: 0; }
.hw-honeypot { left: -9999px !important; position: absolute !important; }
.hw-form-note { color: var(--hw-ink-soft); font-size: 14px; }

.hw-notice {
  border-radius: 12px;
  margin-bottom: 28px;
  padding: 16px 18px;
}
.hw-notice--success { background: #e8f4ea; border: 1px solid #73a67a; color: #204b27; }
.hw-notice--error { background: #fae9e7; border: 1px solid #b46b64; color: #6c2520; }

.hw-detail-list { border-top: 1px solid var(--hw-border); margin: 32px 0 0; }
.hw-detail-row { border-bottom: 1px solid var(--hw-border); display: grid; gap: 16px; grid-template-columns: 180px 1fr; padding: 18px 0; }
.hw-detail-row dt { font-weight: 750; }
.hw-detail-row dd { margin: 0; }

.hw-legal { margin-inline: auto; max-width: var(--hw-narrow); }
.hw-legal h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 1.6em; }
.hw-legal h3 { font-size: 24px; margin-top: 1.5em; }

.hw-site-footer { background: #1f1d1a; color: rgba(255,255,255,.78); padding-block: 72px 28px; }
.hw-footer-grid { display: grid; gap: 48px; grid-template-columns: 1.3fr .8fr .8fr; }
.hw-site-footer .hw-brand { color: var(--hw-white); }
.hw-site-footer .hw-brand-logo-frame { width: min(182px, 100%); }
.hw-site-footer h2 { color: var(--hw-white); font-family: var(--hw-sans); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.hw-site-footer a { color: rgba(255,255,255,.86); }
.hw-footer-nav { list-style: none; margin: 0; padding: 0; }
.hw-footer-nav li { margin-bottom: 8px; }
.hw-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; margin-top: 54px; padding-top: 24px; }

.hw-404 { min-height: 60vh; text-align: center; }

@media (min-width: 1200px) {
  .hw-site-header .hw-brand-logo-frame { width: clamp(208px, 15.7vw, 226px); }
}

@media (max-width: 1180px) {
  .hw-lesson-layout { gap: 48px; grid-template-columns: 1fr; }
  .hw-lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .hw-theme .hw-header-cta { display: none; }
  .hw-nav-wrap { gap: 0; }
  .hw-nav ul { gap: 18px; }
  .hw-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hw-price { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 860px) {
  .admin-bar .hw-site-header { top: 46px; }
  .hw-header-inner { min-height: 76px; }
  .hw-menu-toggle { display: inline-flex; }
  .hw-nav {
    background: var(--hw-paper);
    border-top: 1px solid var(--hw-border);
    inset: 76px 0 auto;
    max-height: 0;
    overflow: hidden;
    position: fixed;
    transition: max-height 240ms ease;
  }
  .admin-bar .hw-nav { top: 122px; }
  .nav-open .hw-nav { max-height: calc(100vh - 76px); overflow-y: auto; }
  .hw-nav ul { align-items: stretch; display: block; padding: 16px 20px 28px; }
  .hw-nav li { border-bottom: 1px solid var(--hw-border); }
  .hw-nav a { display: block; font-family: var(--hw-serif); font-size: 25px; padding: 16px 4px; }
  .hw-hero { min-height: 0; }
  .hw-hero-grid,
  .hw-split { gap: 48px; grid-template-columns: 1fr; }
  .hw-hero-media { max-width: 620px; }
  .hw-grid--3 { grid-template-columns: 1fr; }
  .hw-track-grid { grid-template-columns: 1fr; }
  .hw-track-bonus { grid-template-columns: 1fr; }
  .hw-facts { grid-template-columns: repeat(2, 1fr); }
  .hw-fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--hw-border); }
  .hw-fact:nth-child(4) { border-top: 1px solid var(--hw-border); }
  .hw-footer-grid { grid-template-columns: 1fr 1fr; }
  .hw-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hw-main h1 { font-size: clamp(40px, 13vw, 58px); }
  .hw-section { padding-block: 68px; }
  .hw-hero { padding-top: 44px; }
  .hw-actions { align-items: stretch; flex-direction: column; }
  .hw-button { width: 100%; }
  .hw-grid--2,
  .hw-grid--4,
  .hw-form-grid,
  .hw-footer-grid { grid-template-columns: 1fr; }
  .hw-footer-grid > :first-child { grid-column: auto; }
  .hw-facts { grid-template-columns: 1fr 1fr; margin-top: 38px; }
  .hw-fact { padding: 18px 8px; }
  .hw-fact strong { font-size: 21px; }
  .hw-detail-row { grid-template-columns: 1fr; gap: 3px; }
  .hw-card { padding: 26px 22px; }
  .hw-lesson-grid { grid-template-columns: 1fr; }
  .hw-theme .hw-track-card { min-height: 0; padding: 20px; }
}

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