/*
Theme Name: Devon Akmon
Theme URI: https://devonakmon.com
Description: Custom standalone theme for devonakmon.com
Author: Devon Akmon
Version: 4.1.0
*/

/* ============================================================
   RESET & BASE
   ============================================================ */

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

:root {
    --accent: #9B1230;
    --dark: #1a1a1a;
    --mid: #555;
    --border: #e0e0e0;
    --border-light: #ebebeb;
    --font: Georgia, "Times New Roman", Times, serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: normal;
    line-height: 1.2;
}

p { margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.5rem 1.75rem; }
li { margin-bottom: 0.4rem; }

/* ============================================================
   LAYOUT
   ============================================================ */

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.site-container--narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--accent); color: #fff;
    padding: 8px 16px; z-index: 9999; font-size: 13px; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   NAVIGATION
   Nav uses same max-width and padding as .site-container
   so name and links align with page content below
   ============================================================ */

.site-header {
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky; top: 0; z-index: 100;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    position: relative;
}

.site-nav__name {
    font-family: var(--font);
    font-size: 15px;
    font-weight: normal;
    color: var(--dark);
}

.site-nav__links { display: flex; gap: 1.75rem; list-style: none; }

.site-nav__links a {
    font-family: var(--font);
    font-size: 12px; color: #888;
    text-transform: uppercase; letter-spacing: 0.09em;
    transition: color 0.15s; padding: 4px 0; display: block;
}

.site-nav__links a:hover,
.site-nav__links a.current { color: var(--accent); }

.nav-toggle {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; flex-direction: column;
    gap: 5px; min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--dark); }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

.hero-rule { width: 36px; height: 3px; background: var(--accent); margin-bottom: 1.25rem; }

