@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./montserrat-400.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./montserrat-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./lora-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./lora-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-muted: #f8e8dc;
  --text: #3c3c3c;
  --muted: #5f574f;
  --accent: #f74392;
  --accent-dark: #b22f66;
  --accent-soft: rgba(247, 67, 146, 0.12);
  --border: rgba(60, 60, 60, 0.12);
  --shadow: 0 20px 40px rgba(47, 42, 36, 0.1);
  --radius: 16px;
  --max-width: 1050px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, .brand-eyebrow, .brand-name {
  font-family: "Lora", Georgia, serif;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, rgba(247, 67, 146, 0.95) 0%, rgba(232, 79, 142, 0.9) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.98rem;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
}

.brand-eyebrow {
  font-size: 1.65rem;
  font-weight: 400;
}

html[lang="en"] .brand-eyebrow {
  display: none;
}

.brand-name {
  font-weight: 400;
  font-size: 2.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.lang-option {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(60, 60, 60, 0.9);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-menu .mobile-language-toggle-item {
  padding: 0;
}

.mobile-menu .language-toggle {
  box-shadow: none;
  background: var(--accent-soft);
  border: 1px solid rgba(247, 67, 146, 0.22);
  width: fit-content;
}

/* Section order (language-specific) */

main {
  display: flex;
  flex-direction: column;
}

#about-me { order: 1; }
#book { order: 2; }
#speaking { order: 3; }
.testimonials { order: 4; }
#contact { order: 5; }

html[lang="en"] #speaking { order: 2; }
html[lang="en"] #book { order: 3; }

/* Generic two-column section */

.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.split--reverse .media-block {
  order: -1;
}

/* Divider between About and Book (Swedish only) */

html[lang="sv"] #about-me .container::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background: var(--accent);
  width: min(400px, 90%);
  margin-top: 3rem;
}

html[lang="sv"] #about-me {
  padding-bottom: 1.5rem;
}

.media-block img {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

#speaking .media-block img {
  margin-left: 5.5rem;
}

.content-block h2 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  white-space: pre-line;
}

#book .content-block h2 {
  margin-bottom: 1rem;
}

.i18n-optional:empty {
  display: none;
  margin: 0;
}

.book-title-em {
  font-style: italic;
}

.content-block h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--muted);
  white-space: pre-line;
}

.book-cover img {
  max-width: 250px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

html[lang="sv"] .book-cover img {
  max-width: 230px;
}

.cta {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.fine-print {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Testimonials */

.testimonials {
  background: #ffffff;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.quote-card {
  padding: 0.5rem 1.5rem;
  text-align: center;
}

html[lang="en"] .testimonials {
  display: none;
}

html[lang="en"] .cta {
  display: none;
}

.quote-card svg {
  width: 40px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--text);
}

.quote-card cite {
  font-style: normal;
  font-weight: 700;
}

/* Contact */

.contact {
  background: var(--bg-muted);
  text-align: left;
}

.contact h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.contact-card {
  display: grid;
  gap: 1rem;
  max-width: 440px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.contact-row:hover,
.contact-row:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(47, 42, 36, 0.14);
}

.contact-icon svg {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.contact-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

/* Footer */

.site-footer {
  min-height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .split,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .media-block {
    order: 0;
  }

  #speaking .media-block img {
    margin-left: 0;
  }
}

@media (min-width: 701px) {
  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .header-actions .language-toggle {
    display: none;
  }
}
