@font-face {
  font-family: "BBBPoppinsTN-DisplaySemiBold";
  src: url("font/BBBPoppinsTN-DisplaySemiBold.otf") format("opentype");
}

@font-face {
  font-family: "Crochet Letters";
  src: url("font/Crochet\ Letters\ complete.otf") format("opentype");
}

@font-face {
    font-family: "Aston Script";
    src: url("font/Aston%20Script.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "BBBPoppinsTN-DisplaySemiBold", system-ui, sans-serif;
    color: rgb(18, 18, 18);
    background: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("images/a\ feminist\ crochet\ language.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 3rem 1.5rem;
}

.close-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    padding: 0.4rem;

    display: block;
}

.hero.home {
    min-height: 100vh;
}

h1 {
    margin: 0;
    padding: 0;
    font-family: "BBBPoppinsTN-DisplaySemiBold";
    font-size: clamp(3rem, 12vw, 250px);
    line-height: 1.1;
    max-width: 95vw;
    width: auto;
    font-weight: normal;
    
}

h1 span,
h1 .hero-link {
    display: block;
    width: auto;
    margin: 0 auto;
    text-align: center;
    font-size: inherit;
    line-height: inherit;
}

.hero-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

h1 .left {
    transform: translateX(-0.4em);
    text-decoration: none;
    color: #E4572E;
}

h1 .crochet {
    font-family: "Aston Script", "Crochet Letters", serif;
    transform: translateX(-0.15em);
    color: #805D93;
}

h1 .right {
    transform: translateX(0.4em);
    text-decoration: none;
    color: #FDB833;
}

.hero-link:hover {
    text-decoration: none;
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 120px);
    margin: 0;
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
}

.manifest-content {
    position: relative;
    z-index: 1;
    width: min(100%, calc(100vw - 3rem));
    max-width: 90rem;
    min-height: 100vh;
    padding: 3rem 2rem 4rem;
    margin: 0 auto;
    display: block;
    column-count: 2;
    column-width: 34rem;
    column-gap: clamp(2rem, 3vw, 3rem);
    column-fill: balance;
}

.manifest-content p {
    margin: 0 0 1.8rem;
    padding: 0;
    color: rgb(18, 18, 18);
    white-space: normal;
    line-height: 1.8;
    font-weight: 400;
    display: block;
    font-family: "BBBPoppinsTN-DisplaySemiBold", system-ui, sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    letter-spacing: 0.03em;
    text-align: justify;
    text-indent: 1.5rem;
    hyphens: auto;
    hyphenate-limit-chars: 6 4 2;
    -webkit-hyphenate-character: "\2011";
}

.manifest-content p::first-letter {
    font-family: "Aston Script", serif;
    font-size: clamp(4rem, 6vw, 6.5rem);
    font-weight: normal;
    line-height: 0.8;
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: rgb(18, 18, 18);
}

.content p {
    margin: 0;
    padding: 0;
    color: rgb(18, 18, 18);
    white-space: nowrap;
    line-height: 1;
    font-weight: normal;
    display: inline-block;
    vertical-align: baseline;
    font-family: "BBBPoppinsTN-DisplaySemiBold";
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.letter {
    margin: 0;
    padding: 0;
    color: rgb(18, 18, 18);
    line-height: 1;
    font-family: "Crochet Letters";
    font-size: clamp(4rem, 6vw, 7.5rem);
}

.text-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: min(100%, 86rem);
    padding: 0 1rem;
    align-items: flex-start;
}

.text-preview__field,
.text-preview__output {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255,255,255,0.92);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    min-width: 20rem;
    flex: 1 1 28rem;
    width: 100%;
}

.text-preview__label {
    font-size: 0.95rem;
    color: rgb(25, 25, 25);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-preview__input {
    font-size: 1.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 1rem;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: rgb(10,10,10);
    min-height: 4.5rem;
}

.text-preview__input:focus {
    border-color: rgb(0,0,0);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.text-preview__display {
    min-height: 5.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0,0,0,0.16);
    background: rgba(255,255,255,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Crochet Letters";
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.95;
    color: rgb(10,10,10);
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 820px) {
    .text-preview,
    .content {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .content {
        display: grid;
    }
    .manifest-content {
        column-count: 1;
        padding: 2rem 1rem 3rem;
    }
    .manifest-content p::first-letter {
        float: none;
        display: inline;
        font-size: clamp(3.5rem, 8vw, 4.5rem);
        margin-right: 0.4rem;
    }
}

@media print {
    .print-btn { display: none !important; }
}
