/* =========================================================
   RP Editorial Services — shared stylesheet
   ========================================================= */

:root {
  --ink: #1d2433;
  --ink-soft: #3a4254;
  --muted: #626a7c;
  --paper: #faf7f2;
  --soft: #f2ede4;
  --white: #ffffff;
  --line: #e4ddd1;
  --accent: #b3322a;        /* editor's red pen */
  --accent-dark: #8f2620;
  --radius: 10px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); }
.bg-soft { background: var(--soft); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--accent); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; flex: 0 0 42px;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.brand-name span { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent);
}
.nav .btn { padding: 9px 20px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Home hero ---------- */
.hero { padding: 80px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.manuscript {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px 30px;
  box-shadow: 0 24px 50px -28px rgba(29, 36, 51, .35);
  transform: rotate(1.2deg);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 2.1;
  color: var(--ink);
}
.manuscript::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--accent); border-radius: var(--radius) 0 0 var(--radius);
}
.manuscript .label {
  font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; line-height: 1.4;
}
.manuscript del { color: var(--muted); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.manuscript ins { text-decoration: none; color: var(--accent); font-style: italic; border-bottom: 2px solid var(--accent); }
.manuscript .margin-note {
  display: block; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--sans); font-size: .92rem; line-height: 1.5; color: var(--accent);
}

/* ---------- Inner page header ---------- */
.page-hero { background: var(--soft); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; margin: 0; }

/* ---------- Stats strip ---------- */
.stats { background: var(--ink); color: var(--paper); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.1; color: var(--white); }
.stat span { font-size: .95rem; color: #c9cdd6; }

/* ---------- Cards & lists ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.tick-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.tick-list li { position: relative; padding-left: 26px; margin-bottom: 10px; break-inside: avoid; }
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Split layouts (home about, profile) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.pull-quote {
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.4; font-style: italic;
  color: var(--ink); border-left: 3px solid var(--accent); padding-left: 24px; margin: 0 0 28px;
}
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts li strong { color: var(--ink); display: block; }
.prose p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 3.6rem; line-height: .9;
  padding: 6px 10px 0 0; color: var(--accent);
}

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; margin: 0; }
.testimonial .mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 22px; flex: 1; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; }
.testimonial cite span { font-weight: 400; color: var(--muted); font-size: .95rem; }
.testimonial-feature { max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial-feature blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5; color: var(--ink);
}
.testimonial-feature .mark { margin: 0 auto 10px; }
.testimonial-list { display: grid; gap: 28px; }
.testimonial-list .testimonial { padding: 40px; }

/* ---------- Work examples ---------- */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.example {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.example:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.example .icon {
  flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--soft);
  display: grid; place-items: center; font-size: .7rem; font-weight: 600; color: var(--accent); letter-spacing: .05em;
}
.example strong { display: block; font-size: 1rem; line-height: 1.3; }
.example small { color: var(--muted); font-size: .85rem; }

/* ---------- Rates ---------- */
.rates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rate h3 { font-size: 1.1rem; margin-bottom: 14px; }
.rate .price { font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.rate .unit { color: var(--muted); font-size: .95rem; }
.rate p { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }
.note {
  margin-top: 30px; padding: 18px 22px; background: var(--white);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .4em; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fbe9e7; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; }
.cta-band p { margin: 0; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { flex: 0 0 80px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }

.tick-list.single { columns: 1; }
.card-note { color: var(--muted); font-size: .98rem; margin: 18px 0 24px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cdd6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #f3b7b2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8d94a3; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand .brand-name span { color: #8d94a3; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .manuscript { transform: none; }
  .rates-grid, .examples-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .page-hero { padding: 52px 0 44px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav li:last-child a { border: 0; margin-top: 14px; text-align: center; }
  .grid-2, .examples-grid, .stats-grid, .steps { grid-template-columns: 1fr; }
  .tick-list { columns: 1; }
  .card, .testimonial-list .testimonial { padding: 26px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .rates-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}
