/*
Theme Name: Ronke Ogunlola Author
Theme URI: https://ronkeogunlola.com
Author: Ronke Ogunlola
Description: A bright, elegant author theme created for Ronke Ogunlola and The Last Born.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ronke-author
*/

:root {
  --ink: #20182a;
  --muted: #675f70;
  --paper: #fffdf9;
  --lavender: #eee8f4;
  --plum: #42204f;
  --purple: #68457a;
  --aqua: #68d3d0;
  --gold: #d9af62;
  --line: rgba(32, 24, 42, 0.12);
  --shadow: 0 24px 60px rgba(43, 26, 55, 0.15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 18px; top: 18px; z-index: 100; background: #fff; padding: 12px 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,249,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { text-decoration: none; }
.site-brand strong { display: block; font-family: var(--serif); font-size: clamp(1.22rem, 2vw, 1.55rem); letter-spacing: .03em; }
.site-brand span { display: block; color: var(--purple); font-size: .67rem; letter-spacing: .25em; text-transform: uppercase; }
.custom-logo { max-height: 54px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; }
.site-nav a { text-decoration: none; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--purple); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 700; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f8f2fb 0%, #fffdf9 54%, #eefafa 100%); }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: rgba(104,211,208,.16); right: -220px; top: -300px; }
.hero-grid { min-height: 720px; padding: 78px 0 88px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(48px, 8vw, 100px); position: relative; }
.eyebrow { color: var(--purple); font-size: .76rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.hero h1, .section-title, .page-title { font-family: var(--serif); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(4rem, 8vw, 7.25rem); margin: 18px 0 24px; }
.hero h1 em { display: block; color: var(--purple); font-weight: 500; }
.hero-copy { max-width: 590px; font-family: var(--serif); font-size: clamp(1.22rem, 2.2vw, 1.62rem); line-height: 1.5; color: #463c4b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; background: var(--plum); color: #fff; text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--plum); transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #2d1237; }
.button.secondary { background: transparent; color: var(--plum); }
.button.secondary:hover { background: #fff; }
.book-stage { position: relative; padding: 24px 10px 0; }
.book-stage::after { content: ""; position: absolute; z-index: 0; width: 86%; height: 76%; left: 5%; bottom: -4%; border-radius: 48% 52% 45% 55%; background: var(--aqua); opacity: .22; transform: rotate(-8deg); }
.book-cover { position: relative; z-index: 1; width: min(420px, 90%); margin: 0 auto; border-radius: 4px 12px 12px 4px; box-shadow: 18px 28px 55px rgba(34,18,43,.28); transform: rotate(2deg); }

.section { padding: 100px 0; }
.section.soft { background: var(--lavender); }
.section-title { font-size: clamp(2.65rem, 5vw, 4.75rem); margin: 12px 0 28px; }
.story-grid, .author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.story-copy p, .author-copy p { color: var(--muted); font-size: 1.06rem; }
.story-card { padding: clamp(32px, 5vw, 58px); background: var(--plum); color: white; border-radius: 2px 42px 2px 42px; box-shadow: var(--shadow); }
.story-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.2; }
.story-card strong { color: var(--aqua); }
.author-photo-wrap { background: var(--aqua); padding: 18px 18px 0; border-radius: 150px 150px 8px 8px; }
.author-photo { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; object-position: center 18%; border-radius: 135px 135px 4px 4px; }
.detail-list { display: grid; gap: 14px; margin: 28px 0; }
.detail-item { display: flex; gap: 13px; align-items: flex-start; }
.detail-mark { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 10px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(104,211,208,.2); }

.newsletter { padding: 70px 0; background: var(--aqua); color: #173536; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter h2 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; margin: 0 0 14px; }
.newsletter p { margin: 0; max-width: 580px; }
.newsletter .button { white-space: nowrap; }
.kit-form-wrap { width: min(460px, 100%); flex: 0 0 min(460px, 100%); }
.kit-form-wrap form { margin: 0 !important; }
.kit-form-wrap input { border-radius: 999px !important; }
.kit-form-wrap button { border-radius: 999px !important; font-weight: 800 !important; }

.about-page-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(46px, 8vw, 100px); align-items: start; }
.about-page-photo { position: sticky; top: 110px; }
.about-page-photo .author-photo-wrap { width: 100%; }
.about-page-content { min-width: 0; }

.page-hero { padding: 90px 0 65px; background: linear-gradient(135deg, var(--lavender), #fff); }
.page-title { font-size: clamp(3.2rem, 7vw, 6.4rem); margin: 12px 0 0; }
.content-area { padding: 72px 0 100px; }
.entry-content { font-family: var(--serif); font-size: 1.12rem; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.2; }
.entry-content h2 { font-size: 2.3rem; }
.entry-content a { color: var(--purple); }
.book-page-grid { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(42px, 8vw, 90px); align-items: start; }
.book-page-cover { position: sticky; top: 110px; }
.book-page-cover img { width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow); }
.book-page-content { min-width: 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.post-card h2 { font-family: var(--serif); line-height: 1.2; }
.post-card a { text-decoration: none; }
.meta { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 58px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-title { font-family: var(--serif); color: white; font-size: 1.6rem; margin: 0 0 12px; }
.footer-heading { color: var(--aqua); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }
.footer-links { list-style: none; padding: 0; margin: 14px 0 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--aqua); }
.copyright { border-top: 1px solid rgba(255,255,255,.13); margin-top: 42px; padding-top: 24px; color: rgba(255,255,255,.52); font-size: .8rem; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { align-items: flex-start; flex-direction: column; }
  .hero-grid, .story-grid, .author-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 56px; }
  .hero-copy { font-size: 1.18rem; }
  .book-stage { width: min(500px, 100%); margin: 0 auto; }
  .story-grid { gap: 50px; }
  .author-photo-wrap { width: min(520px, 100%); }
  .newsletter-inner { align-items: flex-start; flex-direction: column; }
  .kit-form-wrap { width: 100%; flex-basis: auto; }
  .about-page-grid { grid-template-columns: minmax(230px, 330px) 1fr; gap: 42px; }
  .book-page-grid { grid-template-columns: minmax(210px, 300px) 1fr; gap: 42px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container, .narrow { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 70px; }
  .site-nav { top: 70px; }
  .hero-grid { min-height: auto; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .section { padding: 76px 0; }
  .hero-actions .button { width: 100%; }
  .posts-grid, .footer-grid { grid-template-columns: 1fr; }
  .book-page-grid { grid-template-columns: 1fr; }
  .book-page-cover { position: static; width: min(320px, 88%); margin: 0 auto; }
  .about-page-grid { grid-template-columns: 1fr; }
  .about-page-photo { position: static; width: min(360px, 92%); margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
