/* ==========================================================
   ADAOWERRI KITCHEN DESIGN SYSTEM
   TYPOGRAPHY.CSS
   Version: 1.0
   ========================================================== */


/* ==========================================================
   GLOBAL TEXT FOUNDATION
   ========================================================== */

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

body {
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--fw-regular);
    line-height: var(--line-height);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   HEADINGS
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 6vw, var(--font-size-5xl));
}

h2 {
    font-size: clamp(1.875rem, 4.5vw, var(--font-size-4xl));
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, var(--font-size-3xl));
}

h4 {
    font-size: clamp(1.25rem, 3vw, var(--font-size-2xl));
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}


/* ==========================================================
   PARAGRAPHS
   ========================================================== */

p {
    margin-top: 0;
    margin-bottom: var(--space-lg);
    color: var(--color-text-light);
}

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

.lead {
    max-width: 760px;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.75;
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-xs {
    font-size: var(--font-size-xs);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-light {
    color: var(--color-text-light);
}

.text-dark {
    color: var(--color-text);
}

.text-white {
    color: var(--color-white);
}


/* ==========================================================
   LINKS
   ========================================================== */

a {
    color: var(--color-primary);
    text-decoration: none;
    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 3px solid rgba(31, 94, 59, 0.25);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}


/* ==========================================================
   EMPHASIS
   ========================================================== */

strong,
b {
    color: inherit;
    font-weight: var(--fw-bold);
}

em,
i {
    font-style: italic;
}

mark {
    padding: 0.1em 0.3em;
    color: var(--color-text);
    background-color: var(--color-accent-light);
    border-radius: var(--radius-xs);
}


/* ==========================================================
   LISTS
   ========================================================== */

ul,
ol {
    margin-top: 0;
    margin-bottom: var(--space-lg);
    padding-left: 1.4rem;
    color: var(--color-text-light);
}

li {
    margin-bottom: var(--space-xs);
}

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


/* ==========================================================
   BLOCKQUOTES
   ========================================================== */

blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.5vw, 1.4rem);
    font-weight: var(--fw-medium);
    line-height: 1.6;
    background-color: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
    color: inherit;
}

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: var(--fw-medium);
}


/* ==========================================================
   SECTION LABELS AND EYEBROWS
   ========================================================== */

.section-eyebrow,
.eyebrow {
    display: inline-block;
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    max-width: 820px;
    margin-bottom: var(--space-md);
}

.section-description {
    max-width: 720px;
    margin-bottom: 0;
    font-size: var(--font-size-lg);
}


/* ==========================================================
   TEXT ALIGNMENT
   ========================================================== */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/* ==========================================================
   FONT WEIGHT UTILITIES
   ========================================================== */

.fw-light {
    font-weight: var(--fw-light);
}

.fw-regular {
    font-weight: var(--fw-regular);
}

.fw-medium {
    font-weight: var(--fw-medium);
}

.fw-semibold {
    font-weight: var(--fw-semibold);
}

.fw-bold {
    font-weight: var(--fw-bold);
}

.fw-black {
    font-weight: var(--fw-black);
}


/* ==========================================================
   WORDPRESS CONTENT ELEMENTS
   ========================================================== */

.entry-title,
.page-title,
.widget-title {
    font-family: var(--font-heading);
}

.entry-content {
    color: var(--color-text-light);
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.wp-block-heading {
    color: var(--color-text);
}

.wp-block-quote {
    border-left-color: var(--color-primary);
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

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

.screen-reader-text:focus {
    top: 10px;
    left: 10px;
    z-index: var(--z-toast);
    display: block;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    margin: 0;
    overflow: visible;
    clip: auto;
    color: var(--color-white);
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    white-space: normal;
}


/* ==========================================================
   MOBILE REFINEMENTS
   ========================================================== */

@media (max-width: 767px) {

    body {
        line-height: 1.65;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        letter-spacing: -0.015em;
    }

    .lead {
        font-size: 1.05rem;
    }

    .section-description {
        font-size: var(--font-size-base);
    }

    blockquote {
        padding: var(--space-md);
    }
}