/* Boat Blogs — stylesheet extracted from index.php. */

/* ============================================
   TOKENS & RESET
   ============================================ */
:root {
    /* Both hues are lifted from the logo: navy 204deg, teal 176deg. */
    --deep: #061621;
    --hull: #0A2334;
    --panel: #0E3049;
    --panelUp: #14405F;
    --mist: #E8F1F4;
    --muted: #9FB6C4;
    --navy: #0A4974;

    /* --teal is the logo's own value; it carries fills. --tealUp is that
       same teal lightened, because #1AAAA1 only reaches 4.75:1 on --panel
       and small text needs more headroom. */
    --teal: #1AAAA1;
    --tealUp: #2FD3C8;

    --edge: rgba(47,211,200,.14);
    --edgeLit: rgba(47,211,200,.5);

    --display: ui-serif, Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --nav-h: 72px;
    --z-menu: 999;
    --z-nav: 1000;
}

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
    background: var(--hull);
    color: var(--mist);
    font-family: var(--sans);
}

img { max-width: 100%; display: block; }
a { -webkit-tap-highlight-color: transparent; }

.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 44px);
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1001;
}
.skip:focus {
    left: 16px;
    top: 16px;
    padding: 12px 18px;
    background: var(--tealUp);
    color: var(--deep);
    border-radius: 100px;
    font: 700 12px/1 var(--sans);
}

:focus-visible {
    outline: 2px solid var(--tealUp);
    outline-offset: 3px;
}

/* ============================================
   SHARED PIECES
   ============================================ */
/* The logo is drawn for a white background, so its navy would sink into
   --deep. On dark surfaces the navy strokes invert to --mist; only the
   teal survives untouched. */
.mark {
    --markInk: var(--mist);
    --markTeal: var(--tealUp);
    width: 32px; height: 32px;
    flex: none;
    display: block;
}
.markLg { width: 44px; height: 44px; }

/* Teal fill inverts to a glowing outline on hover. */
.ctaFill {
    font: 700 11px/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--deep);
    background: var(--teal);
    padding: 11px 20px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(26,170,161,.34);
    transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.ctaFill:hover, .ctaFill:focus-visible {
    background: transparent;
    color: var(--tealUp);
    box-shadow: inset 0 0 0 2px var(--tealUp), 0 0 26px rgba(47,211,200,.42);
    transform: translateY(-2px);
}

.waterline {
    height: 9px;
    background: linear-gradient(90deg, var(--navy), #0d6f86 40%, var(--teal) 68%, var(--tealUp) 88%, #8FF3EA);
    box-shadow: 0 0 24px rgba(47,211,200,.5);
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    background: rgba(6,22,33,.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232,241,244,.08);
    transition: box-shadow .4s ease;
}
.nav.stuck { box-shadow: 0 8px 30px rgba(0,0,0,.5); }

.navInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand .word {
    font: 600 15px/1 var(--sans);
    letter-spacing: .16em;
    color: var(--mist);
    white-space: nowrap;
}

.navLinks {
    display: flex;
    gap: 24px;
    font: 600 11px/1 var(--sans);
    letter-spacing: .13em;
}
.navLinks a {
    color: rgba(232,241,244,.82);
    text-decoration: none;
    transition: color .25s ease;
}
.navLinks a:hover, .navLinks a:focus-visible { color: var(--tealUp); }
.navLinks a[aria-current="page"] { color: var(--tealUp); }

.navActions { display: flex; align-items: center; gap: 16px; }
.navText {
    font: 600 11px/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(232,241,244,.85);
    text-decoration: none;
    transition: color .25s ease;
}
.navText:hover, .navText:focus-visible { color: var(--tealUp); }

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 38px; height: 38px;
    border: 1px solid rgba(232,241,244,.2);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.burger span { width: 16px; height: 2px; background: var(--mist); border-radius: 2px; }

.mobileMenu {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 16px; right: 16px;
    z-index: var(--z-menu);
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(6,22,33,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(232,241,244,.12);
    border-radius: 18px;
}
.mobileMenu.open { display: flex; }
.mobileMenu a {
    padding: 13px 14px;
    font: 600 12px/1 var(--sans);
    letter-spacing: .1em;
    color: rgba(232,241,244,.85);
    text-decoration: none;
    border-radius: 10px;
}
.mobileMenu a[aria-current="page"] { color: var(--tealUp); }
.mobileMenu hr { height: 1px; border: 0; background: rgba(232,241,244,.12); margin: 6px 0; }
.mobileMenu .ctaFill {
    margin: 4px 6px 2px;
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--deep);
}
.mobileMenu .ctaFill:hover, .mobileMenu .ctaFill:focus-visible { color: var(--tealUp); }

/* ============================================
   THE LOG
   ============================================ */
.log {
    padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px));
    padding-bottom: clamp(56px, 8vw, 96px);
}

.sectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}
.eyebrow {
    font: 700 12px/1 var(--sans);
    letter-spacing: .26em;
    color: var(--tealUp);
    margin-bottom: 14px;
}
.sectionHead h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.04;
    letter-spacing: -.01em;
    color: var(--mist);
    text-wrap: balance;
}
.moreLink {
    font: 700 12px/1 var(--sans);
    letter-spacing: .04em;
    color: var(--tealUp);
    text-decoration: none;
    transition: color .25s ease;
}
.moreLink:hover, .moreLink:focus-visible { color: var(--mist); }

.logGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

/* The card carries no fill contrast against the page on purpose: the photo
   is the light source, and the boundary comes from the border and shadow. */
.postCard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.postCard:hover, .postCard:focus-visible {
    transform: translateY(-6px);
    background: var(--panelUp);
    border-color: var(--edgeLit);
    box-shadow: 0 20px 44px rgba(0,0,0,.45), 0 0 30px rgba(47,211,200,.14);
}

.postShot {
    position: relative;
    height: 226px;
    background: linear-gradient(150deg, var(--navy), var(--deep));
    overflow: hidden;
}
.postShot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.postCard:hover .postShot img { transform: scale(1.05); }
.postDate {
    position: absolute;
    top: 12px; right: 12px;
    font: 600 10px/1 var(--sans);
    color: var(--deep);
    background: var(--teal);
    padding: 6px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

.postBody { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.postClub {
    font: 600 12px/1 var(--sans);
    color: var(--tealUp);
    margin-bottom: 10px;
}
.postTitle {
    font-family: var(--display);
    font-weight: 600;
    font-size: 21px;
    line-height: 1.22;
    color: var(--mist);
    margin: 0;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.postSummary {
    margin: 12px 0 0;
    font: 400 13.5px/1.6 var(--sans);
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.postCta {
    margin-top: auto;
    padding-top: 18px;
    font: 700 12px/1 var(--sans);
    color: var(--tealUp);
}
.postCta span {
    display: inline-block;
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.postCard:hover .postCta span { transform: translateX(4px); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: 18px;
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
}
.empty h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    color: var(--mist);
    margin: 0 0 8px;
}
.empty p { font: 400 14px/1.6 var(--sans); color: var(--muted); }

/* ============================================
   FOOTER
   ============================================ */
.foot {
    position: relative;
    background: var(--deep);
    overflow: hidden;
}
.foot .waterline { position: absolute; left: 0; right: 0; top: 0; }
.compass {
    position: absolute;
    right: -60px; top: 50px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(47,211,200,.08) 0deg 1.5deg, transparent 1.5deg 30deg);
    opacity: .55;
    pointer-events: none;
}
.compassRing {
    position: absolute;
    right: 60px; top: 170px;
    width: 130px; height: 130px;
    border-radius: 50%;
    border: 1px solid rgba(47,211,200,.16);
    pointer-events: none;
}
.footTop { padding-top: clamp(56px, 7vw, 72px); }
.footwrap { display: flex; flex-wrap: wrap; gap: clamp(36px, 6vw, 72px); }
.footBrand { flex: 1; min-width: 260px; max-width: 340px; }
.footBrand .mark { margin-bottom: 16px; }
.footBrand .word { font: 600 17px/1 var(--sans); letter-spacing: .16em; color: var(--mist); }
.footBrand p {
    margin: 14px 0 22px;
    font: 400 13px/1.6 var(--sans);
    color: var(--muted);
    max-width: 290px;
}
.social { display: flex; gap: 11px; }
.social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(232,241,244,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--mist);
    transition: border-color .25s ease, color .25s ease;
}
.social a:hover, .social a:focus-visible { border-color: var(--tealUp); color: var(--tealUp); }

.footCol { min-width: 150px; }
.footCol .h {
    font: 700 10px/1 var(--sans);
    letter-spacing: .2em;
    color: var(--tealUp);
    margin-bottom: 18px;
}
.footCol div { display: flex; flex-direction: column; gap: 12px; }
.footCol a {
    font: 400 13px/1.2 var(--sans);
    color: rgba(232,241,244,.7);
    text-decoration: none;
    transition: color .25s ease;
}
.footCol a:hover, .footCol a:focus-visible { color: #fff; }

.footCta { flex: 1; display: flex; justify-content: flex-end; min-width: 230px; }
.footCta > div {
    width: 240px;
    background: rgba(47,211,200,.05);
    border: 1px solid rgba(47,211,200,.32);
    border-radius: 16px;
    padding: 24px;
}
.footCta h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.15;
    color: var(--mist);
    margin: 0;
}
.footCta p {
    margin: 8px 0 16px;
    font: 400 12px/1.5 var(--sans);
    color: var(--muted);
}
.footCta .ctaFill { display: inline-block; }

.footBase {
    margin-top: clamp(40px, 6vw, 64px);
    border-top: 1px solid rgba(232,241,244,.1);
    padding: 22px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footBase span { font: 400 12px/1.4 var(--sans); color: var(--muted); }
.footBase a { color: var(--tealUp); text-decoration: none; }
.footBase a:hover { text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
    .navLinks, .navActions { display: none; }
    .burger { display: flex; }
}
@media (max-width: 680px) {
    .footwrap { gap: 34px; }
    .compass, .compassRing { display: none; }
    .footCta { justify-content: flex-start; }
    .footCta > div { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
