/* ==========================================================================
   base.css — shared reset, tokens, and cross-family components
   Used by: publication.css (advertorial, about) and offer.css (offer, legal)
   ========================================================================== */

:root {
  --ink-900: #17181c;
  --ink-700: #3a3d44;
  --ink-500: #676b74;
  --ink-300: #b7bac1;
  --ink-100: #e9eaed;
  --paper: #ffffff;
  --focus-ring: #1a5fd6;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 1px 2px rgba(23, 24, 28, 0.06), 0 8px 24px rgba(23, 24, 28, 0.08);
  --shadow-lift: 0 12px 32px rgba(23, 24, 28, 0.14);
  --container-max: 1120px;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink-900);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

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

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink-100);
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- shared aside: market-rate "what clients pay" box ---- */
.rate-box {
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--paper);
}

.rate-box__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.rate-box__hourly {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 4px;
}

.rate-box__hourly-caption {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.rate-box__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.rate-box__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink-300);
}

.rate-box__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rate-box__row dt {
  color: var(--ink-700);
}

.rate-box__row dd {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.rate-box__foot {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 14px;
  line-height: 1.5;
}

/* ---- section kicker (assigned AI-leverage placement) ---- */
.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* ---- shared two-column split (market-rate + AI-leverage) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
  }
}

/* ---- disclaimer + footer (identical shape on every page) ---- */
.site-disclaimer {
  display: block;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.site-disclaimer p {
  margin-bottom: 8px;
}

.site-disclaimer p:last-child {
  margin-bottom: 0;
}

.site-disclaimer a {
  font-weight: 600;
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--ink-300);
  padding: 28px 16px 40px;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__company {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-700);
  white-space: pre-line;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer__links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ---- generic legal-page content shell (used by legal pages of both families) ---- */
.legal-main {
  padding: 40px 0 56px;
}

.legal-main h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 18px;
}

.legal-main h2 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-main p,
.legal-main li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 14px;
}

.legal-main ul {
  padding-left: 20px;
}

.legal-main ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.legal-main address {
  font-style: normal;
  white-space: pre-line;
  line-height: 1.7;
}

.legal-updated {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
