/*
Theme Name: GavHill
Theme URI: https://gavhill.com
Author: Gav
Description: A warm, minimalist personal site theme — editorial in feel, built for personality.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gavhill
Requires at least: 6.7
Requires PHP: 7.2
*/

/* ─── Google Fonts ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ─── Custom Properties ────────────────────── */
:root {
  --gh-bg: #fafaf9;
  --gh-surface: #ffffff;
  --gh-text: #1c1917;
  --gh-text-secondary: #78716c;
  --gh-text-muted: #a8a29e;
  --gh-accent: #c2410c;
  --gh-accent-light: #fff7ed;
  --gh-border: #e7e5e4;
  --gh-border-strong: #d6d3d1;
  --gh-font-serif: 'Playfair Display', Georgia, serif;
  --gh-font-sans: 'DM Sans', system-ui, sans-serif;
  --gh-font-mono: 'DM Mono', monospace;
  --gh-radius: 6px;
  --gh-ease: 0.2s ease;
}

/* ─── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: var(--gh-font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hide WordPress admin bar */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

::selection { background: var(--gh-accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Typography ───────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--gh-font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gh-text);
}

p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

/* ─── Site Header ──────────────────────────── */
.wp-block-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6%;
  border-bottom: 1px solid var(--gh-border);
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.wp-block-site-title a {
  font-family: var(--gh-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gh-text);
}

.wp-block-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.wp-block-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gh-text-secondary);
  transition: color var(--gh-ease);
  letter-spacing: 0.3px;
}

.wp-block-navigation a:hover { color: var(--gh-text); }

/* ─── Cover / Hero ─────────────────────────── */
.wp-block-cover {
  padding: 7rem 6% 5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.wp-block-cover h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.wp-block-cover .wp-block-cover-subtitle {
  font-family: var(--gh-font-sans);
  font-size: 1.2rem;
  color: var(--gh-text-secondary);
  max-width: 560px;
  margin-top: 1.5rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ─── Main Content Area ────────────────────── */
.wp-block-group.main-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 6%;
}

.wp-block-group.main-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--gh-text);
}

.wp-block-group.main-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.wp-block-group.main-content p {
  color: var(--gh-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.75em;
}

.wp-block-group.main-content blockquote {
  border-left: 3px solid var(--gh-accent);
  padding-left: 2rem;
  margin: 2.5rem 0;
  font-family: var(--gh-font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gh-text);
  line-height: 1.6;
}

.wp-block-group.main-content blockquote p {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── Post List / Blog ─────────────────────── */
.wp-block-query {
  padding: 4rem 6%;
  max-width: 860px;
  margin: 0 auto;
}

.wp-block-post {
  border-bottom: 1px solid var(--gh-border);
  padding: 3rem 0;
}

.wp-block-post:last-child { border-bottom: none; }

.wp-block-post-title {
  font-family: var(--gh-font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.wp-block-post-title a {
  color: var(--gh-text);
  transition: color var(--gh-ease);
}

.wp-block-post-title a:hover { color: var(--gh-accent); }

.wp-block-post-date {
  font-family: var(--gh-font-mono);
  font-size: 0.75rem;
  color: var(--gh-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.wp-block-post-excerpt {
  color: var(--gh-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.wp-block-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gh-text);
  border-bottom: 1.5px solid var(--gh-text);
  padding-bottom: 2px;
  margin-top: 1.5rem;
  width: fit-content;
  transition: all var(--gh-ease);
}

.wp-block-read-more:hover {
  color: var(--gh-accent);
  border-color: var(--gh-accent);
}

/* ─── Cards / Grid ─────────────────────────── */
.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 6%;
  max-width: 1100px;
  margin: 0 auto;
}

.wp-block-column {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 2.5rem 2rem;
  transition: all 0.25s ease;
}

.wp-block-column:hover {
  border-color: var(--gh-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.wp-block-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-family: var(--gh-font-serif);
}

.wp-block-column p {
  font-size: 0.925rem;
  color: var(--gh-text-secondary);
  line-height: 1.7;
}

/* ─── Buttons ───────────────────────────────── */
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--gh-text);
  color: var(--gh-bg);
  font-family: var(--gh-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--gh-radius);
  border: none;
  cursor: pointer;
  transition: all var(--gh-ease);
  text-decoration: none;
}

.wp-block-button__link:hover {
  background: #111;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--gh-text);
  border: 1.5px solid var(--gh-border-strong);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--gh-text);
}

/* ─── Footer ───────────────────────────────── */
.gh-site-footer,
.wp-block-site-footer {
  border-top: 1px solid var(--gh-border);
  padding: 3.5rem 6%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 0.5rem;
}

.gh-site-footer p,
.wp-block-site-footer p {
  font-size: 0.875rem;
  color: var(--gh-text-muted);
  margin: 0;
}

.gh-site-footer a,
.wp-block-site-footer a { color: var(--gh-text-secondary); transition: color var(--gh-ease); }
.gh-site-footer a:hover,
.wp-block-site-footer a:hover { color: var(--gh-text); }

/* ─── Utilities ─────────────────────────────── */
.wp-block-spacer { height: 1px; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ─── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .wp-block-site-header { flex-direction: column; gap: 1.25rem; padding: 1.5rem 6%; }
  .wp-block-cover { padding: 5rem 6% 4rem; min-height: 50vh; }
  .wp-block-query { padding: 3rem 6%; }
  .wp-block-columns { padding: 3rem 6%; grid-template-columns: 1fr; }
  .wp-block-site-footer { flex-direction: column; gap: 1rem; text-align: center; }
}
/* ─── App Page Template ─────────────────── */
.gh-app-hero {
  padding: 1.5rem 6%;
  border-bottom: 1px solid var(--gh-border);
}
.gh-app-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.gh-back-link {
  font-size: 0.85rem;
  color: var(--gh-text-secondary);
  transition: color var(--gh-ease);
}
.gh-back-link:hover { color: var(--gh-accent); }

/* ─── Single Post Template ─────────────── */
.gh-post-header {
  padding: 5rem 6% 3rem;
  border-bottom: 1px solid var(--gh-border);
}
.gh-post-header .gh-container {
  max-width: 860px;
  margin: 0 auto;
}
.gh-post-date {
  font-family: var(--gh-font-mono);
  font-size: 0.72rem;
  color: var(--gh-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
}
.gh-post-title {
  font-family: var(--gh-font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gh-text);
}
.gh-post-body {
  padding: 4rem 6%;
}
.gh-post-body .gh-container {
  max-width: 860px;
  margin: 0 auto;
}
.gh-post-body p {
  color: var(--gh-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
}
.gh-post-body h2, .gh-post-body h3 {
  font-family: var(--gh-font-serif);
  color: var(--gh-text);
  margin: 2em 0 0.75em;
}
