/*
Theme Name: Kevin J. Ness Photo
Theme URI: https://kevinjnessphoto.com/
Author: Brian Ness
Description: A tiny, fast classic WordPress theme for a photography landing page with editable page content and menu-based landing links.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kevin-j-ness-photo
*/

:root {
    --kjn-bg: #f7f5f0;
    --kjn-bg-soft: #ffffff;
    --kjn-card: rgba(255, 255, 255, 0.88);
    --kjn-card-hover: rgba(17, 17, 17, 0.055);
    --kjn-text: #161616;
    --kjn-muted: #6b665f;
    --kjn-line: rgba(17, 17, 17, 0.14);
    --kjn-accent: #000000;
    --kjn-max: 980px;
    --kjn-radius: 18px;
    --kjn-shadow: 0 24px 70px rgba(0, 0, 0, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(0, 0, 0, 0.055), transparent 34rem),
        linear-gradient(135deg, #ffffff 0%, #f7f5f0 48%, #ece8df 100%);
    color: var(--kjn-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.admin-bar {
    min-height: calc(100vh - 32px);
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--kjn-accent);
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #111;
    background: #fff;
    border-radius: 8px;
}

.site-shell {
    width: min(var(--kjn-max), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    padding: 26px 0 16px;
    border-bottom: 1px solid var(--kjn-line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.site-branding img {
    display: block;
    max-width: 168px;
    max-height: 76px;
    object-fit: contain;
}

.site-title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.primary-nav ul,
.footer-nav ul,
.landing-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.primary-nav a,
.footer-nav a {
    color: var(--kjn-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--kjn-text);
}

.landing-main {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(32px, 7vw, 88px) 0;
}

.landing-main .site-shell {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.admin-bar .landing-main {
    min-height: calc(100vh - 32px);
}

.landing-card {
    width: min(760px, calc(100vw - 48px));
    margin: 0 auto;
    padding: clamp(28px, 6vw, 62px);
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
    border: 1px solid var(--kjn-line);
    border-radius: calc(var(--kjn-radius) + 8px);
    box-shadow: var(--kjn-shadow);
    backdrop-filter: blur(10px);
}

.landing-logo {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
}

.landing-logo img {
    display: block;
    max-width: min(360px, 80vw);
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto;
}

.landing-title {
    margin: 0 0 10px;
    font-size: clamp(2.1rem, 7vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.landing-tagline {
    max-width: 46rem;
    margin: 0 auto 28px;
    color: var(--kjn-muted);
    font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.landing-intro {
    max-width: 42rem;
    margin: 0 auto 28px;
    color: var(--kjn-muted);
    font-size: clamp(0.98rem, 2.2vw, 1.08rem);
    line-height: 1.55;
}

.landing-intro p {
    margin: 0;
}

.landing-intro p + p {
    margin-top: 0.35rem;
}

.landing-content {
    max-width: 46rem;
    margin: 0 auto 30px;
    color: var(--kjn-muted);
}

.landing-content:empty {
    display: none;
}

.landing-content > *:first-child {
    margin-top: 0;
}

.landing-content > *:last-child {
    margin-bottom: 0;
}

.landing-nav-wrap {
    margin-top: 30px;
}

.landing-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.landing-links li {
    width: min(310px, 100%);
    margin: 0;
}

.landing-links a,
.wp-block-button__link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 18px;
    color: var(--kjn-text);
    background: var(--kjn-card);
    border: 1px solid var(--kjn-line);
    border-radius: var(--kjn-radius);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.landing-links a:hover,
.landing-links a:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
    transform: translateY(-2px);
    background: var(--kjn-card-hover);
    border-color: rgba(17, 17, 17, 0.26);
}

.landing-note {
    margin: 28px 0 0;
    color: var(--kjn-muted);
    font-size: 0.9rem;
}

.site-main {
    padding: clamp(34px, 6vw, 72px) 0;
}

.page-wrap {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--kjn-line);
    border-radius: var(--kjn-radius);
}

.page-header {
    margin-bottom: 28px;
}

.entry-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.entry-content {
    color: #222222;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    color: #4a4540;
}

.entry-content a {
    color: #111111;
}

.entry-content .wp-block-gallery,
.entry-content .wp-block-image,
.entry-content figure {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content iframe {
    max-width: 100%;
}

.alignwide {
    width: min(1100px, calc(100vw - 40px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.site-footer {
    padding: 28px 0;
    color: var(--kjn-muted);
    border-top: 1px solid var(--kjn-line);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-credit {
    margin: 0;
}

.not-found {
    text-align: center;
}

@media (max-width: 720px) {
    body.admin-bar,
    body.admin-bar .landing-main {
        min-height: calc(100vh - 46px);
    }

    .site-shell {
        width: min(100% - 28px, var(--kjn-max));
    }

    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .primary-nav ul {
        justify-content: center;
    }

    .landing-card {
        padding: 28px 18px;
    }

    .landing-links a,
    .wp-block-button__link {
        min-height: 56px;
    }

    .page-wrap {
        padding: 22px 18px;
    }
}
