/*
Theme Name: enerqi
Theme URI: https://enerqi.net
Author: Alex Thalhammer
Author URI: https://alex.thalhammer.name
Description: Static one-page theme matching the provided Word document. Embedded Corbel Light (placeholder).
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enerqi
*/

@font-face {
    font-family: "Corbel Light";
    src: url("fonts/corbel-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Corbel Bold";
    src: url("fonts/corbel-bold.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
:root {
    --bg: #ffffff;
    --text: #000000;
    --green: #009933;
    --orange: #FFA500;
    --red: #FF0000;
    --blue: #0066CC;
    --max-width: 60rem;
    font-family: "Corbel Light", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.wrapper {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Logo/Title Section */
.logo-section {
    text-align: center;
    margin: 2rem 0 2rem;
}

.logo-section .site-title {
    font-size: 3rem;
    font-weight: 300;
}

.logo-section .yin-yang {
    width: 386px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Navigation */
.nav {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

@media (max-width: 639px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
}

.nav a {
    font-weight: 300;
    text-decoration: none;
    transition: opacity 0.25s ease-in-out;
}

.nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.nav a.basics {
    color: var(--green);
}

.nav a.qikung {
    color: var(--orange);
}

.nav a.taiji {
    color: var(--red);
}

.nav a.meditation {
    color: var(--blue);
}

/* Profile */
.header .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
}

.header .contact-info h2 {
    font-size: 1.25em;
}

@media (min-width: 640px) {
    .header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: stretch;
        grid-auto-flow: dense;
        direction: rtl;
    }

    .header .contact-info {
        direction: ltr;
        font-size: 1.75rem;
        gap: 4rem;
    }
    .header .contact-info h2,
    .header .contact-info a {
        text-align: left;
    }

    .header .photo {
        text-align: right;
    }
}

.header .contact-info a {
    display: block;
    font-family: "Corbel Bold", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
    font-weight: 700;
}

.header .contact-info a,
.section .subtitle a,
.training-info a {
    color: var(--blue);
    text-decoration: none;
}

.header .contact-info a:hover,
.section .subtitle a:hover,
.training-info a:hover {
    text-decoration: underline;
}

.header .photo {
    text-align: center;
}

.header img {
    width: 100%;
    max-width: 304px;
    height: auto;
    display: block;
    margin-inline: auto;
}

@media (min-width: 480px) and (max-width: 639px) {
    .header img {
        max-width: 80%;
    }
}

/* Sections */
.section {
    margin: 3rem 0;
}

.section .current-courses {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

@media (max-width: 639px) {
    .section .current-courses {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.section h2 {
    font-family: "Corbel Bold", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: underline;
}

.section .subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    text-align: center;
}

.section h3 {
    margin-block: 3rem;
    font-family: "Corbel Bold", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 640px) {
    .section h3 {
        text-align: left;
    }
}

/* Course Schedule */
.courses {
    margin-top: 3rem;
}

.course-row {
    padding: 1rem 0;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
}

.course-row .day,
.course-row .time {
    display: inline-block;
}


@media (min-width: 640px) {
    .course-row {
        display: grid;
        grid-template-columns: 2fr 1fr 9fr;
        gap: 2rem;
        align-items: start;
        text-align: left;
    }
}

.course-row:first-of-type {
    margin-bottom: 2rem;
}

.course-row .description strong {
    font-family: "Corbel Bold", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 640px) {
    .course-row .description strong {
        font-size: 1.675rem;
    }
}

/* Training Info */
.training-info {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 1.5rem;
    line-height: 1.75;
}

.training-info a {
    color: var(--text);
}

.training-info .yin-yang-small {
    width: 8rem;
    height: 8rem;
    margin: 2rem auto;
    display: block;
}

/* Quote */
.quote {
    text-align: center;
    margin: 3rem auto;
    font-family: "Corbel Bold", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    max-width: 40rem;
}

@media (min-width: 480px) {
    .quote {
        font-size: 1.25rem;
    }
}

@media (min-width: 640px) {
    .quote {
        font-size: 1.5rem;
    }
}

.quote cite {
    display: block;
    margin-top: 1rem;
    font-family: "Corbel Light", "Segoe UI", Roboto, Helvetica, Arial system-ui, sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 300;
}

@media (min-width: 640px) {
    .quote cite {
        font-size: 1rem;
    }
}