body {
    padding: 0;
    margin: 0;
    font-family: 'Gloock', serif;
    font-size: 20px;
    color: #4A3F55;
    background: #F5F4F2;
}

ul, li {
    display: block;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

p {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

a:active, a:focus, button:active, button:focus {
    outline: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

a.btn {
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 50px;
    border: 3px solid #4A3F55;
    border-radius: 20px;
    color: #4A3F55;
    font-size: 25px;
    font-weight: 600;
    transition: 1s;
}

a.btn:hover {
    background: #4A3F55;
    color: #F5F4F2;
    transition: 1s;
}

section {
    padding: 60px 0;
}

h1 {
    font-size: 64px;
    font-weight: 900;
    text-align: center;
}

.crown {
    padding: 20px 0;
    background: #4A3F55;
    position: relative;
}

.crown .crest {
    display: block;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto;
    width: fit-content;
    margin-bottom: 10px;
    color: #F5F4F2;
}

.crown .palette{
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.crown .palette.active {
    opacity:1;
    transform:none;
    pointer-events:auto;
}

.crown .palette__one {
    margin: 0 15px;
}

.crown .palette__one a {
    color: #F5F4F2;
}

.bar {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar span {
    width: 100%;
    height: 3px;
    background: #F5F4F2;
    transition: all 0.3s;
}

.bar.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 5px);
}

.bar.active span:nth-child(2) {
    opacity: 0;
}

.bar.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.picture {
    position: relative;
    overflow: hidden;
}

.picture img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

h2 {
    font-size: 40px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
}

.pattern .pasth1-v2 {
    text-align: center;
    margin-top: 25px;
}

.pattern a {
    margin: 0 auto;
    margin-top: 30px;
}

.pattern .info {
    position: relative;
}

.picture {
    width: 740px;
    height: 500px;
    border-radius: 50px;
    margin: 0 auto;
    margin-top: 100px;
}

.pattern .stat {
    position: absolute;
    z-index: 2;
    margin-top: 25px;
    margin-left: -10px;
    background: #F5F4F2;
    top: 0;
    width: 175px;
    height: 95px;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    justify-content: center;
    align-items: center;
}

.pattern .stat p:first-child {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.pattern .stat p:last-child {
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.pattern.page h1 {
    color: #4A3F55;
    margin-bottom: 40px;
}

.pattern.page h2 {
    text-align: start;
    margin-top: 40px;
    margin-bottom: 10px;
}

.pattern.page p {
    margin-bottom: 10px;
}

.pattern.page p:last-of-type {
    margin-bottom: 0;
}

.atelier__card {
    margin-bottom: 30px;
    text-align: center;
}

.atelier__card p:first-child {
    font-size: 24px;
    font-weight: 600;
}

.gallery .picture {
    margin-top: 0;
    width: 100%;
    height: 500px;
    border-radius: 20px;
}

.gallery .picture img {
    width: 110%;
}

.gallery p {
    margin-bottom: 20px;
}

.gallery p:last-of-type {
    margin-bottom: 0;
}

.gallery p b {
    font-size: 24px;
}

.ledger .ledger__one .front, .ledger .ledger__one .back {
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background: #F5F4F2;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
}

.ledger .ledger__one p {
    width: 100%;
    font-weight: 600;
}

.ledger .ledger__one .front p:last-child, .ledger .ledger__one .back p:last-child {
    font-size: 18px;
    text-align: end;
}

.studio .all {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 20px;
    padding: 30px;
}

.studio .all .studio__one {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.studio .all .studio__one:last-of-type {
    margin-bottom: 0;
}

.studio .all .studio__one p:first-child {
    margin-right: 10px;
}

.dialog-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.duo-dialog-card {
    gap: 20px;
}

.dialog-card input,
.dialog-card textarea {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    color: #4A3F55;
    padding: 0 25px;
    border: 1px solid #4A3F55;
    border-radius: 100px;
    background: #F5F4F2;
    transition: 0.5s;
    margin-bottom: 0;
}

.dialog-card input {
    height: 50px;
}

.dialog-card textarea {
    height: 120px;
    padding: 15px 25px;
    border-radius: 25px;
    resize: vertical;
}

.dialog-card input:focus,
.dialog-card textarea:focus {
    outline: none;
    border: 1px solid #4A3F55;
}

.dialog-card input::placeholder,
.dialog-card textarea::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
}

.dialog-card-check {
    align-items: center;
    gap: 10px;
    padding-left: 0;
}

.dialog-card-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #4A3F55; 
}

.dialog-card-check label {
    font-size: 16px;
    margin-bottom: 0;
    color: #4A3F55;
}

.dialog-card-check label a {
    color: #ff0000;
    text-decoration: underline;
}

.dialog-card-check label a:hover {
    color: #ff0000;
}

button.btn {
    justify-content: center;
    cursor: pointer;
    align-items: center;
    width: 100%;
    height: 50px;
    border: 3px solid #4A3F55;
    border-radius: 20px;
    color: #4A3F55;
    font-size: 25px;
    font-weight: 600;
    transition: 1s;
}

button.btn:hover {
    background: #4A3F55;
    color: #F5F4F2;
    transition: 1s;
}

/* form-error */
.dialog-card input.error,
.dialog-card textarea.error,
.dialog-card input.error:focus,
.dialog-card textarea.error:focus {
    border: 1px solid #ff0000;
}

#privacyConsent.error {
    box-shadow: inset 0 0 0 1px #ff0000;
    outline: none;
}

.dialog-card-check.error {
    border: 1px solid #ff0000; 
}

.dialog-card-check.error input[type="checkbox"] {
    border: 1px solid #ff0000;
}

/* inkwell */
#inkwell {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    overflow: hidden;
    display: none;
    z-index: 10001;
}

#inkwell img {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 50%;
    margin-left: -25px;
    top: 50%;
    margin-top: -25px;
    z-index: 10001;
}

.parchment {
    background: #4A3F55;
    padding: 20px;
}

.parchment .crest {
    font-size: 26px;
    font-weight: 700;
    margin: 0 auto;
    color: #F5F4F2;
}

.parchment .palette{
    opacity: 1;
}

.parchment .palette__one {
    margin-bottom: 5px;
    align-items: center;
}

.parchment .palette .palette__one:last-child {
    margin-bottom: 0;
}

.parchment .palette__one a {
    display: block;
    font-size: 16px;
    color: #F5F4F2;
}

.parchment .palette__one p {
    font-size: 16px;
    color: #F5F4F2;
}

.parchment .palette__one p:first-child {
    margin-right: 10px;
}

.parchment .palette.politica {
    border-top: 2px solid #F5F4F2;
    margin-top: 20px;
    padding-top: 20px;
    justify-content: center;
}

.parchment .palette.politica .palette__one {
    margin: 0 15px;
}

.parchment .palette.politica .palette__one p {
    margin-right: 0;
}

.biscuit {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 400px;
    background: #F5F4F2;
    box-shadow: 0 6px 20px rgba(43, 58, 66, 0.25);
    z-index: 1000;
    display: none;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.biscuit__box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.biscuit__copy h3 {
    font-size: 18px;
    color: #4A3F55;
    margin-bottom: 8px;
}

.biscuit__copy p {
    font-size: 14px;
    color: #444;
    margin-bottom: 0;
    line-height: 1.4;
}

.biscuit__copy a {
    color: #ff0000;
    text-decoration: underline;
}

.biscuit__copy a:hover {
    color: #4A3F55;
}

.biscuit__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.biscuit__actions .btnx_prime {
    min-width: 100px;
    height: 38px;
    border-radius: 100px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    background: #4A3F55;
    color: #F5F4F2;
}

.biscuit__actions .btnx_prime.btnx_dim {
    background: #ccc;
    color: #333333;
}

.biscuit__actions .btnx_prime:hover {
    opacity: 0.85;
}