/* ==========================================================================
   Onidev LLC — Shared Stylesheet
   /assets/styles.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   Requirements: 4.2
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f7f2;       /* Page background — warm off-white */
  --text: #171717;      /* Primary text — near-black */
  --muted: #616161;     /* Secondary text — medium gray */
  --card: #ffffff;      /* Card/content background — white */
  --border: #e4e4dc;    /* Borders and dividers — light warm gray */
  --accent: #222222;    /* Links and interactive elements — dark */
}

/* --------------------------------------------------------------------------
   Base Reset and Typography
   Requirements: 4.3, 4.4
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 32px 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

/* --------------------------------------------------------------------------
   Headings — Fluid Scaling with clamp()
   Requirements: 4.4
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.75em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* --------------------------------------------------------------------------
   Links
   Requirements: 4.2, 5.1
   -------------------------------------------------------------------------- */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Header and Navigation
   Requirements: 4.2
   -------------------------------------------------------------------------- */
header {
  max-width: 920px;
  margin: 0 auto 24px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  opacity: 0.7;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.links a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Main Content Area
   Requirements: 4.2, 4.5
   -------------------------------------------------------------------------- */
main {
  max-width: 920px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Card Component
   Requirements: 4.2, 5.1
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 48px;
}

/* --------------------------------------------------------------------------
   Eyebrow Text
   Requirements: 4.2
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   Section Component
   Requirements: 4.2
   -------------------------------------------------------------------------- */
.section {
  border-top: 1px solid var(--border);
  padding-top: 1.5em;
  margin-top: 1.5em;
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5em;
}

/* --------------------------------------------------------------------------
   Updated Date Text (Privacy Policy)
   Requirements: 4.2
   -------------------------------------------------------------------------- */
.updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2em;
}

/* --------------------------------------------------------------------------
   Footer
   Requirements: 4.2
   -------------------------------------------------------------------------- */
footer {
  max-width: 920px;
  margin: 32px auto 0;
  padding-top: 24px;
  text-align: center;
}

.footer-content {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-content p {
  margin-bottom: 0.5em;
}

.footer-content a {
  color: var(--muted);
}

.footer-content a:hover {
  color: var(--accent);
}

.footer-links {
  margin-top: 0.75em;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
}

/* --------------------------------------------------------------------------
   Lists
   Requirements: 4.4
   -------------------------------------------------------------------------- */
ul, ol {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoint — Mobile (≤640px)
   Requirements: 4.5, 1.7
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    padding: 20px 16px;
  }

  .card {
    padding: 30px;
  }

  nav {
    justify-content: center;
    text-align: center;
  }

  .links {
    justify-content: center;
    width: 100%;
  }

  footer {
    margin-top: 24px;
  }
}
