/* ramenskiy.com design layer — loaded after the theme bundle via params.customCSS.
   Tokens follow the theme's switching mechanism: prefers-color-scheme defaults,
   [data-theme] set by the theme toggle wins. */

:root {
  --accent: #0b6a88;
  --accent-soft: rgba(11, 106, 136, 0.09);
  --card-bg: #fafafa;
  --card-border: #e4e4e4;
  --muted: #767678;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #64c7e0;
    --accent-soft: rgba(100, 199, 224, 0.10);
    --card-bg: #2a2b2d;
    --card-border: #45464b;
    --muted: #8f8f99;
  }
}

[data-theme="dark"] {
  --accent: #64c7e0;
  --accent-soft: rgba(100, 199, 224, 0.10);
  --card-bg: #2a2b2d;
  --card-border: #45464b;
  --muted: #8f8f99;
}

[data-theme="light"] {
  --accent: #0b6a88;
  --accent-soft: rgba(11, 106, 136, 0.09);
  --card-bg: #fafafa;
  --card-border: #e4e4e4;
  --muted: #767678;
}

/* Typography: the theme's global 0.06em tracking reads dated — tighten it. */
html {
  letter-spacing: 0.005em;
}

h1, h2, h3 {
  letter-spacing: -0.015em;
}

.logo__text {
  letter-spacing: 0.02em;
}

.logo__cursor {
  background: var(--accent);
}

/* ---------- Homepage ---------- */

.home-main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
}

.hero {
  padding: 8vh 0 3rem;
}

.hero-name {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 42em;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-accent,
.btn-ghost {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .btn-accent {
  color: #1b1c1d;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .btn-accent {
    color: #1b1c1d;
  }
}

.btn-ghost {
  border: 1px solid var(--card-border);
  color: inherit;
}

.btn-accent:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.section-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 3rem 0 1.25rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.pillar-card p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.pillar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillar-links li {
  margin: 0.45rem 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pillar-links a {
  color: var(--accent);
  text-decoration: none;
}

.pillar-links a:hover {
  text-decoration: underline;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.recent-item a:hover {
  background: var(--accent-soft);
}

.recent-title {
  font-weight: 600;
}

.recent-date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.recent-all {
  margin-top: 1rem;
}

.recent-all a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.now p {
  max-width: 42em;
}

.now-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.now-contact .sep {
  color: var(--muted);
  margin: 0 0.4rem;
}

/* ---------- Posts list ---------- */

.post-year {
  color: var(--muted);
}

.posts-list .post-item a:hover,
.post-item-inner:hover {
  color: var(--accent);
}

/* ---------- Post pages ---------- */

.post-content a {
  color: var(--accent);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

.post-content strong {
  font-weight: 700;
}

@media (max-width: 684px) {
  .hero {
    padding-top: 4vh;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }
}
