/*
Theme Name: Little Web Shack
Theme URI: https://madebyrobert.co.uk/
Author: Robert Palmer
Author URI: https://madebyrobert.co.uk/
Description: A general-use, lightweight theme built using MBR Theme Generator
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: little-web-shack
Tags: 
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
  --little-web-shack-primary: #2563eb;
  --little-web-shack-secondary: #475569;
  --little-web-shack-text: #1e293b;
  --little-web-shack-bg: #ffffff;
  --little-web-shack-border: #e2e8f0;
  --little-web-shack-max-width: 1200px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--little-web-shack-text);
  background: var(--little-web-shack-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--little-web-shack-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Layout */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  width: 100%;
  max-width: var(--little-web-shack-max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Page builder pages: let the builder control layout */
.little-web-shack-elementor-page .site-content {
  max-width: none;
  padding: 0;
}





/* Header */
.site-header {
  background: var(--little-web-shack-bg);
  border-bottom: 1px solid var(--little-web-shack-border);
  padding: 1rem;
}

.site-header .wrap {
  max-width: var(--little-web-shack-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-branding .site-title a {
  color: var(--little-web-shack-text);
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-navigation a {
  color: var(--little-web-shack-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-navigation a:hover {
  color: var(--little-web-shack-primary);
}

/* Posts */
.entry-header { margin-bottom: 1rem; }

.entry-title {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--little-web-shack-secondary);
}

.entry-content {
  margin-bottom: 2rem;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-footer {
  font-size: 0.875rem;
  color: var(--little-web-shack-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--little-web-shack-border);
}

/* Footer */
.site-footer {
  background: var(--little-web-shack-text);
  color: #94a3b8;
  padding: 2rem 1rem;
  margin-top: auto;
}

.site-footer .wrap {
  max-width: var(--little-web-shack-max-width);
  margin: 0 auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

.site-info {
  text-align: center;
  font-size: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #f1f1f1;
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Skip link */
.skip-link:focus {
  background: var(--little-web-shack-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
}
