/* =========================================================
   TypeLTRS — Main Stylesheet
   Organized version
   ========================================================= */

/* =========================================================
   1. RESET & GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --bg: #F7F6F2;
    --text: #000000;
    --line: #000000;
    --hero-color: #0739ff;
    --tester-bg: #ffffff;
    --tester-bg: #ffffff;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-family: serif;
    overflow-x: clip;
    transition:
        background-color 100ms ease-in-out,
        color 100ms ease-in-out;
}

body.high-contrast {
    --bg: #000000;
    --text: #F7F6F2;
    --line: #F7F6F2;
    --tester-bg: #000000;
}

body.high-contrast #hero-tester {
    --hero-text: #F7F6F2;
}

/* High contrast — navigation controls */
body.high-contrast .menu-toggle,
body.high-contrast .contrast-toggle {
    color: var(--text) !important;
    border-color: var(--line) !important;
}

body.high-contrast .menu-toggle::before,
body.high-contrast .menu-toggle::after {
    background-color: var(--text) !important;
}
body.high-contrast .menu-toggle span {
    background-color: var(--text) !important;
}

h1 {
    font-family: "Asquilin", serif;
    font-style: normal;
    font-size: 48px;
    margin: 0;
}

h2 {
    font-family: "Asquilin", serif;
    font-size: 24px;
    margin: 0;
}

p {
    font-size: 16px;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--text);
}

section {
    min-height: 100vh;
    display: flex;
    width: 100%;
}


/* =========================================================
   2. FONTS
   ========================================================= */

@font-face {
    font-family: "Asquilin";
    src: url("../fonts/AsquilinVF.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
}

@font-face {
    font-family: "Asquilin";
    src: url("../fonts/AsquilinItalicVF.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
}

@font-face {
    font-family: "Canija";
    src: url("../fonts/CanijaVF.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
}

@font-face {
    font-family: "TKonfire Crisp";
    src: url("../fonts/TKonfire-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "TKonfire Brush";
    src: url("../fonts/TKonfireBrush-Brush.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}


/* =========================================================
   3. ANNOUNCEMENT BAR
   ========================================================= */

.announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    overflow: hidden;
    background: #000000;
    color: #F7F6F2;
    font-family: "Asquilin", serif;
    font-size: 13px;
    z-index: 1100;
    transition:
        background-color 300ms ease,
        color 300ms ease;
}

.announcement-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: announcement-scroll 7s linear infinite;
}

.announcement-track span {
    flex: 0 0 auto;
    margin-right: 80px;
    white-space: nowrap;
}

@keyframes announcement-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   4. NAVIGATION
   ========================================================= */

nav {
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    padding: 20px 4vw;
    background: transparent;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
}

/* Navigation background fade */

nav::before {
    content: "";
    position: absolute;
    top: -45px;
    left: 0;
    width: 100%;
    height: 250px;

    background: linear-gradient(
        to bottom,
        #F0EEEB 0%,
        rgba(240, 238, 235, 0.85) 1%,
        rgba(240, 238, 235, 0.35) 50%,
        rgba(240, 238, 235, 0) 100%
    );

    pointer-events: none;
    z-index: -1;
}

body.high-contrast nav::before {
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #00b8ff 1%,
        rgba(0, 184, 255, 0.35) 5%,
        rgba(0, 184, 255, 0) 100%
    );
}

nav.nav-hidden {
    transform: translateY(-150%);
}

.logo {
    display: block;
}

.logo img {
    display: block;
    width: clamp(80px, 10vw, 120px);
    height: auto;
    transition: filter 300ms ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 3px;
    background: var(--text);
    transition:
        transform 250ms ease,
        opacity 200ms ease;
}


/* Site menu */

.site-menu {
    position: fixed;
    top: 140px;
    right: 4vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
    z-index: 2000;
}

.site-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-menu a {
    display: block;
    font-family: "Asquilin", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    color: #000000 !important;
    background: #ffffff;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-variation-settings: "wght" 400;
    transition:
        opacity 150ms ease,
        transform 150ms ease,
        font-variation-settings 150ms ease;
}

.site-menu a:hover {
    transform: translateX(-3px);
    font-variation-settings: "wght" 700;
}

/* Contrast toggle */

.contrast-toggle {
    padding: 0;
    border: none;
    background: none;
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    transition:
        transform 300ms ease,
        color 300ms ease;
}

.contrast-toggle:hover {
    transform: scale(1.1);
}

.tester-contrast {
    width: 20px;
    height: 20px;
    font-size: 16px;
}


/* Navigation in hero */

nav.nav-over-hero {
    color: #000000;
}

nav.nav-over-hero .logo img {
    filter: none;
}

nav.nav-over-hero a {
    color: #000000;
}

nav.nav-over-hero .contrast-toggle {
    color: #000000;
}

nav.nav-over-hero .menu-toggle span {
    background: #000000;
}


/* =========================================================
   5. HIGH CONTRAST
   ========================================================= */

body.high-contrast {
    background: var(--bg);
    color: var(--text);
}

body.high-contrast .announcement {
    background: #ffffff;
    color: #000000;
}

body.high-contrast .logo img {
    filter: invert(1);
}

body.high-contrast .contrast-toggle span {
    background: var(--bg);
}


/* =========================================================
   6. ABOUT
   ========================================================= */

section.about {
    position: relative;
    min-height: auto;
    padding-top: 100px;
    background: var(--bg);
    overflow: hidden;
}

section.about::before {
    content: "";
    position: absolute;
    inset: 0;

    background: #F0EEEBFF;

    opacity: 0;
    transition: opacity 100ms ease-in-out;

    z-index: 0;
    pointer-events: none;
}

body.hero-green section.about::before {
    opacity: 1;
}

section.about > * {
    position: relative;
    z-index: 1;
}

section.about article {
    width: 45%;
    display: flex;
    flex-direction: column;
}

section.about article .title {
    display: none;
}

section.about article .description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4vw 0 6vw 4vw;
    font-family: "Asquilin", serif;
    font-size: 24px;
    font-weight: 300;
}

section.about article .description p {
    max-width: 100%;
}

.more {
    margin-top: 2vw;
}

.more button {
    font-family: "Asquilin", serif;
    font-weight: 400;
    font-size: 15px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: var(--text);
    font-variation-settings: "wght" 400;
    transition:
        transform 150ms ease,
        font-variation-settings 150ms ease;
}

.more button:hover {
    transform: translateX(-3px);
    font-variation-settings: "wght" 700;
}


/* =========================================================
   7. TYPEFACE PROJECTS
   ========================================================= */

.typeface-info {
    display: grid;
    grid-template-columns:
        minmax(120px, 1fr)
        minmax(180px, 2fr)
        minmax(180px, 2fr);
    column-gap: 10px;
    align-items: start;
    margin-bottom: 24px;
}

.typeface-info h2 {
    font-size: 20px;
    font-weight: 200;
}

.typeface-info p {
    font-size: 12px;
    font-weight: 200;
    font-family: "Asquilin", serif;
}

#typefaces,
#custom {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    padding: 0vw 2vw 0vw 2vw;
    min-height: auto;
    overflow: visible;
    font-family: "Asquilin", serif;
}

#typefaces article,
#custom article {
    width: 100%;
}

