/**
*style for the website
Theme Name: Lukemersh
Theme URI: https://lukemersh.co.uk
Author: Lukemersh   
Author URI: https://lukemersh.co.uk
Description: Genesis child theme for Lukemersh
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: genesis
textdomain: lukemersh
*/
/* ============================================================================
   TABLE OF CONTENTS
   ----------------------------------------------------------------------------
   1.  CSS Custom Properties (fallbacks for non-block contexts)
   2.  Reset & Base
   3.  Typography
   4.  Links
   5.  Genesis Layout Overrides
   6.  Header & Navigation
   7.  Footer
   8.  WordPress Core Elements
       8a. Comments
       8b. Forms & Inputs
       8c. Pagination
       8d. Captions & Figures
       8e. Alignments
   9.  Utility Classes
   10. Accessibility
============================================================================ */
 
 
/* ============================================================================
   1. CSS CUSTOM PROPERTIES
   Fallback tokens for non-block contexts (Genesis templates, comments etc.)
   These mirror theme.json values so everything stays in sync.
============================================================================ */
 
:root {
    /* Colours */
    --lm-dark:          #0D0F12;
    --lm-surface:       #1E2229;
    --lm-border:        #22272F;
    --lm-off-white:     #F4F6FA;
    --lm-light:         #C8D0DC;
    --lm-muted:         #5A6070;
    --lm-subtle:        #7A8494;
    --lm-blue:          #3B82F6;
    --lm-blue-hover:    #2563EB;
    --lm-blue-dim:      rgba(59, 130, 246, 0.10);
    --lm-green:         #22C55E;
 
    /* Typography */
    --lm-font-display:  'Syne', sans-serif;
    --lm-font-body:     'Epilogue', sans-serif;
    --lm-font-mono:     'JetBrains Mono', monospace;
 
    /* Spacing */
    --lm-space-xs:      8px;
    --lm-space-sm:      16px;
    --lm-space-md:      24px;
    --lm-space-lg:      40px;
    --lm-space-xl:      60px;
    --lm-space-2xl:     96px;
 
    /* Border radius */
    --lm-radius-sm:     4px;
    --lm-radius-md:     8px;
    --lm-radius-lg:     12px;
    --lm-radius-full:   100px;
 
    /* Transitions */
    --lm-transition:    0.2s ease;
 
    /* Layout */
    --lm-max-width:     1200px;
    --lm-content-width: 760px;
}
 
 
/* ============================================================================
   2. RESET & BASE
============================================================================ */
 
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
 
body {
    background-color: var(--lm-dark);
    color: var(--lm-off-white);
    font-family: var(--lm-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
 
img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}
 
ul,
ol {
    list-style: none;
}
 
table {
    border-collapse: collapse;
    width: 100%;
}
 
 
/* ============================================================================
   3. TYPOGRAPHY
============================================================================ */
 
h1, h2, h3, h4, h5, h6 {
    font-family: var(--lm-font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--lm-off-white);
    letter-spacing: -0.5px;
}
 
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -2px; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -1.5px; }
h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.5px; }
h4 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }
h6 { font-size: 15px; font-weight: 600; }
 
p {
    color: var(--lm-subtle);
    line-height: 1.75;
    margin-bottom: var(--lm-space-md);
}
 
p:last-child {
    margin-bottom: 0;
}
 
strong, b {
    font-weight: 600;
    color: var(--lm-light);
}
 
em, i {
    font-style: italic;
}
 
small {
    font-size: 12px;
    color: var(--lm-muted);
}
 
code,
pre,
kbd {
    font-family: var(--lm-font-mono);
    font-size: 13px;
}
 
code {
    padding: 2px 6px;
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-sm);
    color: var(--lm-blue);
}
 
pre {
    padding: var(--lm-space-md);
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-md);
    overflow-x: auto;
    line-height: 1.6;
}
 
pre code {
    padding: 0;
    background: none;
    border: none;
    color: var(--lm-light);
}
 
blockquote {
    padding: var(--lm-space-md) var(--lm-space-lg);
    border-left: 3px solid var(--lm-blue);
    background: var(--lm-surface);
    border-radius: 0 var(--lm-radius-md) var(--lm-radius-md) 0;
    margin: var(--lm-space-lg) 0;
}
 
blockquote p {
    font-family: var(--lm-font-body);
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    color: var(--lm-light);
    margin-bottom: var(--lm-space-sm);
}
 
