/* =================================================================
   MENTOR MAGIC - SHARED STYLES
   style.css
   -----------------------------------------------------------------
   FUTURE EDITORS: This is the ONE file to edit if you want to
   change the look of the entire site (colors, fonts, spacing).

   Change values inside :root { } only.
   Do NOT edit anything below the "GLOBAL RESETS" comment unless
   you know what you're doing.
   ================================================================= */

:root {
  /* ---- Brand Colors ---- */
  --bg:           #FAF9F7;     /* Page background */
  --surface:      #ffffff;     /* Cards, header */
  --border:       #E8E4DF;     /* Subtle dividers */
  --text-dark:    #1C1C1A;     /* Headings, body */
  --text-mid:     #5C5A57;     /* Secondary text */
  --text-light:   #6F6B66;     /* Hints, metadata */
  --accent:       #005a43;     /* Links, hover, active - change this to rebrand */
  --accent-hover: #6cc24a;
  --accent-bg:    #cedc00;     /* Very light accent tint */

  /* ---- Shape ---- */
  --radius:       6px;         /* Corner radius for cards / buttons */
  --radius-sm:    4px;

  /* ---- Typography ---- */
  --font-serif: Georgia, 'Times New Roman', serif;   /* Headings, wordmark */
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;  /* UI + body */

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
}


/* =================================================================
   GLOBAL RESETS - Do not edit below this line unless you know CSS.
   ================================================================= */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 90, 67, 0.18);
}

img {
  display: block;
  max-width: 100%;
}


/* -----------------------------------------------------------------
   SHARED BUTTON COMPONENT
   Usage:  <button class="btn">Default</button>
           <button class="btn btn-accent">Primary</button>
           <a class="btn" href="...">Link Button</a>
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #005a43;
}
.btn-icon {
  padding: 7px 10px;
  font-size: 0.9rem;
}


/* -----------------------------------------------------------------
   SHARED HEADER
   Used on both index.html and reader.html
   ----------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em {
  color: var(--accent);
  font-style: normal;
}


/* -----------------------------------------------------------------
   UTILITY
   ----------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}
