/*
Theme Name: Hayley Esther - Girl Boss Bestie
Theme URI: https://hayleyesther.com
Author: Hayley Esther
Description: A bright editorial WordPress theme for Hayley Esther — Your Girl Boss Bestie. Pink, orange and cream with bold magazine-style typography.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hayley-esther
*/

:root {
  --pink: #ff4f9a;
  --pink-deep: #e93483;
  --orange: #ff7a1a;
  --orange-deep: #ed5d00;
  --cream: #fff8ef;
  --paper: #fffdf9;
  --ink: #2a1d1b;
  --muted: #7a6762;
  --line: #f1d9cf;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(70, 34, 24, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-deep); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,248,239,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.branding { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -.04em;
  line-height: 1;
}
.site-title a { color: var(--ink); }
.tagline {
  color: var(--pink-deep);
  font-weight: 800;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.main-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.main-nav a { font-weight: 700; font-size: .95rem; }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--orange);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  padding: 72px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: stretch;
}
.hero-copy, .hero-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-copy {
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  color: white;
  padding: clamp(36px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .92;
  letter-spacing: -.06em;
  margin: 0 0 24px;
}
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 700px; margin: 0 0 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid transparent;
  transition: .2s ease;
}
.btn-light { background: white; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); color: var(--pink-deep); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-deep); color: white; transform: translateY(-2px); }
.hero-card {
  background: var(--paper);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
}
.hero-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 0 0 16px;
}
.hero-card .scribble {
  color: var(--orange-deep);
  font-weight: 900;
  font-size: 1rem;
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: 18px;
}

.section { padding: 42px 0 72px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -.04em;
}
.section-kicker { color: var(--pink-deep); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.category-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 900;
  transition: .2s ease;
}
.category-pill:nth-child(odd) { border-top: 5px solid var(--pink); }
.category-pill:nth-child(even) { border-top: 5px solid var(--orange); }
.category-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(67,33,24,.05);
  display: flex;
  flex-direction: column;
}
.post-card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg,#ffd1e5,#ffd6b5); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-meta { color: var(--orange-deep); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.08; margin: 10px 0 12px; }
.post-card p { color: var(--muted); margin: 0; }
.read-more { display: inline-block; margin-top: 16px; font-weight: 900; color: var(--pink-deep); }

.bestie-box {
  background: var(--ink);
  color: white;
  border-radius: 30px;
  padding: clamp(34px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.bestie-box h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .95; margin: 0 0 16px; }
.bestie-box p { color: #f0ded8; max-width: 750px; margin: 0; }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  padding: 54px 0 80px;
}
.entry, .sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.entry { padding: clamp(24px, 5vw, 48px); }
.entry-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; margin: 0 0 16px; letter-spacing: -.05em; }
.entry-meta { color: var(--muted); margin-bottom: 30px; font-size: .9rem; }
.entry-content h2, .entry-content h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.1; }
.entry-content a { color: var(--pink-deep); text-decoration: underline; }
.entry-content blockquote { border-left: 5px solid var(--orange); margin-left: 0; padding-left: 20px; font-family: Georgia, serif; font-size: 1.25rem; }
.sidebar-card { padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { margin-top: 0; font-family: Georgia, serif; font-size: 1.5rem; }
.widget ul { padding-left: 18px; }

.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.pagination .page-numbers { background: white; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.pagination .current { background: var(--pink); color: white; }

.site-footer {
  margin-top: 40px;
  background: var(--ink);
  color: white;
  padding: 52px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; }
.site-footer h2 { font-family: Georgia, serif; font-size: 2.2rem; margin: 0 0 10px; }
.site-footer p { color: #ecd9d3; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 20px; color: #d7c2bb; font-size: .85rem; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .hero-grid, .content-wrap, .bestie-box, .footer-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .hero { padding-top: 34px; }
  .posts-grid, .category-strip { grid-template-columns: 1fr; }
  .header-inner { min-height: 70px; }
  .tagline { display: none; }
  .hero-copy, .hero-card { border-radius: 22px; }
}
