/*
 * Base layer: resets + site-wide typography + the small set of utility
 * classes carried over verbatim (by name) from Landing.html, so markup
 * copied from that prototype "just works" once dropped into a template,
 * widget, or Elementor text box.
 *
 * Unlike the original plugin-only draft of this project, these rules are
 * NOT gated behind a .ent-scope wrapper — this is a full child theme now,
 * so body-level typography/link/button defaults apply everywhere by
 * design. .ent-scope is kept as a class (added to MasterStudy's own
 * wrapper — see includes/class-masterstudy-compat.php) for the rare case
 * a more specific override is useful, but nothing below requires it.
 */

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

body {
  margin: 0;
  color: var(--ent-ink);
  background: var(--ent-bg);
  font-family: var(--ent-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ent-accent-soft);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ent-font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ent-ink);
  margin: 0 0 .5em;
}
/* type scale from the design spec: H1 30-34px, H2 20-25px, body 14-16px */
h1 { font-size: 32px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }

p {
  margin: 0 0 1em;
}

/* labels / eyebrows: 12-13px/700 uppercase, .05em tracking, per spec */
.ent-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

a {
  color: var(--ent-accent);
  text-decoration: none;
}
a:hover {
  color: var(--ent-warm);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--ent-line);
  border-radius: var(--ent-radius-pill);
  border: 2px solid var(--ent-bg);
}

/* ---- interaction utilities — same names/behavior as Landing.html ---- */
.ent-nav-btn {
  transition: background .15s ease, color .15s ease;
}
.ent-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.ent-press {
  transition: transform .12s ease, filter .15s ease;
  cursor: pointer;
}
.ent-press:active {
  transform: scale(.97);
}
.ent-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--ent-shadow-card);
}
.ent-reveal {
  opacity: 0;
  transform: translateY(14px);
}
.ent-reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ent-reveal { opacity: 1; transform: none; }
  .ent-reveal-in { transition: none; }
}

/* ---- buttons — spec: 14-16px/600 label, radius 10-20px depending on size ---- */
.ent-btn,
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--ent-radius-sm);
  padding: 13px 22px;
  font-family: var(--ent-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  background: var(--ent-accent);
  color: var(--ent-accent-ink);
}
.ent-btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
  filter: brightness(1.04);
  color: var(--ent-accent-ink);
}
.ent-btn-primary { background: var(--ent-accent); color: var(--ent-accent-ink); }
.ent-btn-secondary { background: var(--ent-surface); color: var(--ent-ink); border: 1px solid var(--ent-line); }
.ent-btn-warm { background: var(--ent-warm); color: #fff; }
.ent-btn-wine { background: var(--ent-wine); color: #fff; }
.ent-btn-ghost { background: transparent; color: var(--ent-ink); }
.ent-btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }

/* ---- form fields ---- */
.ent-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ent-ink-2);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--ent-line);
  border-radius: 11px;
  background: var(--ent-surface);
  font-family: var(--ent-font-body);
  font-size: 15px;
  color: var(--ent-ink);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ent-accent);
}

/* ---- misc content elements a page/post might use ---- */
blockquote {
  border-left: 3px solid var(--ent-accent-soft);
  padding: 4px 0 4px 18px;
  color: var(--ent-ink-2);
  font-style: normal;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table th, table td {
  padding: 10px 12px;
  border: 1px solid var(--ent-line);
  text-align: left;
}
table thead th {
  background: var(--ent-surface-2);
  font-weight: 700;
}