#typefaces figure {
    margin: 0;
}


/* Image scroll */

.image-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 130vw;
    margin-left: -4vw;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.image-scroll::-webkit-scrollbar {
    display: none;
}

.image-scroll figure {
    flex: 0 0 auto;
    margin: 0;
}

.image-scroll img,
.image-scroll video {
    display: block;
    height: min(800px, 45vw);
    width: auto;
    max-width: none;
}


/* =========================================================
   8. SHARED TESTER CONTROLS
   ========================================================= */

/* Tester container */

#tester,
#canija-tester {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: none;

    height: auto;
    min-height: 0;

    padding: 40px 4vw 40px;
    margin: 3vw 0 2vw;

    background: var(--tester-bg);
    border-radius: 8px;
}

/* Tester interaction */

.type-tester {
    transition:
        box-shadow 250ms ease,
        transform 250ms ease;
}

.type-tester:hover {
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Tester rules */

#tester::before,
#canija-tester::before {
    top: 0;
}

#tester::after,
#canija-tester::after {
    bottom: 0;
}


/* Controls row */

.tester-controls {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: center;
    align-items: center;

    width: fit-content;
    margin: 0 auto;

    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

body.high-contrast .tester-controls {
    background: #000000;
    box-shadow: none
}


/* Individual controls */

.control {
    font-family: "Asquilin", serif;
    font-size: 14px;
    display: grid;
    grid-template-columns: auto minmax(100px, 160px) auto;
    align-items: center;
    gap: 10px;
}

#tester .control.style-control {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    grid-template-columns: none;
    align-items: center;
}

#tester .style-control .style-options {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* Sliders */

input[type="range"] {
    appearance: none;
    width: 160px;
    height: 1px;
    background: var(--line);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}


/* Style buttons */

.style-options {
    display: flex;
    align-items: center;
    gap: 16px;
}

.style-button {
    font-family: "Asquilin", serif;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    transition:
        transform 150ms ease,
        font-weight 150ms ease;
}

.style-button:hover,
.weight-selector-button:hover,
#tester .control label:hover,
#tester .control span:hover,
#canija-tester .control label:hover,
#canija-tester .control span:hover,
#tkonfire-tester .control label:hover,
#tkonfire-tester .control span:hover {
    font-weight: 700;
    transform: translateX(-3px);
}

.style-button:hover,
.weight-selector-button:hover,
#tester .control label:hover,
#tester .control span:hover,
#canija-tester .control label:hover,
#canija-tester .control span:hover,
#tkonfire-tester .control label:hover,
#tkonfire-tester .control span:hover {
    font-weight: 700;
    transform: translateX(-3px);
}

.style-button.active {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Alignment buttons */

.alignment-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.align-button {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.align-button span {
    display: block;
    height: 1px;
    background: var(--text);
}


/* Alignment icon: left */

.align-button[data-align="left"] span:nth-child(1) {
    width: 16px;
    align-self: flex-start;
}

.align-button[data-align="left"] span:nth-child(2) {
    width: 11px;
    align-self: flex-start;
}

.align-button[data-align="left"] span:nth-child(3) {
    width: 14px;
    align-self: flex-start;
}


/* Alignment icon: center */

.align-button[data-align="center"] span {
    width: 14px;
    align-self: center;
}


/* Alignment icon: right */

.align-button[data-align="right"] span:nth-child(1) {
    width: 16px;
    align-self: flex-end;
}

.align-button[data-align="right"] span:nth-child(2) {
    width: 11px;
    align-self: flex-end;
}

.align-button[data-align="right"] span:nth-child(3) {
    width: 14px;
    align-self: flex-end;
}


/* Active state */

.align-button.active {
    opacity: 1;
}

.align-button:not(.active) {
    opacity: 0.35;
}

/* Weight selector */

.weight-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.weight-selector-button {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 400;
    color: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 150ms ease,
        font-weight 150ms ease;
}



.weight-selector-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: none;
    flex-direction: column;
    min-width: 100px;
    background: var(--bg);
    border: 1px solid var(--text);
    z-index: 100;
}

.weight-selector-menu button {
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 4px 8px;
    font: inherit;
    text-align: right;
    cursor: pointer;
    white-space: nowrap;
}

.weight-selector-menu button:hover {
    background: var(--text);
    color: var(--bg);
}

.weight-selector.open .weight-selector-menu {
    display: flex;
}


/* Variable Axis Play Button  */

.play-button {
    appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition:
        font-weight 200ms ease,
        transform 200ms ease;
}

.play-button:hover {
    font-weight: 700;
    transform: translateX(-3px);
}

.play-button[aria-pressed="true"] {
    font-weight: 700;
}


/* =========================================================
   9. ASQUILÍN TESTER
   ========================================================= */

.tester-text {
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    min-height: 0px;
    line-height: 1;
    outline: none;
    text-align: center;
    cursor: text;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    caret-color: var(--text);
    margin-top: 80px;
    font-family: "Asquilin", serif;
    font-size: 160px;
    font-weight: 400;
}


/* =========================================================
   10. CANIJA TESTER
   ========================================================= */

.canija-tester-text {
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    min-height: 0px;
    line-height: 1;
    outline: none;
    text-align: center;
    cursor: text;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    caret-color: var(--text);
    margin-top: 80px;
    font-family: "Canija", sans-serif;
    font-size: 160px;
    font-weight: 400;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.footer {
    display: block;
    min-height: auto;
    padding: 1vw;
    margin-top: 1vw;
    font-family: "Asquilin", serif;
}

.footer-line {
    width: 100%;
    height: .5px;
    background: var(--line);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1vw;
}

.footer-info a {
    font-family: "Asquilin", serif;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}


/* =========================================================
   12. ABOUT OVERLAY
   ========================================================= */

.about-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100vh;
    background: #ffffff;
    border-left: .5px solid var(--line);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
        transform 100ms ease,
        opacity 100ms ease;
}

.about-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.about-extended {
    width: 100%;
    height: 100%;
    padding: 4vw;
    overflow-y: auto;
}

.about-close {
    position: absolute;
    top: 20px;
    right: 4vw;
    font-family: "Asquilin", serif;
    font-size: 14px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.extended-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-top: 5vw;
}

.about-extended .extended-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 10px;
    row-gap: 0;

    margin-top: 5vw;
}

.about-extended .extended-content h2 {
    margin: 0;

    font-family: "Asquilin", serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    text-decoration: underline;
}

