/* =========================================================================
 * base.css — Reset, body type, layout primitives
 * JOICE.AI CO., LIMITED — joicettech.com
 * ========================================================================= */

/* Modern, opinionated reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
ul, ol { padding-left: 1.25em; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* Skip-link --------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -40px;
  background: var(--c-cadillac); color: var(--c-pearl);
  padding: 10px 14px; border-radius: var(--r-2); z-index: 9999;
  text-decoration: none; font-weight: 600;
  transition: top var(--t-fast) var(--e-out);
}
.skip-link:focus { top: 12px; outline: var(--ring-focus); outline-offset: 2px; }

/* Document body ----------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  color: var(--text-default);
  background: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

main { display: block; min-height: 60vh; }

::selection { background: var(--c-champagne); color: var(--c-ink); }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: var(--tr-tight); line-height: var(--lh-snug); }
h1 { font-size: var(--t-dxl); font-weight: 800; }
h2 { font-size: var(--t-dl);  font-weight: 800; }
h3 { font-size: var(--t-ds);  font-weight: 700; }
h4 { font-size: var(--t-h);   font-weight: 700; }
h5 { font-size: var(--t-sh);  font-weight: 600; }
h6 { font-size: var(--t-bl);  font-weight: 600; letter-spacing: var(--tr-normal); }

p { line-height: var(--lh-normal); }
strong, b { font-weight: 600; }
em, i { font-style: italic; }
small { font-size: var(--t-caption); }

a { color: var(--c-cadillac); text-underline-offset: 3px; transition: color var(--t-fast) var(--e-out); }
a:hover { color: var(--c-cadillac-hover); }

code, pre, kbd, samp { font-family: var(--font-mono); }

hr { border: 0; border-top: 1px solid var(--border-hairline); margin: var(--s-12) 0; }

/* Layout primitives ------------------------------------------------------- */
.l-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-x);
}

.l-section {
  padding-block: var(--section-pad-y);
}

.l-stack > * + * { margin-top: var(--s-6); }
.l-stack--sm > * + * { margin-top: var(--s-3); }
.l-stack--lg > * + * { margin-top: var(--s-10); }

.l-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Eyebrow / section head ------------------------------------------------- */
.c-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-caption);
  letter-spacing: var(--tr-x-wide);
  text-transform: uppercase;
  color: var(--text-eyebrow);
  margin: 0;
}

.c-section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-12); }
.c-section__title {
  font: 800 clamp(40px, 5vw, 80px) / var(--lh-tight) var(--font-display);
  letter-spacing: var(--tr-tight);
  margin: var(--s-3) 0 var(--s-6);
  max-width: 22ch;
}
.c-section__lead {
  color: var(--text-muted);
  max-width: 56ch;
  font-size: var(--t-bl);
  line-height: var(--lh-normal);
}

/* Page transition scrim (gold wipe) --------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  body::after {
    content: "";
    position: fixed; inset: 0; z-index: var(--z-toast);
    background: var(--c-champagne);
    transform-origin: top;
    animation: reveal-on-load var(--t-cine) var(--e-inout) both;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }