/* ManeBooth legal pages: shared styles. Salon Mirror palette, plain and readable. */

:root {
  --bg: #F7F2EC;
  --surface: #FFFFFF;
  --text: #2E211D;
  --muted: #75655F;
  --border: #E8DDD4;
  --accent: #6B1E2E;
  --accent-soft: #F3E3DF;
  --link: #6B1E2E;
  --link-hover: #4E1421;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #22171A;
    --surface: #33262A;
    --text: #F7F2EC;
    --muted: #BCAAA3;
    --border: #4A3A3E;
    --accent: #E8C9C1;
    --accent-soft: #3A2A2E;
    /* Blush links keep readable contrast on the dark burgundy background. */
    --link: #E8C9C1;
    --link-hover: #F7E4DF;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  z-index: 10;
}

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

.wrap {
  max-width: 68ch;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
  font-style: italic;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 2rem 0 3rem;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 700;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
}

/* Plain-language summary box */
.summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem 0.35rem;
  margin: 1.5rem 0 2rem;
}

.summary h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.2rem;
}

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem 0.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.toc ol {
  margin: 0 0 0.5rem;
  padding-left: 1.4rem;
}

.toc li {
  margin-bottom: 0.2rem;
}

/* Tables (e.g. subscription prices) */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
}

/* Lawyer review markers */
.verify {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--link);
}

/* Landing page cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 2rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
  color: var(--text);
}

.card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.back-to-top {
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}
