/*
Theme Name: Victoria Lindqvist
Author: Solklart
Description: Tema för victorialindqvist.com. Flerspråkigt med Polylang (sv, fi, en).
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: victoria-lindqvist
*/
@font-face { font-family: "Josefin Sans"; font-weight: 300; font-display: swap; src: url(assets/fonts/josefin-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Josefin Sans"; font-weight: 300; font-display: swap; src: url(assets/fonts/josefin-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-weight: 200 900; font-display: swap; src: url(assets/fonts/mulish-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; font-weight: 200 900; font-display: swap; src: url(assets/fonts/mulish-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --plum: #420f26;
  --dark: #16050d;
  --accent: #781b47;
  --pink: #e99dc0;
  --text: #fff;
  --ink: #16050d;
  --head: "Josefin Sans", "Brandon Grotesque", "Futura", sans-serif;
  --body: "Mulish", "Avenir", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--dark); color: var(--text); font: 300 15px/1.9 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--head); font-weight: 300; line-height: 1.25; margin: 0 0 .6em; }
.wrap { width: min(980px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--plum); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { display: flex; flex-direction: column; text-decoration: none; font: 300 30px/1.2 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--plum); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { text-decoration: none; color: #f0f0f0; }
.site-nav a:hover { color: var(--pink); }
.langs { display: flex; gap: 2px; margin-left: 8px; background: #fff; border-radius: 2px; padding: 3px; }
.langs a { color: var(--plum); font-size: 12px; padding: 2px 6px; line-height: 1.4; }
.langs a[aria-current] { background: var(--plum); color: #fff; }
.langs a:hover { color: var(--accent); }
.langs a[aria-current]:hover { color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
.vl-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.vl-hero .hero-text { padding: 56px max(32px, calc((100vw - 980px) / 2)) 56px; padding-right: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vl-hero .hero-text h1 { font-size: 40px; text-align: center; }
.vl-hero .hero-text .prose { text-align: justify; max-width: 440px; }
.vl-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.btn-outline { margin-top: 28px; display: inline-block; padding: 8px 30px; border: 1px solid #fff; border-radius: 100px; text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.btn-outline:hover { background: #fff; color: var(--dark); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* Videos */
.videos { padding: 72px 0; background: var(--dark); }
.video-card { background: #fff; color: var(--ink); padding: 0 0 24px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.player-btn img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; background: rgba(84, 153, 167, .9); }
.play-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.player-btn:hover .play-icon, .player-btn:focus-visible .play-icon { background: var(--accent); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.now-playing { margin: 14px 24px; font-family: var(--head); font-size: 18px; line-height: 1.4; }
.thumbs { list-style: none; margin: 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumb { all: unset; cursor: pointer; display: block; width: 100%; }
.thumb img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.thumb span { display: block; font-size: 12px; line-height: 1.4; margin-top: 6px; color: #444; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thumb:hover img, .thumb.active img { opacity: 1; }
.thumb.active img { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* About */
.about { padding: 48px 0 88px; }
.about-row { display: grid; grid-template-columns: 180px 1fr; gap: 0 32px; padding: 40px 0; }
.about-row h2 { font: 300 16px/1.9 var(--body); margin: 0; text-align: right; }
.about-row .prose { border-left: 1px solid rgba(255, 255, 255, .4); padding-left: 32px; font-size: 14px; }
.about-row a { color: #fff; text-underline-offset: 3px; }
.about-row a:hover { color: var(--pink); }

/* Contact */
.contact { background: #fff; color: var(--ink); padding: 72px 0 80px; }
.contact h2 { font-size: 40px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.contact-form input, .contact-form textarea { font: 400 14px/1.4 var(--body); color: #373b4d; border: 2px solid #373b4d; padding: 12px; background: #fff; border-radius: 0; margin: -1px 0 0 -1px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); position: relative; z-index: 1; }
.f-name { grid-column: 1; }
.f-email { grid-column: 1; }
.f-phone { grid-column: 2; }
.f-message { grid-column: 1 / -1; resize: vertical; }
.contact-form button { grid-column: 2; justify-self: end; width: 50%; margin-top: 12px; padding: 12px; border: 0; background: var(--accent); color: #fff; font: 400 14px var(--body); cursor: pointer; }
.contact-form button:hover { background: var(--plum); }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-status { grid-column: 1; margin: 12px 0 0; font-size: 14px; align-self: center; }
.form-status.error { color: #b00020; }
.hp { position: absolute; left: -9999px; }

/* Light pages */
.light-page { background: #fff; color: var(--ink); padding: 72px 0 96px; min-height: calc(100vh - 96px - 108px); }
.light-page h1 { font-size: 32px; }
.gigs p { margin: 0 0 1em; font-size: 16px; }
.gigs .small { font-size: 14px; color: #444; }
.gigs .gap { margin-top: 2.4em; }
.lead { font-size: 16px; max-width: 640px; margin: 0 auto .4em; }
.hint { font-size: 13px; color: #666; margin: 0 0 32px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.page-404 .light-page a { color: var(--accent); }

.site-footer { background: var(--dark); text-align: center; font-size: 12px; padding: 40px 16px; color: #ddd; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 72px; gap: 16px; }
  .brand { font-size: 22px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 20px; margin: 0; }
  .site-nav.open { display: flex; }
  .langs { margin: 4px 0 0; }
  html { scroll-padding-top: 72px; }
  .vl-hero { grid-template-columns: 1fr; }
  .vl-hero .hero-text { padding: 48px 16px; }
  .vl-hero .hero-text .prose { text-align: left; }
  .vl-hero .hero-img img { max-height: 520px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .now-playing { margin: 12px 16px; }
  .about-row { grid-template-columns: 1fr; padding: 24px 0; }
  .about-row h2 { text-align: left; font-size: 18px; margin-bottom: 8px; }
  .about-row .prose { border-left: 0; padding-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; }
  .f-phone, .contact-form button, .form-status { grid-column: 1; }
  .contact-form button { width: 100%; }
  .contact h2, .vl-hero .hero-text h1 { font-size: 32px; }
}

/* ---------- WordPress-block ---------- */
.vl-hero { margin: 0; }
.vl-hero .hero-text > * { margin-top: 0; }
.vl-hero .hero-text p { text-align: justify; max-width: 440px; margin: 0 0 1.1em; }
.vl-hero .hero-img { margin: 0; height: 100%; }
.vl-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.vl-hero .wp-block-buttons { margin-top: 18px; }
.wp-block-button.is-style-outline .wp-block-button__link, .vl-hero .wp-block-button__link { display: inline-block; padding: 8px 30px; border: 1px solid #fff; border-radius: 100px; text-decoration: none; font-size: 15px; background: transparent; color: #fff; transition: background .2s, color .2s; }
.vl-hero .wp-block-button__link:hover { background: #fff; color: var(--dark); }
.videos > .video-card { width: min(980px, 100% - 32px); margin-inline: auto; }
.about > .about-row { width: min(980px, 100% - 32px); margin-inline: auto; }
.about-row > h2 { font: 300 16px/1.9 var(--body); margin: 0; text-align: right; }
.about-row > .prose { border-left: 1px solid rgba(255, 255, 255, .4); padding-left: 32px; font-size: 14px; }
.about-row > .prose p { margin: 0 0 1.1em; }
.about-row > .prose p:last-child { margin-bottom: 0; }
.contact > * { width: min(640px, 100% - 32px); margin-inline: auto; }
.contact > h2 { font-size: 40px; font-family: var(--head); font-weight: 300; }
.page-content { text-align: center; }
.page-content > p { max-width: 640px; margin: 0 auto 1em; font-size: 16px; }
.page-content .small { font-size: 14px; color: #444; }
.page-content .gap { margin-top: 2.4em; }
.page-content .hint { font-size: 13px; color: #666; margin-bottom: 32px; }
.wp-block-gallery.vl-press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; }
.wp-block-gallery.vl-press.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; margin: 0; overflow: hidden; display: block; }
.wp-block-gallery.vl-press.has-nested-images figure.wp-block-image img { width: 100%; height: auto; }
.wp-block-gallery.vl-press.has-nested-images figure.wp-block-image > a { display: block; flex: none; width: 100%; }
.wp-block-gallery.vl-press img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .3s; }
.wp-block-gallery.vl-press a:hover img { transform: scale(1.03); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .vl-hero .hero-text p { text-align: left; }
  .vl-hero .hero-img img { max-height: 520px; }
  .about-row > h2 { text-align: left; font-size: 18px; margin-bottom: 8px; }
  .about-row > .prose { border-left: 0; padding-left: 0; }
  .wp-block-gallery.vl-press { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .contact > h2 { font-size: 32px; } }
