/* =========================================
   Base Reset / Global
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  opacity: 0;
  transition: opacity 0.7s ease-out;
}


body.ready {
  opacity: 1;
}

body {
  font-family: "Shippori Mincho B1", serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  background: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100%;
  min-height: 100svh; /* future-safe mobile viewport */
  transition: background-color 2s ease, color 2s ease;
}


main {
  flex: 1;
}






/* =========================================
   Global Typography
   (semantic defaults, subtle rhythm)
========================================= */

body {
  line-height: 1.45;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

/* Balanced paragraph rhythm — less aggressive */
p {
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
}



h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; }

/* Lists */
ul {
  margin-bottom: 0.7rem;
  padding-left: 1rem;
}
li {
  line-height: 1.35;
  margin-bottom: 0.25rem;
}


/* =========================================
   Utility Typography Scale
   Extracted from existing component patterns
========================================= */

/* Micro label
   Used in header nav, signal headers, section notes */
.text-xs {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1.25;
}

/* Secondary metadata
   Matches artifact-feed, subtle side text */
.text-sm {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* Slightly refined body text
   Used in contact/about lists */
.text-md {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Subtle uppercase category headings
   Mirrors artifact-section h4 */
.label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.2px currentColor;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

/* Accent intro text
   Matches .intro and hero-first paragraphs */
.lead {
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.2px currentColor;
}

/* Tabular numbers for data alignment */
.tnum {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Tight call-to-action link
   Matches rabbit-hole-link behavior */
.cta {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.3px currentColor;
}





/* =========================================
   Global Content Container Gutters
========================================= */

main {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}




