:root{
  --yellow: #FFDD57;
  --green:  #2EC4B6;
  --blue:   #2B7AFC;
    --pastel-green: #DFF7EE;
    --pastel-blue:  #E8F2FF;
    --pastel-yellow:#FFF9D6;
        --pastel-purple:#F1E8FF;
  --bg: #f7faf9;
  --muted: #6b7280;
  --card: #ffffff;
  --radius: 10px;
  --max-width: 1100px;
}
*{box-sizing:border-box}
body{
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin:0; background:var(--bg); color:#0f172a; -webkit-font-smoothing:antialiased;
}
a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max-width); margin:0 auto; padding:20px}
header#hero{background:linear-gradient(90deg, rgba(255,221,87,0.14), rgba(46,196,182,0.06)); border-radius:var(--radius); box-shadow:0 6px 18px rgba(11,22,39,0.04);}
/* upgraded hero */
#hero{display:block;position:relative;overflow:hidden}
#hero .hero-inner{display:flex;gap:20px;align-items:center;padding:28px}
#hero img{width:140px;height:140px;border-radius:14px;border:3px solid rgba(255,255,255,0.85);box-shadow:0 6px 20px rgba(11,22,39,0.08);object-fit:cover}
#hero h1{margin:0;font-size:1.8rem;color:#04233b}
#hero p{margin:6px 0;color:var(--muted)}

header#hero::before{
    content:'';position:absolute;inset:0;z-index:0;opacity:0.95;
    background: linear-gradient(135deg, rgba(46,196,182,0.18) 0%, rgba(43,122,252,0.12) 50%, rgba(255,221,87,0.14) 100%);
    mix-blend-mode: multiply;
}
/* subtle collage using the user's image on the right */
#hero::after{
    content:'';position:absolute;right:-60px;top:-20px;width:420px;height:420px;background-image: url('../img/tomlacy - 2023.png');background-size:cover;background-position:center;opacity:0.08;transform:rotate(8deg);z-index:0;filter:grayscale(20%);
}
#hero .hero-inner > *{position:relative;z-index:1}

/* Passions */
#passions{margin-top:20px}
#passions h2{margin-bottom:12px;color:#073B4C}
#passions-list button{background:transparent;border:1px solid rgba(11,22,39,0.06);padding:8px 12px;border-radius:8px;cursor:pointer}
#passions-list button:hover{box-shadow:0 4px 14px rgba(43,122,252,0.08);transform:translateY(-2px)}

/* Pastel section variants */
.pastel-blue{background:linear-gradient(180deg, var(--pastel-blue), #ffffff);padding:18px;border-radius:10px}
.pastel-green{background:linear-gradient(180deg, var(--pastel-green), #ffffff);padding:18px;border-radius:10px}
.pastel-yellow{background:linear-gradient(180deg, var(--pastel-yellow), #fff);padding:18px;border-radius:10px}
.pastel-purple{background:linear-gradient(180deg, var(--pastel-purple), #fff);padding:18px;border-radius:10px}

/* Background decorative images */
.site-bg{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.bg-img{position:absolute;width:320px;height:320px;opacity:0.12;filter:grayscale(10%);}
.bg-photo{left:8%;top:6%;transform:rotate(-6deg)}
.bg-sports{right:6%;top:20%;transform:rotate(12deg)}
.bg-tech{left:18%;bottom:6%;transform:rotate(-10deg)}
.bg-lead{right:18%;bottom:12%;transform:rotate(8deg)}

#hero, section, #comments{position:relative;z-index:1}

/* Tabs for passions */
.tab-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.tab-buttons button{border:1px solid rgba(11,22,39,0.06);background:transparent;padding:8px 12px;border-radius:8px;cursor:pointer}
.tab-buttons button[aria-selected="true"]{box-shadow:0 6px 18px rgba(11,22,39,0.06);transform:translateY(-2px);background:rgba(255,255,255,0.6)}
.tab-panel{position:relative;padding:14px;border-radius:8px;margin-top:8px;min-height:120px}
.tab-panel .tab-bg{position:absolute;inset:auto;right:12px;top:6px;width:220px;height:220px;opacity:0.12;filter:grayscale(100%);pointer-events:none}
.tab-panel .feed-list{position:relative;z-index:1}
.tab-panel .placeholder{color:var(--muted)}

@media (max-width: 800px){
    .site-bg{display:none}
    .bg-img{display:none}
    .tab-panel .tab-bg{display:none}
    .tab-buttons{overflow:auto}
}

/* Feeds and cards */
section{background:var(--card);padding:18px;border-radius:10px;margin:12px 0;box-shadow:0 6px 18px rgba(11,22,39,0.04)}
section h3{margin-top:0;color:#0b3550}
ul{margin:8px 0 0 18px}
li{margin:8px 0}

/* Comments */
#comments{background:linear-gradient(180deg, rgba(43,122,252,0.03), rgba(46,196,182,0.01));}

/* Chat */
#chat{min-height:220px;padding:12px;border-radius:8px;background:linear-gradient(180deg,#fff, #fbfdff);border:1px solid rgba(11,22,39,0.04)}
#input{border:1px solid rgba(11,22,39,0.08);border-radius:8px;padding:10px}

/* Responsive */
@media (max-width:800px){
  header#hero{display:block;text-align:center;padding:14px}
  #hero img{margin:0 auto 12px}
  .container{padding:12px}
}

/* Utility */
.muted{color:var(--muted)}
.btn{display:inline-block;background:var(--blue);color:#fff;padding:8px 14px;border-radius:8px}
.btn.secondary{background:var(--green)}
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

















/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* Photography gallery styles */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:12px}
.photo-grid img{width:100%;height:100%;object-fit:cover;border-radius:8px;border:1px solid rgba(11,22,39,0.06)}

/* LinkedIn banner preview styles */
.linkedin-banner img{width:100%;max-width:1584px;height:auto;border-radius:8px;display:block;margin:12px auto;box-shadow:0 6px 18px rgba(11,22,39,0.06)}

/* Placeholder card for non-image URLs (e.g., album page links) */
.photo-card{display:flex;align-items:center;justify-content:center;height:120px;border-radius:8px;border:1px dashed rgba(11,22,39,0.06);background:linear-gradient(180deg,#fff,#fafafa);color:var(--muted);font-size:0.95rem}
.photo-card a{color:var(--blue);padding:6px 10px}

/* Simple lightbox styles */
#simple-lightbox{display:none}
#simple-lightbox.open{display:block}
#simple-lightbox .lb-backdrop{position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:9998}
#simple-lightbox .lb-content{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;max-width:90%;max-height:90%;display:flex;align-items:center;justify-content:center}
#simple-lightbox .lb-image{max-width:100%;max-height:80vh;border-radius:8px;box-shadow:0 10px 30px rgba(2,6,23,0.6)}
#simple-lightbox .lb-close{position:absolute;right:8px;top:8px;background:transparent;border:0;color:#fff;font-size:28px}
#simple-lightbox .lb-controls{position:absolute;left:8px;right:8px;top:50%;display:flex;justify-content:space-between}
#simple-lightbox .lb-prev,#simple-lightbox .lb-next{background:rgba(0,0,0,0.3);border:0;color:#fff;padding:8px 12px;border-radius:6px}
