/* Puntoflora theme: global tokens, header, footer, shared pieces (card note, buttons). */

@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/frontend/fonts/bricolage-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/frontend/fonts/bricolage-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nanum Pen Script";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/frontend/fonts/nanum-pen-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --stelo: #1d3a2b;
    --stelo-2: #285039;
    --stelo-ink: #e6efe2;
    --stelo-muted: #a9c2a8;
    --foglia: #eef3ec;
    --carta: #ffffff;
    --ink: #17201b;
    --muted: #55625a;
    --line: #d9e1d6;
    --ciclamino: #c8175d;
    --ciclamino-dark: #a10f49;
    --biro: #22388f;
    --font: "Bricolage Grotesque", system-ui, sans-serif;
    --hand: "Nanum Pen Script", "Bradley Hand", cursive;
    --max: 1200px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-color: var(--stelo-2) var(--foglia);
}

body {
    margin: 0;
    font-family: var(--font);
    font-optical-sizing: auto;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--carta);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--ciclamino);
    color: #fff;
}

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

a {
    color: inherit;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

:focus-visible {
    outline: 2px solid var(--ciclamino);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 750;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Buttons: ciclamino is the only action colour */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3.25rem;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--ciclamino);
    color: #fff;
    font: 650 1.0625rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, transform .3s var(--ease);
}

.btn:hover {
    background: var(--ciclamino-dark);
}

.btn:active {
    transform: scale(.97);
}

.btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.link-action {
    color: var(--ciclamino);
    font-weight: 650;
    text-decoration: none;
}

.link-action:hover {
    text-decoration: underline;
}

/* The note card: the brand's one object. White stock, punched hole, string. */
.note {
    position: relative;
    background: var(--carta);
    color: var(--biro);
    padding: 2.2rem 1.6rem 1.4rem;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(23, 32, 27, .12), 0 14px 30px -10px rgba(23, 32, 27, .45);
    transform: rotate(-3deg);
}

.note::before {
    content: "";
    position: absolute;
    top: .85rem;
    left: 50%;
    width: .55rem;
    height: .55rem;
    margin-left: -.275rem;
    border-radius: 50%;
    background: var(--stelo);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
}

.note--hung::after {
    content: "";
    position: absolute;
    top: -2.2rem;
    left: calc(50% - 1px);
    width: 2px;
    height: 3.2rem;
    background: #b98a5e;
    transform: rotate(8deg);
    transform-origin: bottom;
    z-index: -1;
}

.note__text {
    font-family: var(--hand);
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.02;
    min-height: 2.1em;
    overflow-wrap: anywhere;
}

.note__sign {
    margin-top: .6rem;
    font-family: var(--hand);
    font-size: 1.6rem;
    text-align: right;
}

/* Header */
.topline {
    background: var(--stelo);
    color: var(--stelo-ink);
    font-size: .875rem;
}

.topline .wrap {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    white-space: nowrap;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.topline a {
    text-decoration: none;
    font-weight: 600;
}

.topline__extra {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 4rem;
}

.wordmark {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.05em;
    text-decoration: none;
    color: var(--stelo);
    line-height: 1;
}

.wordmark span {
    color: var(--ciclamino);
}

.site-nav {
    display: none;
    gap: 1.6rem;
    font-weight: 550;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ciclamino);
}

.site-header__tools {
    margin-left: auto;
    display: flex;
    gap: .25rem;
}

.tool {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--stelo);
    text-decoration: none;
}

.tool:hover {
    background: var(--foglia);
}

.tool .icon {
    width: 1.4rem;
    height: 1.4rem;
}

.tool__count {
    position: absolute;
    top: .3rem;
    right: .2rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 .25rem;
    border-radius: 999px;
    background: var(--ciclamino);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

@media (min-width: 900px) {
    .site-nav {
        display: flex;
    }

    .topline__extra {
        display: inline;
    }
}

/* Footer */
.site-footer {
    background: var(--stelo);
    color: var(--stelo-ink);
    padding: 4.5rem 0 2rem;
}

.site-footer .wordmark {
    color: #fff;
    font-size: 2.2rem;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}

.site-footer__lead {
    margin-top: 1rem;
    max-width: 30ch;
    color: var(--stelo-muted);
}

.site-footer h3 {
    font-size: .95rem;
    letter-spacing: 0;
    font-weight: 650;
    margin-bottom: .8rem;
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
    color: var(--stelo-muted);
}

.site-footer ul a {
    text-decoration: none;
}

.site-footer ul a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__legal {
    margin-top: 3.5rem;
    font-size: .8rem;
    color: var(--stelo-muted);
}

.site-footer__credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(230, 239, 226, .18);
    font-size: .8rem;
    color: var(--stelo-ink);
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s;
}

.site-footer__credit:hover {
    opacity: 1;
}

.site-footer__credit img {
    height: 16px;
    width: auto;
}

@media (min-width: 800px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1.3fr;
    }
}

/* Demo notice toast */
.demo-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 50;
    max-width: calc(100% - 2rem);
    padding: .9rem 1.2rem;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4);
    transform: translate(-50%, 150%);
    visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s .5s;
}

.demo-toast.is-on {
    transform: translate(-50%, 0);
    visibility: visible;
    transition: transform .5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
