/* © 2026 Steve Noll. All rights reserved. */
/* =========================================================================
   pages.css — shared styling for the standalone content pages
   (About, Portfolio, Blog, Contact). Light, modern, gallery-matched.
   No JavaScript is used on these pages; the nav is pure CSS.
   ========================================================================= */

:root {
    --paper: #faf9f7;
    --card: #ffffff;
    --ink: #1d1d1d;
    --muted: #6a6a6a;
    --line: #e7e5e0;
    --accent: #3d5a80;
    --accent-dark: #2f4763;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --maxw: 880px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    z-index: 100;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateX(-50%) translateY(0);
}

/* Visually hidden but available to screen readers (e.g. "opens in new tab"). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Header / nav */
.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(250, 249, 247, 0.9);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand {
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--ink);
    font-size: 1.05rem;
}

.brand span {
    color: var(--accent);
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: #efedea;
    color: var(--ink);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
    background: #eceae6;
}

.site-nav a:focus-visible,
.brand:focus-visible,
.gallery-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Layout */
main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.page-hero {
    margin-bottom: 2.5rem;
}

.page-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    color: var(--accent);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.page-hero .lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 60ch;
    margin: 0;
}

/* About page: a small, friendly portrait sitting beside the intro. Wraps to
   stack above the text on narrow screens. */
.about-hero {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

/* Fixed-size wrapper keeps the circle stable. The <img> fills it rather than
   being a flex item itself, which avoids object-fit distorting during live
   window resize (the bitmap only re-fits on a repaint otherwise). */
.about-hero .profile-photo {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.about-hero .profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-hero-text {
    flex: 1 1 320px;
}

section {
    margin-bottom: 2.5rem;
}

/* On the home page a section follows the "explore in 3D" card; give it breathing
   room so its heading isn't flush against that card. (Other pages end with the
   card, so this only affects home.) */
.gallery-cta + section {
    margin-top: 3rem;
}

h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

/* Cards / grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card .tag {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* Thumbnail block for portfolio/blog cards */
.thumb {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, #dfe6ef, #c9d4e2);
}

/* Blog list */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.post-list a {
    text-decoration: none;
    color: inherit;
}

.post-list h2 {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
}

.post-list time {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Blog index list: stacked entries, each a generous tap target. */
.post-list a {
    display: block;
    padding: 0.4rem 0;
}

.post-list a:hover h2 {
    color: var(--accent);
}

.post-list p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

/* ------- Individual blog post (article) pages ------- */
.post-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    /* Vertical padding lifts the hit area clear of the 24px minimum. */
    padding: 0.3rem 0;
    font-size: 0.9rem;
    text-decoration: none;
}

.post-back:hover {
    text-decoration: underline;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 0.6rem;
}

.post-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* The article body. A slightly narrower measure than the page shell keeps lines
   in a comfortable reading range on wide screens. */
.post-body {
    max-width: 68ch;
}

.post-body p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
}

.post-body h2 {
    margin: 2.25rem 0 1rem;
}

.post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.85rem 1.2rem;
    border-radius: 0 10px 10px 0;
    background: var(--card);
    box-shadow: inset 4px 0 0 var(--accent);
    color: var(--ink);
}

.post-body blockquote p {
    margin: 0 0 0.6rem;
    font-style: italic;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

/* A short, emphasized closing line set off from the surrounding prose. */
.post-body .post-kicker {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

/* Authorship note at the foot of each post. Quiet, but clearly set apart. */
.post-note {
    max-width: 68ch;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.post-note strong {
    color: var(--ink);
}

/* Contact */
.contact-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.contact-methods a,
.contact-methods .method-static {
    display: block;
    padding: 1rem 1.1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease, background 0.15s ease;
}

/* Non-interactive placeholder card (e.g. "GitHub, coming soon"): looks like the
   others but isn't a link, so it carries no link role or hover affordance. */
.contact-methods .method-static {
    color: var(--muted);
}

.contact-methods a:hover {
    border-color: var(--accent);
    background: #f4f6f9;
}

.contact-methods .label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.contact-methods .value {
    font-weight: 600;
    word-break: break-word;
}

/* Timeline (about page): a vertical, responsive list of career milestones. A
   single rail (each item's left border) with an accent dot per entry. */
.timeline {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.timeline-item {
    position: relative;
    margin-left: 0.5rem;
    padding: 0 0 1.4rem 1.75rem;
    border-left: 2px solid var(--line);
}

.timeline-item:last-child {
    padding-bottom: 0.25rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.4rem;
    top: 0.2rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--accent);
    /* paper-colored ring so the dot reads as a clean break in the rail */
    box-shadow: 0 0 0 4px var(--paper);
}

.timeline-year {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.timeline-text {
    margin: 0.15rem 0 0;
    color: var(--ink);
}

.note {
    color: var(--muted);
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

/* Attention callout: a tinted, iconed box for notices that must not be missed
   (e.g. the contact reference-code instructions). */
.callout {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin-top: 1.75rem;
    padding: 0.85rem 1.1rem;
    background: #eef3fa;
    border: 1px solid #cfddee;
    border-radius: 10px;
    /* Accent stripe via an inset shadow rather than a thick border-left: a
       mismatched border width renders badly against border-radius in Safari
       (misshapen corners), whereas an inset shadow clips cleanly to the radius. */
    box-shadow: inset 4px 0 0 var(--accent);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.5;
}

.callout svg {
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    margin-top: 0.1rem;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.callout p {
    margin: 0;
}

/* "Back to gallery" call to action */
.gallery-cta {
    margin-top: 3rem;
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
}

.gallery-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.8rem 1.4rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.gallery-link:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    .skip-link,
    a.card,
    .gallery-link {
        transition: none !important;
    }
}