.about-extended .extended-content p {
    margin: 0 0 24px 0;

    font-family: "Asquilin", serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.05;
}

.about-gif {
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.about-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* =========================================================
   13. SCROLL REVEAL
   ========================================================= */

.scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 500ms ease,
        transform 650ms cubic-bezier(.22, 1.2, .36, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   14. HERO TYPE PLAYGROUND
   ========================================================= */

#hero-tester {
    --hero-text: #000000;

    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--bg) !important;
    color: var(--hero-text) !important;

    padding: 8vw 4vw;
    overflow: hidden;

    transition:
        color 450ms ease-in-out;
}

#hero-tester::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        #F0EEEBFF 0%,
        #00b8ff9c 50%,
        #F0EEEBFF 100%
    );

    opacity: 1;

    transition:
        opacity 100ms ease-in-out;

    z-index: 0;
    pointer-events: none;
}

body.high-contrast #hero-tester::before {
    background: linear-gradient(
        180deg,
        #000000 0%,
        #00b8ff9c 50%,
        #000000 100%
    );
}

#hero-tester > * {
    position: relative;
    z-index: 1;
}

body:not(.hero-green) #hero-tester::before {
    opacity: 0;
}

body:not(.hero-green) #hero-tester {
    --hero-text: var(--text);
}

.hero-tester-text {
    width: 100%;
    font-family: "Asquilin", serif;
    font-size: 100px;
    font-weight: 400;
    font-style: normal;
    opacity: 1;
    line-height: 1;
    letter-spacing: -0.04em;
    text-align: center;
    outline: none;
    cursor: text;
    caret-color: transparent;
    word-break: break-word;
    color: var(--hero-text) !important;

    transition:
        color 450ms ease-in-out,
        opacity 600ms ease;
}

.hero-tester-text:empty::before {
    display: none;
    content: attr(data-placeholder);
    opacity: .35;
    pointer-events: none;
}

.hero-tester-text.intro-finished::after {
    content: "|";
    display: inline-block;
    margin-left: 4px;
    font-weight: 700;
    animation: hero-cursor-blink 900ms steps(1, end) infinite;
}

@keyframes hero-cursor-blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Hero — Cursor Blur */

.hero-cursor-blur {
    position: absolute;
    width: 420px;
    height: 420px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.08) 28%,
            rgba(255, 255, 255, 0) 70%
        );

    filter: blur(35px);

    opacity: 0.45;

    pointer-events: none;

    z-index: 0;

    transition:
        opacity 500ms ease,
        width 700ms ease,
        height 700ms ease;
}

body.high-contrast .hero-cursor-blur {
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.04) 30%,
            rgba(255, 255, 255, 0) 70%
        );
}

/* =========================================================
   15. CUSTOM TYPE PAGE
   ========================================================= */

.custom-page {
    width: 100%;
    padding: 120px 2vw 2vw 2vw;
}

#custom-type-project {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: var(--bg);
    padding: 0vw 1vw 1vw 1vw;
    min-height: auto;
    margin-top: 120px;
    overflow: visible;
    font-family: "Asquilin", serif;
}

#custom-type-project article {
    width: 100%;
    min-width: 0;
}

#custom-type-project .image-scroll {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
}


/* =========================================================
   16. TK ON FIRE TESTER
   ========================================================= */

#tkonfire-tester {
    position: relative;
    display: block;
    width: 100%;

    min-height: auto;

    padding: 2vw 0;
    margin-top: 3vw;
    margin-bottom: 1vw;
}


#tkonfire-tester::before {
    top: 0;
}

#tkonfire-tester::after {
    bottom: 0;
}

.tkonfire-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-bottom: 40px;
    min-height: 20px;
}

.tkonfire-controls .style-options,
.tkonfire-controls .alignment-control,
.tkonfire-controls .control {
    height: 20px;
    display: flex;
    align-items: center;
}

.tkonfire-controls .control {
    gap: 10px;
    width: auto;
}

.tkonfire-controls input[type="range"] {
    width: 160px;
}

.tkonfire-controls .alignment-control {
    gap: 10px;
}

.tkonfire-controls .style-options {
    gap: 16px;
}

.tkonfire-text {
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 100px;
    font-family: "TKonfire Crisp";
    font-size: 120px;
    font-weight: 400;
    line-height: 1;
    outline: none;
    cursor: text;
    text-align: center;
    caret-color: var(--text);
    margin-top: 10px;
}


/* =========================================================
   18. CONTACT OVERLAY
   ========================================================= */

.contact-overlay {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition: opacity 200ms ease;
}

.contact-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* Contact note */