.btn {
    display: inline-flex; align-items: center;
    font-family: var(--font); font-size: 11px;
    padding: 10px 22px; text-transform: uppercase;
    letter-spacing: 0.1em; cursor: pointer;
    transition: all 0.15s; border: 1px solid transparent; min-height: 44px;
}
.btn--outline { color: var(--dark); border-color: var(--dark); background: transparent; }
.btn--outline:hover { background: var(--dark); color: #fff; }
.btn--accent { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #7a0e25; border-color: #7a0e25; }

.section-label {
    font-family: var(--font);
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--dark);
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-label a { color: var(--accent); font-size: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.section-label a:hover { color: var(--dark); }

/* ============================================================
   INTERIOR PAGE HEADER
   Single border only — comes from the archive list, not the header
   ============================================================ */

.da-page-header {
    padding: 2.5rem 0 1rem;
    margin-bottom: 1.25rem;
}

.da-page-subtitle {
    display: none;
}

.da-page-title {
    font-family: var(--font);
    font-size: 44px; font-weight: normal; color: var(--dark);
    line-height: 1.1; letter-spacing: -0.02em; margin: 0;
}

.da-page-subtitle {
    font-family: var(--font);
    font-size: 17px; color: var(--mid);
    font-style: italic; line-height: 1.6; margin-top: 0.75rem;
}

/* ============================================================
   HOMEPAGE: HERO
   ============================================================ */

.hero-image { width: 100%; height: 520px; overflow: hidden; background: #1c2b38; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.hero-text {
    padding: 2.75rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}

.hero-name {
    font-family: var(--font);
    font-size: 80px; font-weight: normal; color: var(--dark);
    line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}

.hero-tagline {
    font-family: var(--font);
    font-size: 18px; color: var(--mid); line-height: 1.8;
    margin-bottom: 2rem; max-width: 720px;
}

/* ============================================================
   HOMEPAGE: FEED COLUMNS
   ============================================================ */

.feed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 4rem; }
.feed-col { padding-right: 3rem; }
.feed-col:last-child { padding-right: 0; padding-left: 3rem; border-left: 1px solid var(--border); }

.feed-item { padding: 0.875rem 0; border-bottom: 1px solid var(--border-light); }
.feed-item:last-of-type { border-bottom: none; }

.feed-title {
    font-family: var(--font);
    font-size: 15px; color: var(--dark); line-height: 1.5;
    display: block; margin-bottom: 4px; transition: color 0.15s;
}
.feed-title:hover { color: var(--accent); }
.feed-date { font-family: var(--font); font-size: 11px; color: #aaa; font-style: italic; }

.col-more {
    display: inline-flex; align-items: center; margin-top: 1.25rem;
    font-family: var(--font); font-size: 11px; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.08em;
    transition: color 0.15s; min-height: 44px;
}
.col-more:hover { color: var(--dark); }

/* ============================================================
   HOMEPAGE: PHOTO STRIP
   ============================================================ */

.photo-strip-section { margin-bottom: 4rem; }
.photo-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.photo-strip__item { aspect-ratio: 4/3; overflow: hidden; background: #f0eeeb; display: block; }
.photo-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.photo-strip__item:hover img { transform: scale(1.03); }

/* ============================================================
   HOMEPAGE: ADVENTURES GRID
   ============================================================ */

.adventures-section { margin-bottom: 4rem; }
.adventures-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.adv-item__thumb { display: block; width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #f0eeeb; margin-bottom: 0.75rem; }
.adv-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.adv-item__thumb:hover img { transform: scale(1.03); }

.adv-item__title {
    font-family: var(--font);
    font-size: 14px; font-weight: normal; color: var(--dark);
    line-height: 1.45; display: block; margin-bottom: 4px; transition: color 0.15s;
}
.adv-item__title:hover { color: var(--accent); }
.adv-item__date { font-family: var(--font); font-size: 11px; color: #aaa; font-style: italic; }

/* ============================================================
   HOMEPAGE: CTA STRIP
   ============================================================ */

.cta-strip {
    background: var(--dark); padding: 2.25rem 4rem;
    display: flex; justify-content: space-between;
    align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cta-strip__text { font-family: var(--font); font-size: 18px; font-weight: normal; color: #fff; }
.cta-strip__sub { font-family: var(--font); font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 4px; font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { border-top: 2px solid var(--dark); padding: 1.75rem 0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer__name { font-family: var(--font); font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer__links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-footer__links a {
    font-family: var(--font); font-size: 11px; color: #aaa;
    text-transform: uppercase; letter-spacing: 0.08em;
    transition: color 0.15s; min-height: 44px; display: inline-flex; align-items: center;
}
.site-footer__links a:hover { color: var(--accent); }

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */

.da-post-archive { padding-bottom: 4rem; }

.da-archive-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.da-archive-item:first-child { border-top: 1px solid var(--border); }
.da-archive-item.no-thumb { grid-template-columns: 1fr; }

.da-archive-thumb { display: block; width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #f0eeeb; }
.da-archive-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.da-archive-thumb:hover img { transform: scale(1.03); }

.da-archive-body { display: flex; flex-direction: column; gap: 0.75rem; }

.da-archive-date { font-family: var(--font); font-size: 11px; color: #aaa; font-style: italic; }

.da-archive-title { font-family: var(--font); font-size: 24px; font-weight: normal; line-height: 1.3; color: var(--dark); margin: 0; }
.da-archive-title a { color: var(--dark); transition: color 0.15s; }
.da-archive-title a:hover { color: var(--accent); }

.da-archive-excerpt { font-family: var(--font); font-size: 15px; color: var(--mid); line-height: 1.7; }

.da-btn {
    display: inline-flex; align-items: center;
    font-family: var(--font); font-size: 11px;
    color: var(--dark); padding: 9px 22px;
    border: 1px solid var(--dark); background: transparent;
    text-transform: uppercase; letter-spacing: 0.1em;
    transition: all 0.15s; width: fit-content;
}
.da-btn:hover { background: var(--dark); color: #fff; }

.da-pagination { padding: 2.5rem 0; }
.da-pagination .nav-links { display: flex; gap: 0.5rem; align-items: center; }
.da-pagination .page-numbers { font-family: var(--font); font-size: 13px; color: var(--mid); padding: 6px 12px; border: 1px solid var(--border); }
.da-pagination .page-numbers.current,
.da-pagination .page-numbers:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

.da-no-posts { font-family: var(--font); font-size: 16px; color: var(--mid); padding: 3rem 0; font-style: italic; }

/* ============================================================
   SINGLE POSTS
   ============================================================ */

.da-single { padding-bottom: 4rem; }
.da-single-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.da-single-date { font-family: var(--font); font-size: 11px; color: #aaa; font-style: italic; display: block; margin-bottom: 0.875rem; }
.da-single-title { font-family: var(--font); font-size: 46px; font-weight: normal; line-height: 1.1; letter-spacing: -0.02em; color: var(--dark); margin: 0; }

.da-single-thumb { width: 100%; margin-bottom: 2.5rem; overflow: hidden; }
.da-single-thumb img { width: 100%; height: auto; }

.da-single-content { font-family: var(--font); font-size: 17px; line-height: 1.8; color: var(--dark); padding-bottom: 3rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.da-single-content p { margin-bottom: 1.5rem; }
.da-single-content p:last-child { margin-bottom: 0; }
.da-single-content h2 { font-size: 24px; font-weight: normal; margin: 2.5rem 0 0.875rem; }
.da-single-content h3 { font-size: 20px; font-weight: normal; margin: 2rem 0 0.75rem; }
.da-single-content a { color: var(--accent); border-bottom: 1px solid rgba(155,18,48,0.3); }
.da-single-content a:hover { border-bottom-color: var(--accent); }
.da-single-content blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1.75rem; margin: 2rem 0; font-size: 19px; color: var(--mid); font-style: italic; }
.da-single-content img { max-width: 100%; margin: 2rem 0; }

.da-single-nav { display: flex; justify-content: space-between; gap: 2rem; }
.da-post-nav { display: flex; flex-direction: column; gap: 4px; max-width: 45%; }
.da-post-nav--next { text-align: right; margin-left: auto; }
.da-nav-label { font-family: var(--font); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-style: italic; }
.da-nav-title { font-family: var(--font); font-size: 14px; color: var(--dark); line-height: 1.4; transition: color 0.15s; }
.da-post-nav:hover .da-nav-title { color: var(--accent); }

/* ============================================================
   STATIC PAGES
   ============================================================ */

.da-page { padding-bottom: 4rem; }
.da-page-thumb { width: 100%; margin-bottom: 2.5rem; overflow: hidden; }
.da-page-thumb img { width: 100%; height: auto; }

.da-page-content {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
}
.da-page-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.da-page-content img {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.da-page-content h2 {
    font-size: 26px;
    font-weight: normal;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.da-page-content h2:first-child { margin-top: 0; }
.da-page-content h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0.25rem 0 0;
}
.da-page-content hr { display: none; }
.da-page-content a { color: var(--accent); border-bottom: 1px solid rgba(155,18,48,0.3); }
.da-page-content a:hover { border-bottom-color: var(--accent); }
.da-page-content ul,
.da-page-content ol { margin: 0.25rem 0 0.75rem 1.75rem; }
.da-page-content li { margin-bottom: 0.35rem; line-height: 1.65; }
.da-page-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.75rem;
    margin: 2rem 0;
    font-size: 19px;
    color: var(--mid);
    font-style: italic;
}

/* Resume page — tight paragraph spacing between institution, title, and dates */
.page-id-87 .da-page-content p { margin-bottom: 0.25rem; }
.page-id-87 .da-page-content ul { margin-top: 0.25rem; margin-bottom: 0.75rem; }
.page-id-87 .da-page-content h2 { margin-top: 2rem; }

/* ============================================================
   PHOTOGRAPHY PAGE
   ============================================================ */

.photo-feed { display: flex; flex-direction: column; gap: 3.5rem; padding-bottom: 4rem; }
.photo-feed__frame { width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #f0eeeb; margin-bottom: 0.875rem; }
.photo-feed__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-feed__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
.photo-feed__caption-text { font-family: var(--font); font-size: 14px; color: var(--mid); line-height: 1.5; flex: 1; font-style: italic; }
.photo-feed__location { font-family: var(--font); font-size: 11px; color: #aaa; white-space: nowrap; letter-spacing: 0.04em; flex-shrink: 0; }

/* ============================================================
   RESPONSIVE — TABLET (max 1000px)
   ============================================================ */

@media (max-width: 1000px) {
    .site-container, .site-container--narrow { padding: 0 3rem; }
    .site-nav { padding: 1.1rem 3rem; }
    .hero-name { font-size: 60px; }
    .hero-image { height: 420px; }
    .adventures-grid { grid-template-columns: repeat(2, 1fr); }
    .da-page-title { font-size: 36px; }
    .da-single-title { font-size: 36px; }
    .cta-strip { padding: 2rem 3rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 680px)
   ============================================================ */

@media (max-width: 680px) {
    .site-container, .site-container--narrow { padding: 0 1.5rem; }
    .site-nav { padding: 1.1rem 1.5rem; }

    .site-nav__links {
        display: none; position: absolute;
        top: calc(100% + 1px); left: -4rem; right: -4rem;
        background: #fff; border-bottom: 2px solid var(--dark);
        flex-direction: column; gap: 0; padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .site-nav__links.open { display: flex; }
    .site-nav__links li { border-bottom: 1px solid var(--border-light); }
    .site-nav__links li:last-child { border-bottom: none; }
    .site-nav__links a { padding: 0.9rem 1.5rem; font-size: 13px; color: var(--dark); }
    .nav-toggle { display: flex; }

    .hero-image { height: 240px; }
    .hero-name { font-size: 38px; }
    .hero-tagline { font-size: 16px; }
    .hero-text { padding: 1.75rem 0 2rem; margin-bottom: 2.5rem; }

    .feed-cols { grid-template-columns: 1fr; }
    .feed-col { padding-right: 0; }
    .feed-col:last-child { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }

    .photo-strip { grid-template-columns: 1fr 1fr; }
    .photo-strip__item:last-child { display: none; }
    .adventures-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .cta-strip { flex-direction: column; align-items: flex-start; padding: 1.75rem 1.5rem; }

    .da-page-title { font-size: 28px; }
    .da-single-title { font-size: 26px; }
    .da-archive-item { grid-template-columns: 1fr; gap: 1rem; }
    .da-archive-thumb { aspect-ratio: 16/9; }
    .da-archive-title { font-size: 20px; }
    .da-single-nav { flex-direction: column; gap: 1.5rem; }
    .da-post-nav, .da-post-nav--next { max-width: 100%; text-align: left; margin-left: 0; }
    .photo-feed__caption { flex-direction: column; gap: 0.25rem; }
    .photo-feed__location { align-self: flex-end; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
