/*
Theme Name: Paula - Studio Tańca
Theme URI: https://pierwszytaniec.slask.pl
Author: Amanda Walaszek (design) & Ireneusz Gabryś (code)
Author URI: http://irek.gabr.pl
Description: Custom theme for https://pierwszytaniec.slask.pl
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Tanec, Nauka tańca, Paulina Gwóźdź
Text Domain: pierwszytaniec.slask

This theme, like WordPress, is licensed under the GPL.  Use it to make
something cool, have fun, and share what you've learned with others.
*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Setup ==================================================== */

@keyframes spin {
    from { transform: rotate(  0deg) }
    to   { transform: rotate(360deg) }
}

@font-face {
    font-family: 'sofia-pro';
    src: url('font/sofia_pro/regular.woff2') format('woff2'),
	 url('font/sofia_pro/regular.woff')  format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'sofia-pro';
    src: url('font/sofia_pro/light.woff2') format('woff2'),
	 url('font/sofia_pro/light.woff')  format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'above-beyond';
    src: url('font/above_the_beyond_serif/regular.woff2') format('woff2'),
	 url('font/above_the_beyond_serif/regular.woff')  format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-foreground: #000000;
    --color-background: #dfd9d3;
    --color-background-accent: #cfc5bd;
    --font-main: "sofia-pro", Helvetica, Arial, sans-serif;
    --font-second: "above-beyond", Helvetica, Arial, sans-serif;
    --max-width: 1440px;
    --page-padding: 8vw;
}

@media (min-width: 1440px) {
    :root {
	--page-padding: 2rem;
    }
}

::selection {
    color: var(--color-background);
    background-color: var(--color-foreground);
    transition: color .5s, background-color .5s;
}

/* Global =================================================== */

*[hidden] {
    display: none;
}

html {
    background-color: var(--color-background) !important;
    color: var(--color-foreground) !important;
    transition: color .5s, background-color .5s;
    font-family: var(--font-main);
    font-weight: 300;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;

    /* Fluid font size */
    --container-width : 100vw;     /* cw */
    --width-min       : 320;       /* w1 */
    --width-max       : 1440;      /* w2 */
    --font-min        : 10;        /* f1 */
    --font-max        : 22;        /* f2 */
    
    /* f1*1px + (f2 - f1) * ((cw% - w1*1px) / (w2 - w1)) */
    /* NOTE that units are defined only in 3 places. */
    --font-size: calc(
	var(--font-min)*1px +
	(var(--font-max) - var(--font-min)) *
	((var(--container-width) - var(--width-min)*1px) /
	 (var(--width-max) - var(--width-min))));
    font-size: clamp(
	calc(var(--font-min)*1px),
	var(--font-size),
	calc(var(--font-max)*1px));
}

body {
    max-width: var(--max-width);
    margin: 0 auto;
}

strong {
    font-weight: bold;
}

p {
    line-height: 1.375;
    margin-bottom: 1rem;
}

h1,h2,h3,h4,h5,h6,blockquote,figcaption {
    font-family: var(--font-second);
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.3rem;
}

a {
    color: currentcolor;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    width: 100%;
    display: block;
}

header,
section,
footer {
    position: relative;
    padding: 5rem var(--page-padding);
    box-sizing: border-box;
}

section.accent {
    background-color: var(--color-background-accent);
}

svg {
    fill: #000;
}

.spin {
    transform-origin: center center;
    animation-duration: 120s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-name: spin;
    animation-timing-function: linear;
}

.center {
    text-align: center;
}

/* Header =================================================== */

header section {
    width: 50%;
    padding: 0 2rem 0 0;
    box-sizing: border-box;
}

header section h1 svg {
    max-width: 100%;
}

header section article {
    max-width: 24.5em;
    margin-top: 5rem;
    margin-bottom: 11rem;
}

header section article img {
    width: 8rem;
}

header > img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* Baner ==================================================== */
#baner {
    padding-bottom: 0;
}

#baner article {
    max-width: 44rem;
    margin: 0 auto 5rem auto;
}

#baner > img {
    margin-left: calc(var(--page-padding) * -1);
    width: calc(100% + var(--page-padding) * 2);
}

/* Classes ================================================== */

#classes {
    max-width: 42rem;
    margin: 0 auto;
}

#classes svg {
    margin-top: 2rem;
}

/* About ==================================================== */

#about article {
    width: 50%;
    padding-right: 5rem;
    box-sizing: border-box;
}

#about article h2 img {
    display: inline;
    height: .65em;
    width: .65em;
}

#about > img {
    width: calc(50% - var(--page-padding));
    position: absolute;
    top: 5rem;
    right: var(--page-padding);
}

/* Offert =================================================== */

#offert article {
    width: 50%;
    padding-right: 5rem;
    box-sizing: border-box;
}

/* Opinions =================================================== */

#opinions {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
}

#opinions figure {
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 1.3s, transform 0.7s;
}

#opinions figure.active {
    opacity: 1;
    transform: translateX(0);
}

#opinions figure img {
    margin-bottom: 5rem;
}

#opinions figure blockquote {
    font-size: 1.6rem;
    padding: 0 var(--page-padding);
}

#opinions figure blockquote p {
    line-height: 1;
}

#opinions figure figcaption {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

#opinions > ul {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#opinions > ul li {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    border: 1px rgba(0,0,0,0.75) solid;
}

#opinions > ul li:not(.active) {
    cursor: pointer;
}

#opinions > ul li.active {
    background-color: #000;
}

/* footer =================================================== */

footer h2 {
    font-size: 3.5rem;
}

footer ul li {
    display: inline;
}

footer ul li:not(:last-child)::after {
    content: " | ";
    letter-spacing: 0.3rem;
}

/* Mobile =================================================== */

@media (max-width: 720px) {
    :root {
	--page-padding: 6vw;
    }

    h1,h2,h3,h4,h5,h6,blockquote {
	line-height: 1.1;
    }

    header {
	padding-bottom: 0;
	text-align: center;
    }

    header section {
	width: 100%;
	padding: 0;
    }

    header section article {
	margin: 4rem 0 3rem 0;
	width: 100%;
	max-width: 100%;
	text-align: center;
    }

    header > img {
	position: initial;
	width: calc(100% + 2 * var(--page-padding));
	margin-left: calc(var(--page-padding) * -1);
    }

    #about {
	padding-bottom: 0;
    }

    #about article {
	width: 100%;
	padding-right: 0rem;
	text-align: center;
    }

    #about img {
	position: initial;
	width: calc(100% + 2 * var(--page-padding));
	margin-left: calc(var(--page-padding) * -1);
	margin-top: 5rem;
    }

    #offert article {
	width: 100%;
	padding-right: 0;
	text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
	--page-padding: 6vw;
    }

    h1,h2,h3,h4,h5,h6,blockquote {
	line-height: 1;
    }

    section,
    footer {
	padding: 4rem var(--page-padding);
    }

    footer h2 {
	font-size: 2rem;
    }

    footer ul li {
	display: block;
	margin-bottom: 1rem;
    }

    footer ul li:not(:last-child)::after {
	content: none;
    }
}
