/* Shared by photography.html and paragliding.html: page basics, text-only buttons,
   the sections of the text pages, and the footer. The colors (light and dark), the
   header with the tabs and the page edges (--gutter) are in header.css, which
   index.html uses too. Each page adds its own styles in its <style> block. */

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
}
[hidden] {
    display: none !important;  /* hidden always wins over a layout's display */
}
body {
    color: var(--text);
    font: 16px/1.5 "Crimson Pro", Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

/* Text-only buttons: Back, Oldest first. They look like the tabs. */
.text-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-soft);
    font: inherit;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}
.text-button:hover {
    color: var(--hover);
}

/* Text pages (Professional, Paragliding): each section has a small label on the
   left and its content on the right, 1/4 and 3/4 like the photography detail view.
   On phones and narrow windows the label sits above the content. */
.page {
    padding: 0 var(--gutter);
}
.row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: clamp(24px, 3vw, 56px);
    padding: clamp(36px, 5vw, 72px) 0;
    border-top: 1px solid var(--rule);
}
.row:first-child {
    padding-top: clamp(8px, 2vw, 24px);
    border-top: 0;
}
.label {
    position: sticky;  /* stays in view while a long section scrolls past */
    top: 24px;
    align-self: start;
    margin: 0;
    padding-top: 0.45em;
    color: var(--text-faint);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}
.body {
    min-width: 0;
    max-width: 50rem;
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.65;
}
.body p {
    margin: 0 0 1em;
}
.body > :last-child {
    margin-bottom: 0;
}
.page a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.page a:hover {
    color: var(--hover);
    text-decoration-color: currentColor;
}
@media (max-width: 900px) {
    .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .label {
        position: static;
        padding-top: 0;
    }
}

footer {
    padding: 28px 16px 36px;
    color: var(--text-faint);
    font-size: 0.95rem;
    text-align: center;
}
