/**
 * YNDJ Theme — Base Reset & Defaults
 * assets/css/base.css
 *
 * Minimal opinionated reset. Sets html/body foundations.
 * Everything here uses --yndj-* tokens from tokens.css.
 * No component or layout rules belong here.
 */


/* ── Box-sizing ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── Root & scroll ──────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* ── Body ───────────────────────────────────────────────────── */
body {
  font-family: var(--yndj-font-body);
  font-weight: 400;
  font-size: var(--yndj-text-md);
  color: var(--yndj-text);
  background-color: var(--yndj-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Reserve space for the fixed nav so page content is never hidden beneath it */
  padding-top: var(--yndj-nav-height);
}

/* Learn page gets no top padding — Masteriyo controls its own layout */
body.yndj-learn-page {
  padding-top: 0;
}


/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background-color: var(--yndj-gold-pale);
  color: var(--yndj-navy);
}

::-moz-selection {
  background-color: var(--yndj-gold-pale);
  color: var(--yndj-navy);
}


/* ── Images & media ─────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}


/* ── Links ──────────────────────────────────────────────────── */
a {
  color: var(--yndj-gold);
  text-decoration: none;
  transition: color var(--yndj-transition-fast);
}

a:hover {
  color: var(--yndj-gold-light);
}

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


/* ── Lists ──────────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}


/* ── Forms ──────────────────────────────────────────────────── */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* ── Horizontal rule ────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--yndj-cream-dark);
  margin: var(--yndj-space-lg) 0;
}


/* ── Tables ─────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
}


/* ── WordPress alignment classes (used by Gutenberg) ────────── */
.alignleft  { float: left;  margin-right: var(--yndj-space-md); }
.alignright { float: right; margin-left:  var(--yndj-space-md); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Screen-reader text (WordPress standard) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--yndj-cream);
  border-radius: var(--yndj-radius-sm);
  clip: auto !important;
  clip-path: none;
  color: var(--yndj-navy);
  display: block;
  font-size: var(--yndj-text-base);
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 9999;
}
