
    :root {
        --retro-orange: #E88D67;
        --retro-teal: #7BB0A6;
        --retro-cream: #F4EBD0; /* Aged Paper */
        --retro-navy: #2B465E;
        --retro-gold: #D4A373;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body { 
        background-color: var(--retro-cream); 
        background-image: url('https://www.transparenttextures.com/patterns/p6.png'); /* Paper Texture */
        color: var(--retro-navy);
        font-family: 'Courier Prime', monospace;
        border: 15px solid var(--retro-navy); /* Poster Frame */
        min-height: 100vh;
    }

    /* Top Navigation */
    nav {
        display: flex; justify-content: space-between; align-items: center;
        padding: 20px 5%; border-bottom: 4px double var(--retro-navy);
        background: white;
    }
    .logo-container { display: flex; align-items: flex-start; text-decoration: none; }
    .logo-img { height: 80px; margin-right: 15px; border: 2px solid var(--retro-navy); border-radius: 50%; }
    .logo-text-container { display: flex; flex-direction: column; }
    .logo-text { font-family: 'Abril Fatface', serif; font-size: 2rem; color: var(--retro-orange); }
    .logo-subtext { font-family: 'Courier Prime', monospace; font-size: 0.8rem; color: var(--retro-navy); }

    .nav-links a { 
        margin-left: 25px; text-decoration: none; color: var(--retro-navy); 
        font-weight: 900; text-transform: uppercase; font-family: 'Montserrat', sans-serif; 
        font-size: 0.85rem; transition: 0.3s;
    }
    .nav-links a:hover { color: var(--retro-orange); }

    /* Hero Section */
    .hero {
        height: 50vh;
        background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), 
                    url('/images/hero.png');
        background-size: cover; background-position: center;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        border-bottom: 5px solid var(--retro-navy);
    }
    .hero-banner {
        background: var(--retro-orange); color: white; padding: 10px 40px;
        font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3rem;
        transform: rotate(-2deg); box-shadow: 8px 8px 0px var(--retro-navy);
        text-transform: uppercase;
    }

    /* The Pulse Bar (API Powered) */
    .pulse-bar {
        display: grid; grid-template-columns: repeat(5, 1fr);
        background: var(--retro-navy); color: var(--retro-cream);
        width: 90%; max-width: 1000px; margin: -30px auto 40px;
        padding: 20px; box-shadow: 10px 10px 0px var(--retro-gold);
        z-index: 10; position: relative;
    }
    .pulse-item { text-align: center; border-right: 1px dashed var(--retro-cream); }
    .pulse-item:last-child { border-right: none; }
    .pulse-item span { font-size: 0.7rem; text-transform: uppercase; display: block; opacity: 0.8; }
    .pulse-item strong { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; display: block; }

    .pulse-item #pulse-tide { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis;
        padding: 0 10px;
    }
    /* Content Layout */
    .container { width: 90%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
    
    section { margin-bottom: 50px; }
    .section-title {
        font-family: 'Montserrat', sans-serif; font-size: 1.5rem; text-transform: uppercase;
        background: var(--retro-teal); color: white; padding: 8px 20px;
        display: inline-block; margin-bottom: 25px; transform: skewX(-10deg);
    }

    /* News Cards */
    .news-card { display: flex; gap: 25px; margin-bottom: 35px; text-decoration: none; color: inherit; }
    .news-card:hover img { transform: scale(1.03); }
    .news-card img { 
        width: 220px; height: 150px; object-fit: cover; 
        border: 5px solid var(--retro-navy); filter: sepia(0.2); transition: 0.3s;
    }
    .news-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; margin-bottom: 10px; color: var(--retro-navy); }

    /* Sidebar Widgets */
    .widget { background: white; border: 3px solid var(--retro-navy); padding: 20px; margin-bottom: 30px; box-shadow: 5px 5px 0px var(--retro-gold); }
    .widget h4 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; margin-bottom: 15px; border-bottom: 2px solid var(--retro-orange); }

    /* Footer */
    footer { background: var(--retro-navy); color: var(--retro-cream); color: var(--retro-cream); padding: 60px 5% 30px; margin-top: 60px; }
    .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
    .footer-col h5 { font-family: 'Montserrat', sans-serif; color: var(--retro-orange); margin-bottom: 20px; text-transform: uppercase; }
    .footer-col a { color: var(--retro-cream); text-decoration: none; font-size: 0.85rem; display: block; margin-bottom: 10px; }
    .privacy a { color: var(--retro-cream); text-decoration: none; font-size: 0.7rem; display: block; margin-bottom: 10px; }

    /* Responsive tweaks */
    @media (max-width: 1024px) {
        .container { grid-template-columns: 1fr; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 900px) {
        .pulse-bar { grid-template-columns: 1fr 1fr; gap: 16px; width: 94%; }
        .news-card { flex-direction: column; }
        .news-card img { width: 100%; height: 220px; }
        .nav-links a { margin-left: 16px; font-size: 0.8rem; }
    }

    @media (max-width: 640px) {
        .hero { height: 38vh; }
        .hero-banner { font-size: 2rem; padding: 8px 20px; box-shadow: 6px 6px 0px var(--retro-navy); }
        nav { flex-wrap: wrap; row-gap: 8px; }
        .logo-img { height: 48px; }
        .logo-text { font-size: 1.6rem; }
        .nav-links { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
        .nav-links a { margin-left: 0; font-size: 0.78rem; }
        .pulse-bar { grid-template-columns: 1fr; gap: 12px; width: 95%; padding: 16px; }
        .pulse-item { border-right: none; border-bottom: 1px dashed var(--retro-cream); padding-bottom: 8px; }
        .pulse-item:last-child { border-bottom: none; }
        .pulse-item strong { font-size: 1.2rem; }
        .section-title { font-size: 1.1rem; margin-bottom: 16px; }
        section { margin-bottom: 32px; }
        .widget iframe { width: 100% !important; height: 260px !important; }
        .news-card img { height: 180px; }
    }

    /* Utility: fluid iframes/images in widgets */
    .widget iframe, .widget img { max-width: 100%; height: auto; display: block; }

.footer-grid {
    color: var(--retro-cream);
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 12px; /* Breathing room */
}

.footer-socials a {
    /* Step 1: Default state is HIGH contrast (cream/white) */
    color: var(--retro-cream); 
    font-size: 1.4rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    line-height: 1; /* Prevents alignment issues */
    
    /* Optional: Center the icon if using a circular background */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 3: Add a structured border for the 'stamp' look */
.footer-socials i {
    padding: 10px;
    border-radius: 50%; /* Perfect circle */
    border: 1px solid rgba(244, 235, 208, 0.3); /* Subtle cream border */
    background: rgba(255, 255, 255, 0.03); /* Extremely faint fill */
}

/* Step 2: HOVER to a bright color (orange) */
.footer-socials a:hover {
    color: white; /* Make the icon itself pop */
    transform: translateY(-3px); /* Classic micro-interaction */
}

.footer-socials a:hover i {
    border-color: var(--retro-orange);
    background: var(--retro-orange);
    box-shadow: 0 4px 10px rgba(232, 141, 103, 0.3); /* Soft orange glow */
}

/* Desktop Subscribe Button */
.nav-subscribe {
    background: var(--retro-orange);
    color: white !important; /* Force visibility */
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 2px solid var(--retro-navy);
    box-shadow: 3px 3px 0px var(--retro-navy);
    transition: 0.1s;
    margin-left: 15px;
    white-space: nowrap; /* Ensures "Get Updates" stays on one line */
    flex-shrink: 0
}

.nav-subscribe:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--retro-navy);
}

/* Mobile Visibility Logic */
.mobile-nav-group {
    display: none; /* Hidden on desktop */
}

.mobile-only-sub {
    background: var(--retro-orange);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 2px solid var(--retro-navy);
    margin-right: 10px;
}

/* Mobile Link in Overlay */
.mobile-sub-link {
    color: var(--retro-orange) !important;
    font-weight: 900;
}

@media (max-width: 850px) {
    .nav-links { display: none; }
    .mobile-nav-group { 
        display: flex; 
        align-items: center; 
    }
    .logo-subtext {
        display: none; /* Hiding the subtext early saves a TON of space */
    }
}

/* Tide Schedule Styles */
.tide-schedule {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border: 3px solid var(--retro-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tide-header {
    background: var(--retro-navy);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tide-header h3 {
    font-family: 'Abril Fatface', serif;
    font-size: 1.5rem;
    margin: 0;
}

.tide-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.legend-item {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.legend-item.high {
    background: var(--retro-orange);
    color: white;
}

.legend-item.low {
    background: var(--retro-teal);
    color: white;
}

.tide-list {
    max-height: 600px;
    overflow-y: auto;
}

.tide-day {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    transition: background-color 0.2s;
}

.tide-day:last-child {
    border-bottom: none;
}

.tide-day:hover {
    background-color: #f8f9fa;
}

.tide-day.today {
    background-color: var(--retro-cream);
    border-left: 4px solid var(--retro-orange);
}

.tide-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: var(--retro-navy);
}

.date-text {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.today-badge {
    background: var(--retro-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tide-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tide-event {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.tide-event.high {
    background: rgba(232, 141, 103, 0.1);
    border-left-color: var(--retro-orange);
}

.tide-event.low {
    background: rgba(123, 176, 166, 0.1);
    border-left-color: var(--retro-teal);
}

.tide-time {
    font-weight: bold;
    min-width: 70px;
    font-family: 'Courier Prime', monospace;
}

.tide-type {
    flex: 1;
    font-weight: 600;
}

.tide-height {
    font-size: 0.9rem;
    opacity: 0.8;
    min-width: 40px;
    text-align: right;
}

.tide-loading, .tide-error {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--retro-navy);
}

.tide-error {
    color: #d32f2f;
    background: #ffebee;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tide-schedule {
        margin: 1rem;
        border-width: 2px;
    }
    
    .tide-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tide-header h3 {
        font-size: 1.2rem;
    }
    
    .tide-legend {
        gap: 0.5rem;
    }
    
    .tide-day {
        padding: 0.75rem 1rem;
    }
    
    .tide-event {
        gap: 0.75rem;
        padding: 0.4rem;
    }
    
    .tide-time {
        min-width: 65px;
        font-size: 0.9rem;
    }
    
    .tide-type {
        font-size: 0.9rem;
    }
    
    .tide-height {
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .date-text {
        font-size: 0.8rem;
    }
    
    .today-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .tide-header {
        padding: 0.75rem;
    }
    
    .tide-header h3 {
        font-size: 1.1rem;
    }
    
    .tide-legend {
        font-size: 0.8rem;
    }
    
    .legend-item {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .tide-day {
        padding: 0.5rem 0.75rem;
    }
    
    .tide-event {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.3rem;
    }
    
    .tide-time {
        min-width: 60px;
        font-size: 0.85rem;
    }
    
    .tide-type {
        flex: 1;
        font-size: 0.85rem;
    }
    
    .tide-height {
        font-size: 0.75rem;
        min-width: 30px;
    }
}