/*
Theme Name: SimpleTheme
Author: Mike Osborne
Author URI: https://mikeosbornecreative.co.uk
Description: A Simple wordpress theme
Version: 1.0
*/

@import "https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap";

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
b, strong { font-weight: bolder; }
img, svg, video { display: block; max-width: 100%; height: auto; vertical-align: middle; }
ol, ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --background: #FAFAF8;
  --foreground: #1A1A1A;
  --muted: #6B6B6B;
  --accent: #C8102E;
  --accent-hover: #A00D24;
  --border: #E5E5E0;
  --dark-bg: #1A1A1A;
  --dark-text: #F5F5F0;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}

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

.site-main { flex: 1; }

.site-main.post,
.site-main.page {
    margin-top:5rem;
    
}

.container-editorial {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: 5rem;
}

a {
    color: var(--accent)
}
a:hover {
    color:var(--accent-hover) ;
}
/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgb(250 250 248 / 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.025em;
  transition: color 0.15s;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active { color: var(--accent); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}

.hamburger-bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--foreground);
  transition: transform 0.15s, opacity 0.15s;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
}

/* ============================================================
   Blog Styles
   ============================================================ */
.blog-post {
    margin-bottom:1rem;
    padding-bottom:1rem;
  border-bottom: 1px solid var(--muted);
}
.post-meta {
    font-size:0.85rem;
    text-transform:uppercase;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1A1A1A, rgb(26 26 26 / 0.6) 50%, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-content .section-label { margin-bottom: 1rem; }

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.05;
  max-width: 48rem;
}

.hero-body {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #ccc;
  max-width: 36rem;
  line-height: 1.625;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  transition: background-color 0.15s;
}

.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
  display: inline-block;
  border: 1px solid rgb(245 245 240 / 0.3);
  color: var(--dark-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--dark-text); }

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.books-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.book-cover { flex-shrink: 0; width: 16rem; }

.book-cover img {
  width: 100%;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.book-info { flex: 1; }

.book-info .section-label { margin-bottom: 0.75rem; }

.book-info p,
.about-text p{
    margin-bottom: 0.75rem;
}

h2.book-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.book-info h3 {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.body-text {
  color: var(--foreground);
  line-height: 1.625;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--muted);
  margin-bottom: 2rem;
}

.blockquote-meta {
  font-size: 0.875rem;
  font-style: normal;
  color: #999;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background-color: #F0F0EC; }

.about-section .section-label { margin-bottom: 0.75rem; }

.about-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 3rem;
}
.about-article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--border);
}
.about-article:last-child { border-bottom: 0; }

.about-img-wrap {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}
.about-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.about-img-wrap:hover .about-img { 
    transform: scale(1.02); 
}

.about-text {
  flex: 1;
}

.about-text .body-text { max-width: none; }

.about-text .blockquote { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 3rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text);
  transition: color 0.15s;
}

.footer-logo:hover { color: var(--accent); }

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #999;
  line-height: 1.625;
  max-width: 18rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 1rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link a {
  font-size: 0.875rem;
  color: #ccc;
  transition: color 0.15s;
}

.footer-link a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #666;
}

/* ============================================================
   RESPONSIVE — md (768px+)
   ============================================================ */
@media (min-width: 768px) {
  /* Nav */
  .site-nav      { height: 5rem; }
  .nav-logo      { font-size: 1.5rem; }
  .nav-links     { display: flex; }
  .hamburger     { display: none; }

  /* Hero */
  .hero-content  { padding-bottom: 8rem; }
  .hero-title    { font-size: 4.5rem; }
  .hero-body     { font-size: 1.25rem; }

  /* Books */
  .books-layout  { flex-direction: row; gap: 5rem; }
  .book-cover    { width: 20rem; }
  .book-title    { font-size: 3rem; }

  /* About */
  .about-heading { font-size: 2.25rem; }
  .about-article { flex-direction: row; gap: 3rem; }
  .about-img-wrap,
  .about-img     { width: 25rem; }

  /* Footer */
  .footer-grid   { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 5rem; }
  .footer-bottom { flex-direction: row; }
}

/* ============================================================
   RESPONSIVE — lg (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .hero-title { font-size: 5rem; }
}
