/*
Theme Name: Young Adults With Cancer
Theme URI: https://yawc.org
Author: Mark Williams
Description: Recreated from the original yawc.org website. Cancer support, encouragement, and resources.
Version: 2.0
Text Domain: yawc
*/

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

/* ── VARIABLES ── */
:root {
    --blue:        #2a6496;
    --blue-dark:   #1a4a70;
    --gold:        #c8860a;
    --gold-light:  #e8a020;
    --bg:          #f4efe9;
    --white:       #ffffff;
    --text:        #222222;
    --muted:       #666666;
    --border:      #d8cfc4;
    --max:         960px;
    --font-body:   Georgia, 'Times New Roman', serif;
    --font-ui:     'Trebuchet MS', Verdana, Arial, sans-serif;
}

/* ── BASE ── */
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--blue); }
a:hover { color: var(--gold); }

/* ── WRAPPER ── */
#page-wrapper {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

/* ── HEADER ── */
#site-header {
    background: var(--blue-dark);
    border-bottom: 3px solid var(--gold-light);
    line-height: 0;
}
#site-header a { display: block; line-height: 0; }
#site-header img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 135px;
    object-fit: cover;
    object-position: left center;
}

/* ── NAV ── */
#nav-bar {
    background: var(--blue);
    border-bottom: 3px solid var(--gold-light);
}
#nav-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
#nav-bar ul li a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.18s, color 0.18s;
}
#nav-bar ul li a:hover,
#nav-bar ul li a.active {
    background: var(--blue-dark);
    color: #ffd97a;
}

/* ── CONTENT ── */
#content-area {
    padding: 28px 32px 40px;
}

h1 {
    font-family: var(--font-body);
    font-size: 1.6rem;
    color: var(--blue);
    border-bottom: 2px solid var(--gold-light);
    padding-bottom: 7px;
    margin-bottom: 20px;
}
h2 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--blue-dark);
    margin: 24px 0 10px;
}
h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--blue);
    margin: 18px 0 8px;
}
p { margin-bottom: 14px; }

/* ── HOME PAGE ── */
.home-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.home-photo img {
    width: 240px;
    height: auto;
    border: 3px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: block;
}
.home-photo-placeholder {
    width: 240px;
    min-height: 190px;
    background: #dce8f0;
    border: 3px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blue);
    font-size: 0.82rem;
    padding: 16px;
    font-family: var(--font-ui);
}
.home-text { flex: 1; }

.questions-box {
    background: #f0f6fb;
    border-left: 4px solid var(--blue);
    padding: 14px 18px;
    margin: 12px 0 16px;
    font-style: italic;
    line-height: 2;
}

/* ── RESOURCES PAGE ── */
.resource-section { margin-bottom: 28px; }
.resource-section h2 {
    background: var(--blue);
    color: #fff;
    padding: 7px 14px;
    border-radius: 3px 3px 0 0;
    margin: 0;
    font-size: 1rem;
}
.resource-body {
    border: 1px solid var(--border);
    border-top: none;
    padding: 14px 18px;
    border-radius: 0 0 3px 3px;
}

/* ── VIDEOS PAGE ── */
.video-index { margin-bottom: 20px; }
.video-index a {
    display: block;
    padding: 3px 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}
.video-item { margin-bottom: 30px; }
.video-item h3 { margin-bottom: 10px; }
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 3px;
}
.video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── MUSIC PAGE ── */
.music-list { margin-top: 16px; }
.music-list a {
    display: block;
    padding: 6px 0;
    font-family: var(--font-ui);
    border-bottom: 1px dotted var(--border);
    text-decoration: none;
    color: var(--blue);
}
.music-list a:hover { color: var(--gold); text-decoration: underline; }
.music-section-note {
    background: #f9f6f0;
    border-left: 4px solid var(--gold-light);
    padding: 12px 16px;
    margin: 20px 0 10px;
    font-style: italic;
    font-size: 0.93rem;
}

/* ── OBITUARY PAGE ── */
.obit-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.obit-photo img {
    width: 220px;
    height: auto;
    border: 3px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.obit-text { flex: 1; }
.about-me-box {
    background: #f0f6fb;
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    padding: 16px 20px;
    margin-top: 24px;
    border-radius: 0 0 3px 3px;
}
.about-me-box p { margin-bottom: 0; }

/* ── CONTACT FORM ── */
.contact-form { max-width: 540px; }
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 4px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(42,100,150,0.12);
}
.form-row textarea { height: 120px; resize: vertical; }
.form-submit input[type="submit"] {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 9px 26px;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.form-submit input[type="submit"]:hover { background: var(--blue-dark); }
.form-success { color: #2a7a2a; font-weight: bold; margin-bottom: 14px; }
.form-error   { color: #a00;    font-weight: bold; margin-bottom: 14px; }

/* ── ARTICLES ── */
.article-list .post { padding: 18px 0; border-bottom: 1px solid var(--border); }
.article-list .post:last-child { border-bottom: none; }
.article-list .post h2 { margin: 0 0 5px; font-size: 1.1rem; }
.article-list .post h2 a { text-decoration: none; }
.article-list .post h2 a:hover { text-decoration: underline; }
.post-meta { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.read-more {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 14px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 3px;
}
.read-more:hover { background: var(--blue-dark); color: #fff; }

/* Single post */
.entry-content p { margin-bottom: 14px; }
.back-link { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-ui); font-size: 0.88rem; }

/* ── FOOTER ── */
#site-footer {
    background: #2c2c2c;
    color: #bbb;
    text-align: center;
    padding: 14px 20px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    #content-area { padding: 18px 14px 28px; }
    .home-layout, .obit-layout { flex-direction: column; }
    .home-photo img, .home-photo-placeholder { width: 100%; max-width: 280px; }
    .obit-photo img { width: 100%; max-width: 220px; }
    #nav-bar ul { flex-direction: column; }
    #nav-bar ul li a { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@media print {
    #site-header img { max-height: 80px; }
    #nav-bar, #site-footer { display: none; }
}