.contact-note {
    position: relative;

    width: min(560px, 80vw);
    min-height: 520px;

    background: #ffffff;

    box-sizing: border-box;

    padding: 70px 60px 60px 60px;

    box-shadow: 0 15px 40px rgba(0,0,0,.12);

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Close */

.contact-close {
    position: absolute;

    top: 25px;
    right: 30px;

    font-family: "Asquilin", serif;
    font-size: 14px;

    border: none;
    background: none;

    padding: 0;

    cursor: pointer;
}


/* Content */

.contact-content {
    width: 100%;
    text-align: center;
}


/* Main title */

.contact-content h2 {
    margin: 0;

    font-family: "Asquilin", serif;
    font-size: 42px;
    font-weight: 400;

    line-height: .95;
}


/* Tagline */

.contact-tagline {
    margin: 25px 0 50px 0;

    font-family: "Asquilin", serif;
    font-size: 24px;
    font-style: italic;

    line-height: 1;
}


/* Description */

.contact-description {
    max-width: 400px;

    margin: 0 auto 55px auto;

    font-family: "Asquilin", serif;
    font-size: 18px;

    line-height: 1.1;
}


/* Contact information */

.contact-details {
    display: flex;
    flex-direction: column;

    gap: 8px;

    font-family: "Asquilin", serif;
    font-size: 16px;
}

.contact-details a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-details span {
    margin-top: 25px;
}

/* =========================================================
   17. RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    /* Announcement */

    .announcement {
        height: 28px;
        font-size: 11px;
        padding: 0 4vw;
    }


    /* Navigation */

    nav {
        top: 50px;
        padding: 12px 4vw;
    }

    .logo img {
        width: 85px;
    }


    /* About */

    section.about article {
        width: 92%;
    }


    /* Typeface projects */

    #typefaces,
    #custom {
        padding: 6vw 4vw;
        margin-top: 80px;
    }

    .typeface-info {
        grid-template-columns: 1fr;
        row-gap: 8px;
        margin-bottom: 24px;
    }

    .typeface-info h2 {
        font-size: 22px;
    }

    .typeface-info p {
        font-size: 15px;
    }

    .image-scroll img,
    .image-scroll video {
        height: 70vw;
        max-height: 500px;
    }


    /* Main testers */

   @media (max-width: 700px) {

    .tester-text {
        font-size: 64px;
        min-height: 130px;
    }

    .tester-controls {
        flex-wrap: wrap;
        gap: 18px 20px;
        justify-content: flex-start;
    }

    .control {
        width: 100%;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .control input[type="range"] {
        width: 100%;
        min-width: 0;
    }

    .control span {
        min-width: 30px;
        text-align: right;
    }
}

    /* Footer */

    .footer {
        padding: 1vw;
        margin-top: 10vw;
    }

    .footer-info {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        white-space: nowrap;
    }

    .footer-info a {
        white-space: nowrap;
    }


    /* About overlay */

    .about-overlay {
        width: 85%;
    }

    .about-extended {
        padding: 6vw 4vw;
    }

    .extended-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 12vw;
    }

   .about-extended .extended-content {
    grid-template-columns: 1fr;
    } 

    .about-extended .extended-content h2 {
    margin-bottom: 12px;
    }

    @media (max-width: 700px) {
    .about-overlay-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

    /* Hero */

    #hero-tester {
        min-height: 100svh;
        padding: 20vw 4vw;
    }

    .hero-tester-text {
        width: 100%;
        font-size: 24px;
        line-height: .9;
    }


    /* TK on fire */

    #tkonfire-tester {
        padding: 6vw 0;
        margin-top: 8vw;
        margin-bottom: 10vw;
    }

    .tkonfire-controls {
        flex-wrap: wrap;
        gap: 18px 20px;
        justify-content: flex-start;
    }

    .tkonfire-text {
        font-size: 48px;
        min-height: 130px;
    }


    /* Custom type */

    .custom-page {
        padding: 100px 4vw 6vw 4vw;
    }

    #custom-type-project {
        padding: 6vw 4vw;
        margin-top: 80px;
    }

    #custom-type-project .image-scroll {
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    /* Contact overlay */

    .contact-note {
        width: 88vw;
        min-height: 480px;
        background: #ffffff;
        padding: 60px 30px 40px 30px;
    }

    .contact-content h2 {
        font-size: 34px;
    }

    .contact-tagline {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .contact-description {
        font-size: 16px;
        margin-bottom: 45px;
    }

}

@media (max-width: 700px) {
    .image-scroll video {
        min-width: 1px;
        min-height: 1px;
        object-fit: contain;
    }
}