/* ===================================
   ASHLEE LANE — BOLD & DISTINCTIVE
   =================================== */

:root {
  --black:      #0A0A0A;
  --offwhite:   #F7F5F0;
  --white:      #FFFFFF;
  --accent:     #C8502A;        /* bold warm terracotta — energetic, confident */
  --accent-dk:  #9E3D1C;
  --teal:       #1A6B6B;        /* secondary — professional depth */
  --teal-lt:    #E8F3F3;
  --mid:        #4A4A4A;
  --light:      #9A9A9A;
  --border:     #E8E4DC;

  --font-head: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-w: 1100px;
  --prose-w: 700px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2em; }

/* UTILITIES */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.prose-container {
  max-width: var(--prose-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.accent { color: var(--accent); }
.teal { color: var(--teal); }

/* ===================================
   NAVIGATION
   =================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
}

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

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

/* ===================================
   HERO
   =================================== */
.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent);
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: var(--teal);
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  margin-left: 1rem;
}

.btn-outline:hover {
  border-color: var(--white);
  text-decoration: none;
}

/* ===================================
   TICKER / MARQUEE STRIP
   =================================== */
.ticker-strip {
  background: var(--accent);
  color: var(--white);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--accent-dk);
  border-bottom: 2px solid var(--accent-dk);
}

.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-inner span {
  margin-right: 4rem;
}

.ticker-inner span::before {
  content: '★ ';
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   SECTION HEADINGS
   =================================== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 0.7rem;
  margin-bottom: 1.2rem;
}

/* ===================================
   BLOG GRID (homepage + list)
   =================================== */
.posts-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--offwhite);
}

.posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Featured post — spans 2 columns on larger screens */
.posts-grid .post-card:first-child {
  grid-column: span 2;
}

@media (max-width: 700px) {
  .posts-grid .post-card:first-child { grid-column: span 1; }
}

.post-card {
  background: var(--white);
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--black);
  text-decoration: none;
}

.post-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 0.65rem;
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black);
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.post-card:hover .post-card-img img {
  opacity: 1;
}

/* Color block when no image */
.post-card-img.no-image {
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-img.no-image .post-card-icon {
  font-size: 3rem;
  opacity: 0.2;
}

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  font-size: 0.78rem;
  color: var(--light);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.post-card-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.25;
  margin-bottom: 0.8rem;
  color: var(--black);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
}

.post-card-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.2rem;
}

.post-card-read::after {
  content: '→';
  transition: transform 0.2s;
}

.post-card:hover .post-card-read::after {
  transform: translateX(4px);
}

/* ===================================
   ABOUT STRIP (homepage)
   =================================== */
.about-strip {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--teal);
  color: var(--white);
}

.about-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 700px) {
  .about-strip-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.about-strip .section-label { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.4); }
.about-strip h2 { color: var(--white); margin-bottom: 1.2rem; }
.about-strip p { color: rgba(255,255,255,0.8); margin-bottom: 1.2rem; }

.about-strip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-box {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 1.5rem;
  background: rgba(255,255,255,0.07);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  line-height: 1.3;
}

/* ===================================
   TOPICS / CATEGORIES
   =================================== */
.topics-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 2px solid var(--border);
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.topic-pill {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 2px solid var(--black);
  color: var(--black);
  transition: all 0.2s;
}

.topic-pill:hover {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}

/* ===================================
   SINGLE POST
   =================================== */
.post-hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.post-hero .section-label { margin-bottom: 1.5rem; }

.post-hero h1 {
  color: var(--white);
  max-width: var(--prose-w);
  margin-bottom: 1.2rem;
}

.post-hero-meta {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-hero-meta .dot { color: var(--accent); }

.post-content {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.post-content p,
.post-content li {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--mid);
}

.post-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 2.5rem 0 1rem;
  color: var(--black);
}

.post-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--black);
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--offwhite);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--black);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}

.post-content pre {
  background: var(--black);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 3px solid var(--accent);
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #f8f8f2;
  font-size: 0.9rem;
}

.post-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 3rem 0;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.post-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--border);
  color: var(--mid);
  transition: all 0.15s;
}

.post-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Author box */
.author-box {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--offwhite);
  border: 2px solid var(--black);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
}

.author-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.author-bio { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }

/* ===================================
   ABOUT PAGE
   =================================== */
.about-hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.about-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 700px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-avatar-wrap { display: none; }
}

.about-hero h1 { color: var(--white); margin-bottom: 1rem; }
.about-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }

.about-avatar-wrap {
  width: 200px;
  height: 200px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--white);
  font-weight: 700;
}

.about-body {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.about-body h2 {
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  color: var(--black);
}

.about-body p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
}

.timeline {
  margin: 2rem 0;
  padding-left: 0;
  list-style: none;
  border-left: 3px solid var(--accent);
}

.timeline li {
  padding: 1rem 1.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--mid);
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.4rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline strong { color: var(--black); display: block; font-family: var(--font-head); font-size: 1.1rem; }

/* ===================================
   LIST PAGE (blog index)
   =================================== */
.list-hero {
  background: var(--black);
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 4px solid var(--accent);
}

.list-hero h1 { color: var(--white); }
.list-hero p { color: rgba(255,255,255,0.65); margin-top: 0.8rem; font-size: 1.1rem; }

.list-content {
  padding: clamp(2rem, 6vw, 4rem) 0;
  background: var(--offwhite);
  min-height: 60vh;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  border-top: 4px solid var(--accent);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 500px) {
  .nav-links { gap: 1rem; }
  .btn-outline { display: none; }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.2s; }
.fade-up-4 { animation-delay: 0.3s; }
