/*
Theme Name: RIN
Theme URI: https://rinindex.com
Author: RIN
Author URI: https://rinindex.com
Description: A quiet, precise editorial WordPress theme for independent software reviews, comparisons, and guides.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: rin
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --rin-ink: #171715;
  --rin-paper: #f5f2eb;
  --rin-white: #fff;
  --rin-muted: #686762;
  --rin-line: #d9d5cc;
  --rin-accent: #b43a2f;
  --rin-measure: 46rem;
  --rin-wide: 75rem;
  --rin-space: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rin-paper);
  color: var(--rin-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rin-accent); }
:focus-visible { outline: 3px solid var(--rin-accent); outline-offset: 4px; }
.skip-link { background: var(--rin-ink); color: var(--rin-white); left: 1rem; padding: .65rem 1rem; position: fixed; top: -5rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }
.site-shell { margin-inline: auto; max-width: var(--rin-wide); padding-inline: var(--rin-space); }
.narrow { max-width: var(--rin-measure); }
.site-header { border-bottom: 1px solid var(--rin-line); }
.site-header__inner { align-items: center; display: flex; justify-content: space-between; min-height: 5rem; }
.brand { align-items: center; display: inline-flex; font-size: 1.15rem; font-weight: 700; letter-spacing: .34em; text-decoration: none; }
.brand::after { background: var(--rin-accent); border-radius: 50%; content: ""; height: .42rem; margin-left: .55rem; width: .42rem; }
.custom-logo { max-height: 2.2rem; width: auto; }
.primary-nav ul, .footer-nav ul { display: flex; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.primary-nav a, .footer-nav a { font-size: .9rem; text-decoration: none; }
.menu-toggle { background: transparent; border: 1px solid var(--rin-line); color: inherit; display: none; padding: .5rem .7rem; }
.hero { padding-block: clamp(5rem, 12vw, 10rem); }
.hero__mark { font-size: clamp(4.5rem, 16vw, 11rem); letter-spacing: .18em; line-height: .9; margin: 0 0 2rem; }
.hero__tagline { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; margin: 0; }
.hero__intro { color: var(--rin-muted); font-size: 1.15rem; max-width: 38rem; }
.button { background: var(--rin-ink); color: var(--rin-white); display: inline-block; font-size: .88rem; font-weight: 650; letter-spacing: .04em; margin-top: 1.25rem; padding: .8rem 1.1rem; text-decoration: none; }
.button:hover { background: var(--rin-accent); color: var(--rin-white); }
.section { border-top: 1px solid var(--rin-line); padding-block: clamp(3.5rem, 8vw, 7rem); }
.section__heading { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 2.2rem; }
.eyebrow, .entry-kicker { color: var(--rin-accent); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
.post-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-list .post-card { border-top: 1px solid var(--rin-line); display: grid; gap: 1rem; grid-template-columns: 1fr 2fr; padding-block: 1.5rem; }
.post-card__image { aspect-ratio: 16/10; background: #e7e2d8; margin-bottom: 1.2rem; overflow: hidden; }
.post-card__image img { height: 100%; object-fit: cover; width: 100%; }
.post-card__title { margin: .35rem 0; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt, .archive-description, .entry-deck { color: var(--rin-muted); }
.approach { display: grid; gap: 2rem; grid-template-columns: 1fr 2fr; }
.approach p { font-size: clamp(1.2rem, 2.4vw, 1.75rem); margin-top: 0; }
.entry-header { padding-block: clamp(3.5rem, 8vw, 7rem); }
.entry-header h1 { margin-bottom: 1.25rem; }
.entry-meta { color: var(--rin-muted); display: flex; flex-wrap: wrap; font-size: .88rem; gap: .5rem 1.25rem; }
.featured-image { margin-inline: auto; max-width: var(--rin-wide); }
.entry-content { margin-inline: auto; max-width: var(--rin-measure); padding: clamp(2.5rem, 7vw, 6rem) var(--rin-space); }
.entry-content > * { margin-block: 1.4rem; }
.entry-content h2 { margin-top: 3.5rem; }
.entry-content h3 { margin-top: 2.5rem; }
.entry-content .alignwide { margin-left: 50%; max-width: var(--rin-wide); transform: translateX(-50%); width: calc(100vw - 2 * var(--rin-space)); }
.entry-content .alignfull { margin-left: 50%; max-width: none; transform: translateX(-50%); width: 100vw; }
.affiliate-disclosure, .rin-note, .rin-tip, .rin-result { border-left: 3px solid var(--rin-accent); color: var(--rin-muted); font-size: .9rem; margin: 2rem 0; padding: .8rem 1.1rem; }
.rin-tip { background: var(--rin-white); }
.rin-step { border-top: 1px solid var(--rin-line); counter-increment: rin-step; padding: 1.6rem 0 1rem 4rem; position: relative; }
.rin-steps { counter-reset: rin-step; }
.rin-step::before { color: var(--rin-accent); content: counter(rin-step, decimal-leading-zero); font-size: .8rem; font-weight: 750; left: 0; letter-spacing: .1em; position: absolute; top: 1.8rem; }
.verdict { background: var(--rin-white); padding: clamp(1.5rem, 4vw, 2.5rem); }
.pros-cons { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
pre { background: var(--rin-ink); color: var(--rin-white); overflow-x: auto; padding: 1.2rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.entry-content table { border-collapse: collapse; min-width: 38rem; width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
th, td { border-bottom: 1px solid var(--rin-line); padding: .8rem; text-align: left; vertical-align: top; }
th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.related { border-top: 1px solid var(--rin-line); margin-top: 4rem; padding-top: 2rem; }
.pagination { border-top: 1px solid var(--rin-line); margin-top: 3rem; padding-top: 2rem; }
.site-footer { background: var(--rin-ink); color: #efede6; margin-top: 5rem; padding-block: 4rem; }
.site-footer__inner { display: grid; gap: 3rem; grid-template-columns: 1fr 2fr; }
.site-footer .brand::after { background: #db5648; }
.site-footer__tagline, .site-footer__legal { color: #aaa8a2; font-size: .85rem; }
.footer-nav ul { flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 48rem) {
  .menu-toggle { display: block; }
  .primary-nav { background: var(--rin-paper); border-bottom: 1px solid var(--rin-line); display: none; left: 0; padding: 1rem var(--rin-space); position: absolute; right: 0; top: 5rem; z-index: 20; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: flex-start; flex-direction: column; }
  .post-grid, .approach, .site-footer__inner, .pros-cons { grid-template-columns: 1fr; }
  .post-list .post-card { grid-template-columns: 1fr; }
  .footer-nav ul { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