blockquote cite {
    font-family: var(--lm-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    font-style: normal;
}
 
hr {
    border: none;
    border-top: 1px solid var(--lm-border);
    margin: var(--lm-space-xl) 0;
}
 
 
/* ============================================================================
   4. LINKS
============================================================================ */
 
a {
    color: var(--lm-blue);
    text-decoration: none;
    transition: color var(--lm-transition);
}
 
a:hover,
a:focus {
    color: var(--lm-blue-hover);
}
 
a:focus-visible {
    outline: 2px solid var(--lm-blue);
    outline-offset: 3px;
    border-radius: var(--lm-radius-sm);
}
 
 
/* ============================================================================
   5. GENESIS LAYOUT OVERRIDES
============================================================================ */
 
/* Remove Genesis default max-width — blocks handle their own widths */
.site-container,
.site-inner,
.wrap {
    max-width: var(--lm-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 60px;
    padding-right: 60px;
}
 
/* Full-width page template — no sidebar */
.page-template-page-full-width .content-sidebar-wrap,
.page-template-page-full-width .content {
    width: 100%;
}
 
/* Remove Genesis entry padding on block pages */
.wp-block-post-content .entry-content {
    padding: 0;
}
 
/* Content width for blog posts and single pages */
.entry-content {
    max-width: var(--lm-content-width);
    margin-left: auto;
    margin-right: auto;
}
 
 
/* ============================================================================
   6. HEADER & NAVIGATION
============================================================================ */
 
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 68px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: border-color var(--lm-transition),
                background var(--lm-transition),
                backdrop-filter var(--lm-transition);
}
 
.site-header.scrolled {
    border-color: var(--lm-border);
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
 
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
}
 
/* Site title / logo */
.site-title {
    font-family: var(--lm-font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}
 
.site-title a {
    color: var(--lm-off-white);
}
 
.site-title a:hover {
    color: var(--lm-off-white);
}
 
.site-title a span {
    color: var(--lm-blue);
}
 
/* Hide Genesis site description */
.site-description {
    display: none;
}
 
/* Navigation */
.nav-primary {
    display: flex;
    align-items: center;
}
 
.nav-primary .genesis-nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}
 
.nav-primary .genesis-nav-menu a {
    font-family: var(--lm-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    transition: color var(--lm-transition);
}
 
.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu .current-menu-item > a {
    color: var(--lm-off-white);
}
 
/* Nav CTA button */
.nav-primary .genesis-nav-menu .menu-item-cta > a {
    padding: 9px 20px;
    background: var(--lm-blue);
    color: #ffffff;
    border-radius: var(--lm-radius-md);
    font-family: var(--lm-font-display);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.2px;
    font-size: 14px;
}
 
.nav-primary .genesis-nav-menu .menu-item-cta > a:hover {
    background: var(--lm-blue-hover);
    color: #ffffff;
}
 
 
/* ============================================================================
   7. FOOTER
============================================================================ */
 
.site-footer {
    padding: var(--lm-space-lg) 0;
    border-top: 1px solid var(--lm-border);
    background: var(--lm-dark);
}
 
.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--lm-space-md);
}
 
.site-footer p {
    font-family: var(--lm-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    margin-bottom: 0;
}
 
.site-footer a {
    color: var(--lm-muted);
}
 
.site-footer a:hover {
    color: var(--lm-blue);
}
 
 
/* ============================================================================
   8a. COMMENTS
============================================================================ */
 
.comments-area {
    max-width: var(--lm-content-width);
    margin: var(--lm-space-2xl) auto 0;
    padding-top: var(--lm-space-xl);
    border-top: 1px solid var(--lm-border);
}
 
.comments-title,
.comment-reply-title {
    font-family: var(--lm-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--lm-off-white);
    letter-spacing: -0.5px;
    margin-bottom: var(--lm-space-lg);
}
 
/* Comment list */
.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--lm-space-lg);
    margin-bottom: var(--lm-space-xl);
}
 
.comment-list .children {
    list-style: none;
    margin-top: var(--lm-space-lg);
    padding-left: var(--lm-space-lg);
    border-left: 2px solid var(--lm-border);
    display: flex;
    flex-direction: column;
    gap: var(--lm-space-lg);
}
 
/* Individual comment */
.comment-body {
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-lg);
    padding: var(--lm-space-md) var(--lm-space-lg);
}
 
.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--lm-space-md);
    margin-bottom: var(--lm-space-md);
    padding-bottom: var(--lm-space-md);
    border-bottom: 1px solid var(--lm-border);
}
 
/* Avatar */
.comment-author img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
 
.comment-author .fn {
    font-family: var(--lm-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--lm-off-white);
}
 
.comment-author .fn a {
    color: var(--lm-off-white);
}
 
.comment-author .fn a:hover {
    color: var(--lm-blue);
}
 
/* Comment metadata — date/time */
.comment-metadata {
    display: flex;
    align-items: center;
    gap: var(--lm-space-sm);
}
 
.comment-metadata a {
    font-family: var(--lm-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
}
 
.comment-metadata a:hover {
    color: var(--lm-blue);
}
 
/* Comment content */
.comment-content p {
    font-size: 15px;
    color: var(--lm-subtle);
    line-height: 1.75;
    margin-bottom: var(--lm-space-sm);
}
 
/* Reply link */
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--lm-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    margin-top: var(--lm-space-sm);
    transition: color var(--lm-transition);
}
 
.comment-reply-link:hover {
    color: var(--lm-blue);
}
 
