/* ============================================
   KEITH NEWSOME — style.css
   ============================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    --bg:        #fafaf8;
    --text:      #1a1a1a;
    --muted:     #6b6b6b;
    --accent:    #2c5fff;
    --border:    #e2e2dc;
    --max-width: 660px;
    --font:      'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

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

/* --- BASE --- */
body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- SITE WRAPPER --- */
.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 0 0;
}

.nav-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 5px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

nav a:hover {
    color: var(--text);
    border-color: var(--text);
    background-color: white;
}

/* --- MAIN --- */
main {
    padding: 48px 0 120px;
}

/* --- COLOURED PILLS --- */
.placeholder {
    background: linear-gradient(135deg, #c8d8ff, #99b3ff);
    width: 100%;
    max-width: 520px;
    height: 68px;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    display: block;
}

.placeholder-peach {
    background: linear-gradient(135deg, #ffd5c8, #ffaa8f);
    width: 100%;
    max-width: 520px;
    height: 68px;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    display: block;
}

.placeholder-orange {
    background: linear-gradient(135deg, #ffe0b2, #ff9800);
    width: 100%;
    max-width: 520px;
    height: 68px;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    display: block;
}

.placeholder-green {
    background: linear-gradient(135deg, #c8f5d5, #5cb87a);
    width: 100%;
    max-width: 520px;
    height: 68px;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    display: block;
}

/* --- HOMEPAGE INTRO --- */
.intro {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    margin-top: 24px;
}

.intro-headshot-wrapper {
    flex-shrink: 0;
}

.intro-headshot {
    width: 180px;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    display: block;
    background: var(--border);
}

.intro-right {
    display: flex;
    flex-direction: column;
}

.intro-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.intro-bio {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

p {
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 300;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* --- PAGE SUBTITLE --- */
.page-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 8px;
    font-weight: 300;
}

/* --- PROJECT CARDS --- */
.project-list {
    display: flex;
    flex-direction: column;
}

.card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.card:first-child {
    border-top: 1px solid var(--border);
}

.card:hover {
    opacity: 0.55;
}

.card h2 {
    color: var(--text);
    margin-bottom: 4px;
}

.card p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 10px;
    display: block;
    letter-spacing: 0.04em;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.card-status.ready {
    background: #eef2ff;
    color: #2c5fff;
    border: 1px solid #c7d4ff;
}

.card-status.coming-soon {
    background: #f5f5f2;
    color: var(--muted);
    border: 1px solid var(--border);
}

.card--muted {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* --- ABOUT PAGE --- */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.about-label {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    text-transform: none;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.about-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.about-item-sub {
    font-size: 0.82rem;
    color: var(--muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.about-item-desc {
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 300;
    margin-top: 2px;
    margin-bottom: 0;
    max-width: 520px;
}

.cert-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.cert-link:hover {
    color: var(--accent);
}

/* --- HOBBY PHOTOS --- */
.hobby-photo {
    width: 100%;
    max-width: 520px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 12px;
    display: block;
    background: var(--border);
}

/* --- SKILLS --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 400;
    background: white;
}

/* --- CONTACT --- */
.contact-links {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
}

.contact-links a {
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.contact-links a:first-child {
    border-top: 1px solid var(--border);
}

.contact-links a:hover {
    color: var(--accent);
}

.contact-links a::after {
    content: '↗';
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-links a span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

/* --- BACK LINK --- */
.back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
    opacity: 1;
}

/* --- NEWSLETTER TABS --- */
.newsletter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

.tab-btn.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

.newsletter-frame {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-frame iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

.newsletter-frame.hidden {
    display: none;
}

/* --- MASONRY PHOTO GRID --- */
.masonry-grid {
    columns: 2;
    column-gap: 16px;
    margin-top: 8px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.photo-item img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.photo-item img:hover {
    opacity: 0.85;
}

.photo-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 2px 0;
    margin-bottom: 4px;
}

.photo-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.photo-location {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    h1 { font-size: 1.6rem; }
    .nav-links { gap: 6px; }
    nav a { padding: 4px 10px; font-size: 0.78rem; }
    .intro { flex-direction: column; gap: 20px; }
    .intro-headshot { width: 100%; height: 160px; }
    .masonry-grid { columns: 1; }
}
.placeholder-purple {
    background: linear-gradient(135deg, #e8d5ff, #c084fc);
    width: 100%;
    max-width: 520px;
    height: 68px;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    display: block;
}