/* =========================================================
   Hobby section stylesheet
   Used by hobby/index.html (Calisthenics) and hobby/history.html.
   The portfolio + hometown pages use a separate styles/styles.css.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Skip-to-content link (visible on keyboard focus) ----------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: #ff3b3b;
    color: #0e0e10;
    padding: 8px 12px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
}
.skip-link:focus {
    top: 8px;
    color: #0e0e10;
}

/* Favorite Movements list ----------------------------------- */
.movement-list {
    list-style: none;
    margin: 1em 0 1.5em;
    padding: 0;
}

.movement-list li {
    background-color: #1a1a1c;
    border: 1px solid #2a2a2e;
    border-left: 4px solid #ff3b3b;
    padding: 1em 1.25em;
    margin-bottom: 0.75em;
    line-height: 1.6;
    max-width: 70ch;
}

.movement-list li strong {
    color: #ffffff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 0.4em;
}

/* Goals / What I'm Working On ------------------------------- */
.goal-list {
    list-style: none;
    margin: 0.5em 0 1.5em;
    padding: 0;
}

.goal-list li {
    padding: 0.5em 0 0.5em 1.5em;
    position: relative;
    line-height: 1.5;
    max-width: 70ch;
    border-bottom: 1px solid #2a2a2e;
}

.goal-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ff3b3b;
    font-weight: 700;
}

.goal-list li:last-child {
    border-bottom: none;
}

:root {
    --bg: #0e0e10;
    --surface: #1a1a1c;
    --surface-2: #141416;
    --border: #2a2a2e;
    --text: #e8e8e8;
    --muted: #b0b0b4;
    --accent: #ff3b3b;
    --accent-soft: #ff7070;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 12px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a, a:visited {
    color: var(--accent-soft);
    text-decoration: underline;
}

a:hover, a:focus {
    color: #ffffff;
}

/* Header --------------------------------------------------- */
header {
    text-align: center;
    background: linear-gradient(135deg, #0e0e10 0%, #1c1c1f 100%);
    border-bottom: 4px solid var(--accent);
    padding: 2.5em 1em 2em;
    margin: 0 -12px;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #ffffff;
    line-height: 1;
    text-transform: uppercase;
}

header h1 span {
    display: block;
    font-size: 0.3em;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-top: 0.7em;
}

/* Dark nav strip ------------------------------------------- */
.nav-bar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.9em 1.5em;
    margin: 0 -12px 2em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5em;
}

.nav-bar .brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-right: auto;
    text-transform: uppercase;
}

