/* birdbird - Shared Site Styles
 * Field Guide Aesthetic
 * @author Claude Sonnet 4.5 Anthropic
 */

:root {
    --parchment-light: #f8f5ed;
    --parchment-base: #f0ebe0;
    --parchment-dark: #e8dcc4;
    --forest-deep: #2d5016;
    --forest-mid: #4a7c2b;
    --olive-green: #6b8e23;
    --sage: #9caf88;
    --bark-brown: #5a4a3a;
    --earth-brown: #6b5744;
    --sky-blue: #7ba3c0;
    --sky-light: #a8c5d9;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --cream-white: #fffef8;
    --shadow-soft: rgba(107, 87, 68, 0.12);
    --shadow-medium: rgba(107, 87, 68, 0.18);
}

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

body {
    font-family: 'Lato', -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--parchment-light) 0%, var(--parchment-base) 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: var(--text-primary);
    position: relative;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 115, 85, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 142, 35, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--cream-white);
    border-radius: 2px;
    box-shadow:
        0 2px 4px var(--shadow-soft),
        0 8px 24px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--parchment-dark);
}

/* Decorative corner elements */
.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--parchment-dark);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.container::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.container::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

header {
    background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-mid) 100%);
    color: var(--cream-white);
    padding: 30px 40px 25px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--olive-green);
    box-shadow: 0 2px 8px var(--shadow-soft);
}

h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-family: 'Lato', sans-serif;
    opacity: 0.95;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--forest-mid);
    color: var(--cream-white);
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    font-weight: 500;
    border: 2px solid var(--forest-deep);
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.back-link:hover {
    background: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
    text-decoration: none;
}

.back-link:focus {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
}

.back-link:focus:not(:focus-visible) {
    outline: none;
}

.back-link:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
}

.breadcrumb {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin: -10px 0 12px 0;
}

.breadcrumb a {
    color: var(--forest-mid);
    text-decoration: none;
    border-bottom: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--forest-deep);
    border-bottom: 1px solid var(--forest-deep);
}

.breadcrumb .separator {
    margin: 0 6px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-primary);
}

h2 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
    font-size: 1.5em;
    font-weight: 700;
    border-bottom: 2px solid var(--parchment-dark);
    padding-bottom: 8px;
}

h2:first-of-type {
    margin-top: 0;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--forest-mid);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px dotted var(--forest-mid);
}

a:hover {
    color: var(--forest-deep);
    border-bottom-style: solid;
}

a:focus {
    outline: 2px solid var(--sky-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

footer {
    text-align: center;
    padding: 40px 30px;
    color: var(--text-secondary);
    font-size: 0.9em;
    background: var(--parchment-light);
    border-top: 2px solid var(--parchment-dark);
}

footer a {
    color: var(--forest-mid);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px dotted var(--forest-mid);
}

footer a:hover {
    color: var(--forest-deep);
    border-bottom-style: solid;
}

footer a:focus {
    outline: 2px solid var(--sky-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

footer a:focus:not(:focus-visible) {
    outline: none;
}

footer a:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Screen-reader-only text */
.visually-hidden {
    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 - hidden until focused */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--forest-deep);
    color: var(--cream-white);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
    border-radius: 0 0 2px 0;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
    border-bottom: none;
}

.skip-link:hover {
    color: var(--cream-white);
    border-bottom: none;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
}

/* Container width modifiers */
.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 1.1em;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.error {
    text-align: center;
    padding: 80px 20px;
    color: #b85450;
    font-size: 1.1em;
    background: rgba(184, 84, 80, 0.06);
    border: 2px solid rgba(184, 84, 80, 0.2);
    border-radius: 2px;
    margin: 20px;
}

/* Info callout box */
.info-callout {
    background: var(--parchment-light);
    padding: 18px 22px;
    border-radius: 2px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
    border-left: 4px solid var(--sky-blue);
    font-family: 'Lato', sans-serif;
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .content {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.3em;
    }
}
