/* ============================================================
   TAE Base Styles
   Reset, typography, global defaults
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--tae-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tae-black);
  background-color: var(--tae-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tae-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--tae-blue-deep);
  text-decoration: underline;
}

::selection {
  background-color: var(--tae-selection-bg);
  color: var(--tae-selection-text);
}

ul, ol {
  padding-left: 1.5em;
}

hr {
  border: none;
  border-top: 1px solid var(--tae-grey-border);
  margin: var(--tae-space-8) 0;
}


/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tae-font-heading);
  color: var(--tae-black);
  line-height: 1.15;
  margin-bottom: var(--tae-space-4);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.3rem);
  font-weight: 400;
  line-height: 1.25;
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  line-height: 1.3;
}

h5, h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin-bottom: var(--tae-space-4);
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  font-family: var(--tae-font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.3rem);
  line-height: 1.4;
  border-left: 3px solid var(--tae-blue-deep);
  padding-left: var(--tae-space-6);
  margin: var(--tae-space-8) 0;
  color: var(--tae-black);
}

small, .text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.text-caption {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--tae-grey-mid);
}

.text-display {
  font-family: var(--tae-font-heading);
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
}


/* --- Layout helpers --- */

.container {
  max-width: var(--tae-content-max);
  margin: 0 auto;
  padding: 0 var(--tae-content-gutter);
}

.container--narrow {
  max-width: var(--tae-content-narrow);
}

.container--wide {
  max-width: var(--tae-content-wide);
}

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