.nav-bar a,
.nav-bar a:visited {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-bar a:hover,
.nav-bar a:focus {
    color: var(--accent);
    text-decoration: none;
}

.nav-bar a.active {
    color: #ffffff;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.25em;
}

/* Main content --------------------------------------------- */
main {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

main p {
    line-height: 1.65;
    margin-bottom: 1em;
    max-width: 70ch;
    color: var(--text);
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 1.5em 0 0.5em;
    border-left: 4px solid var(--accent);
    padding-left: 0.6em;
}

h3 {
    color: #ffffff;
    margin: 1em 0 0.5em;
}

/* Intro block ---------------------------------------------- */
.introduction {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.25em;
}

.introduction img {
    flex: 0 0 auto;
    max-width: 220px;
    width: 40%;
    border-radius: 4px;
    margin: 0;
}

.introduction p {
    margin-bottom: 0;
}

/* Content block (used by .hometown-content class on history) - */
.hometown-content {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1.25em 1.75em;
}

/* Images --------------------------------------------------- */
img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hometown-images {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin: 1.5em 0;
}

.hometown-images figure {
    width: 100%;
    text-align: center;
}

.hometown-images img {
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border);
}

.hometown-images figcaption {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.5em;
    font-style: italic;
    text-align: center;
}

/* Calisthenics gallery ------------------------------------- */
.cali-gallery {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.25em 1.75em 1.75em;
}

.cali-gallery h2 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

.gallery-lead {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1.25em;
    max-width: 60ch;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1em;
}

.gallery-grid figure {
    margin: 0;
    background-color: var(--bg);
    border: 1px solid var(--border);
    padding: 0.5em;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.gallery-grid figure:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.gallery-grid figcaption {
    margin-top: 0.5em;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.gallery-grid figure.placeholder {
    background: repeating-linear-gradient(
        45deg,
        #1a1a1c,
        #1a1a1c 10px,
        #16161a 10px,
        #16161a 20px
    );
    border-style: dashed;
    border-color: #3a3a3e;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-grid figure.placeholder img {
    display: none;
}

.gallery-grid figure.placeholder figcaption::before {
    content: "Photo coming soon — ";
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
}

/* Inline resource nav inside content ----------------------- */
main nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-top: 0.5em;
}

main nav a {
    color: #ffffff;
    background-color: var(--surface);
    border: 1px solid var(--accent);
    padding: 0.55em 1.1em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

main nav a:hover {
    background-color: var(--accent);
    color: var(--bg);
}

/* Footer --------------------------------------------------- */
footer {
    text-align: center;
    padding: 2em 1em;
    margin: 3em -12px 0;
    background-color: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 2px solid var(--accent);
}

footer .citations {
    font-size: 0.78rem;
    color: #909094;
    margin-top: 0.75em;
    line-height: 1.5;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

footer .citations p {
    margin-bottom: 0.5em;
}

footer .citations ul {
    list-style: disc;
    margin: 0.25em 0 0.5em 1.5em;
    color: #909094;
    text-align: left;
}

footer .citations ul li {
    color: #909094;
    margin: 0.4em 0;
    text-align: left;
}

footer .citations a,
footer .citations a:visited {
    color: var(--accent-soft);
}

/* Skill progressions table -------------------------------- */
.progression-section {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.25em 1.75em 1.75em;
}

.progression-section h2 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

.progression-section .lead {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1.25em;
    max-width: 65ch;
}

.progression-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5em 0 1em;
    background-color: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
}

.progression-table caption {
    caption-side: bottom;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
    padding-top: 0.6em;
    text-align: left;
}

.progression-table th,
.progression-table td {
    border: 1px solid var(--border);
    padding: 0.7em 0.9em;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.progression-table thead th {
    background-color: #1f1f22;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--accent);
}

.progression-table th[scope="row"] {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--surface);
    width: 14%;
}

.progression-table tbody tr:hover td,
.progression-table tbody tr:hover th[scope="row"] {
    background-color: #232327;
}

.progression-table td.goal {
    color: var(--accent-soft);
    font-weight: 600;
}

.progression-table a,
.progression-table a:visited {
    color: var(--accent-soft);
}

.progression-table a:hover {
    color: #fff;
}

/* Movement library grid ----------------------------------- */
.move-grid-section {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.25em 1.75em 1.75em;
}

.move-grid-section h2 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

.move-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85em;
    margin: 0.5em 0 0.5em;
}

.move-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 0.9em 0.9em 1em;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.move-card:hover {
    transform: translateY(-3px);
    background-color: #1f1f22;
    border-top-color: #fff;
}

.move-card .icon {
    font-size: 1.8rem;
    line-height: 1;
}

.move-card .name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.move-card .target {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.move-card .reps {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.3em;
}

.move-card a,
.move-card a:visited {
    color: var(--accent-soft);
    font-size: 0.8rem;
    margin-top: auto;
    padding-top: 0.5em;
    text-decoration: none;
    border-top: 1px dashed var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.move-card a:hover {
    color: #fff;
}

.move-grid-section .legend {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 1em;
    font-style: italic;
}

/* Responsive */

/* tablet: tighten the gallery and main */
@media (max-width: 1024px) {
    main {
        width: 92%;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid img {
        height: 180px;
    }
    .progression-table {
        font-size: 0.85rem;
    }
    .progression-table th,
    .progression-table td {
        padding: 0.55em 0.6em;
    }
    .move-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile: single column, stack intro, smaller gallery photos */
@media (max-width: 600px) {
    main {
        width: 95%;
    }
    .introduction {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .introduction img {
        width: 70%;
        max-width: 240px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid img {
        height: 220px;
    }
    .nav-bar {
        gap: 0.6em 1em;
        padding: 0.75em 1em;
    }
    .nav-bar .brand {
        flex-basis: 100%;
        margin-right: 0;
    }
    h2 {
        font-size: 1.6rem;
    }
    .cali-gallery,
    .hometown-content,
    .progression-section,
    .move-grid-section {
        padding: 1em;
    }
    .progression-section,
    .move-grid-section {
        overflow-x: auto;
    }
    .progression-table {
        font-size: 0.8rem;
        min-width: 540px;
    }
    .move-grid {
        grid-template-columns: 1fr;
    }
}
