/* ==========================================================================
   TAROT CLASS corporate · reset + 요소 타이포그래피
   root는 표준 1rem = 16px을 지킨다. 62.5% 트릭을 쓰지 않는다.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + var(--s-4));
}

body {
  min-inline-size: 320px;
  margin: 0;
  color: var(--text-strong);
  background: var(--paper-50);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--t-body-lh);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); line-height: var(--t-h1-lh); font-weight: 700; }
h2 { font-size: var(--t-h2); line-height: var(--t-h2-lh); }
h3 { font-size: var(--t-h3); line-height: var(--t-h3-lh); }
h4 { font-size: var(--t-h4); line-height: var(--t-h4-lh); }

p { word-break: keep-all; overflow-wrap: break-word; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--text-strong); }

img, picture, svg, video {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}

.ui-icon {
  inline-size: 1rem;
  block-size: 1rem;
  flex: 0 0 auto;
  pointer-events: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

strong { font-weight: 700; }

table {
  inline-size: 100%;
  border-collapse: collapse;
}

hr {
  margin: 0;
  border: 0;
  border-block-start: var(--rule);
}

/* --- 접근성 -------------------------------------------------------------- */

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--slate-600);
  outline-offset: 2px;
  border-radius: var(--radius-control);
  box-shadow: var(--focus-ring);
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--s-4);
  z-index: 20;
  padding: var(--s-3) var(--s-4);
  color: var(--paper-0);
  background: var(--slate-900);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus-visible {
  inset-block-start: var(--s-3);
  color: var(--paper-0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
