/*
Theme Name: Rhys J Growth Simple
Theme URI: https://rhysj.com
Author: Rhys J
Author URI: https://rhysj.com
Description: Simple, plain WordPress theme (blog + pages) using the same visual style as Rhys J Growth — no custom landing-page templates.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rhysj-simple
*/

:root {
  --paper: #EFEEE9;
  --paper-raised: #F8F7F3;
  --ink: #14161C;
  --ink-soft: #4B4E58;
  --ink-faint: #8A8D95;
  --line: #D6D4CA;
  --cobalt: #2E3EEB;
  --cobalt-deep: #1D28A8;
  --signal: #A6FF3D;
  --radius: 3px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(239,238,233,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.logo span { color: var(--cobalt); }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links li { position: relative; }
.nav-links .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 200px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-links li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .sub-menu a { display: block; padding: 9px 12px; border-radius: var(--radius); white-space: nowrap; }
.nav-links .sub-menu a:hover { background: var(--paper); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--cobalt);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-block;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-ghost { font-size: 0.92rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- PAGE / BLOG ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); max-width: 24ch; }
.entry-content { padding: 0 0 76px; max-width: 72ch; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 20px; color: var(--ink-soft); font-size: 1.02rem; }
.entry-content h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.entry-content h3 { margin: 32px 0 12px; font-size: 1.15rem; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content a { color: var(--cobalt-deep); border-bottom: 1px solid var(--line); }

.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.post-row:first-child { border-top: none; }
.post-row .post-meta { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 8px; }
.post-row h2 { font-size: 1.3rem; margin-bottom: 10px; }
.post-row h2 a:hover { color: var(--cobalt-deep); }
.post-row p { color: var(--ink-soft); font-size: 0.96rem; }
.post-row .read-more { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid var(--line); }

.pagination { display: flex; gap: 16px; padding: 20px 0 76px; border-top: 1px solid var(--line); margin-top: 20px; }
.pagination a, .pagination span { font-size: 0.9rem; color: var(--ink-soft); }
.pagination a:hover { color: var(--cobalt-deep); }

footer.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
footer.site-footer .wrap { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-faint); flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .post-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

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