/* No comments message */
.no-comments {
    font-family: var(--lm-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    text-align: center;
    padding: var(--lm-space-xl) 0;
}
 
 
/* ============================================================================
   8b. FORMS & INPUTS
   Used for comment form, contact forms, search
============================================================================ */
 
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--lm-surface);
    border: 1.5px solid var(--lm-border);
    border-radius: var(--lm-radius-md);
    font-family: var(--lm-font-body);
    font-size: 15px;
    color: var(--lm-off-white);
    transition: border-color var(--lm-transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
 
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--lm-blue);
}
 
input::placeholder,
textarea::placeholder {
    color: var(--lm-muted);
    opacity: 1;
}
 
textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}
 
label {
    display: block;
    font-family: var(--lm-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    margin-bottom: 6px;
}
 
/* Comment form specific */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: var(--lm-space-md);
}
 
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url,
.comment-form .comment-form-comment {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
 
/* Submit button */
input[type="submit"],
button[type="submit"],
.submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--lm-blue);
    color: #ffffff;
    font-family: var(--lm-font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    border: none;
    border-radius: var(--lm-radius-md);
    cursor: pointer;
    transition: background var(--lm-transition), transform var(--lm-transition);
    width: auto;
}
 
input[type="submit"]:hover,
button[type="submit"]:hover,
.submit:hover {
    background: var(--lm-blue-hover);
    transform: translateY(-1px);
}
 
 
/* ============================================================================
   8c. PAGINATION
============================================================================ */
 
.pagination,
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--lm-space-sm);
    padding: var(--lm-space-xl) 0;
}
 
.pagination a,
.pagination span,
.archive-pagination a,
.archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-md);
    font-family: var(--lm-font-mono);
    font-size: 12px;
    color: var(--lm-muted);
    transition: all var(--lm-transition);
}
 
.pagination a:hover,
.archive-pagination a:hover {
    border-color: var(--lm-blue);
    color: var(--lm-blue);
}
 
.pagination .active,
.pagination .current,
.archive-pagination .active {
    background: var(--lm-blue);
    border-color: var(--lm-blue);
    color: #ffffff;
}
 
 
/* ============================================================================
   8d. CAPTIONS & FIGURES
============================================================================ */
 
figure {
    margin: var(--lm-space-lg) 0;
}
 
figcaption,
.wp-caption-text {
    font-family: var(--lm-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lm-muted);
    text-align: center;
    margin-top: var(--lm-space-sm);
}
 
.wp-caption {
    max-width: 100%;
}
 
.wp-caption img {
    border-radius: var(--lm-radius-md);
}
 
 
/* ============================================================================
   8e. ALIGNMENTS
============================================================================ */
 
.alignleft  { float: left;  margin: 0 var(--lm-space-lg) var(--lm-space-md) 0; }
.alignright { float: right; margin: 0 0 var(--lm-space-md) var(--lm-space-lg); }
.aligncenter { display: block; margin: 0 auto var(--lm-space-md); }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide  { width: calc(100% + 120px); margin-left: -60px; }
 
 
/* ============================================================================
   9. UTILITY CLASSES
============================================================================ */
 
/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
 
/* Container */
.lm-container {
    max-width: var(--lm-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 60px;
    padding-right: 60px;
}
 
/* Section padding */
.lm-section {
    padding: var(--lm-space-2xl) 0;
}
 
/* Mono label */
.lm-label {
    font-family: var(--lm-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lm-muted);
}
 
/* Blue accent text */
.lm-accent {
    color: var(--lm-blue);
}
 
/* Text colours */
.lm-text-muted  { color: var(--lm-muted); }
.lm-text-subtle { color: var(--lm-subtle); }
.lm-text-light  { color: var(--lm-light); }
.lm-text-white  { color: var(--lm-off-white); }
 
 
/* ============================================================================
   10. ACCESSIBILITY
============================================================================ */
 
/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--lm-space-md);
    z-index: 999;
    padding: var(--lm-space-sm) var(--lm-space-md);
    background: var(--lm-blue);
    color: #ffffff;
    font-family: var(--lm-font-display);
    font-weight: 700;
    border-radius: var(--lm-radius-md);
    transition: top var(--lm-transition);
}
 
.skip-link:focus {
    top: var(--lm-space-md);
}
 
/* Focus visible — global */
:focus-visible {
    outline: 2px solid var(--lm-blue);
    outline-offset: 3px;
    border-radius: var(--lm-radius-sm);
}
 
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
 
 
/* ============================================================================
   RESPONSIVE
============================================================================ */
 
@media (max-width: 1024px) {
    .site-container,
    .site-inner,
    .wrap,
    .lm-container {
        padding-left: 40px;
        padding-right: 40px;
    }
 
    .alignwide {
        width: calc(100% + 80px);
        margin-left: -40px;
    }
}
 
@media (max-width: 768px) {
    .site-container,
    .site-inner,
    .wrap,
    .lm-container {
        padding-left: 24px;
        padding-right: 24px;
    }
 
    .alignwide {
        width: 100%;
        margin-left: 0;
    }
 
    .alignleft,
    .alignright {
        float: none;
        margin: 0 0 var(--lm-space-md);
    }
 
    .comment-list .children {
        padding-left: var(--lm-space-md);
    }
}
