@font-face {
    font-family: "Cappuccino At Noon";
    src: url("/assets/fonts/cappuccino-at-noon.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MMS Everyday Print";
    src: url("/assets/fonts/mms-everyday-print.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oh So Rosemary";
    src: url("/assets/fonts/oh-so-rosemary.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Pinch Of Salt";
    src: url("/assets/fonts/pinch-of-salt.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #221f1f;
    --muted: #5f5a54;
    --paper: #fffdf9;
    --panel: #ffffff;
    --line: #141414;
    --lavender: #dcc2dc;
    --sage: #c8dbc9;
    --soft: #eef1eb;
    --accent: #9b4a91;
    --link: #813f77;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(220, 194, 220, 0.22) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(200, 219, 201, 0.18) 0 1px, transparent 1px 100%),
        var(--paper);
    background-size: 34px 34px;
    color: var(--ink);
    font-family: "Avenir Next", "Trebuchet MS", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a {
    color: var(--link);
    font-weight: 800;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

main {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0;
}

.sheet {
    position: relative;
    overflow: clip;
    background: var(--panel);
    border: 4px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(20, 20, 20, 0.16);
}

.sheet::before {
    content: "";
    position: absolute;
    inset: 20px;
    pointer-events: none;
    border: 3px solid var(--line);
    border-radius: 6px;
}

.sheet-inner {
    --sheet-padding: clamp(26px, 5vw, 54px);
    position: relative;
    padding: var(--sheet-padding);
}

.topline {
    position: relative;
    min-height: clamp(112px, 17vw, 154px);
    margin-bottom: 18px;
    padding: 8px clamp(112px, 18vw, 160px) 0;
}

.brand-mark,
.bow {
    position: absolute;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}

.brand-mark {
    top: clamp(-54px, -4.4vw, -38px);
    left: clamp(-58px, -4.8vw, -42px);
    width: clamp(132px, 18vw, 170px);
    aspect-ratio: 1;
    border-radius: 50%;
}

.bow {
    top: clamp(-56px, -4.8vw, -38px);
    right: clamp(-56px, -4.8vw, -38px);
    width: clamp(144px, 19vw, 190px);
    height: auto;
    transform: rotate(9deg);
    transform-origin: center;
}

.page-title {
    text-align: center;
    text-transform: uppercase;
}

.page-title p {
    margin: 0;
    font-family: "Oh So Rosemary", "Cappuccino At Noon", "Trebuchet MS", sans-serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
}

h1 {
    font-family: "Cappuccino At Noon", "MMS Everyday Print", "Trebuchet MS", sans-serif;
    font-size: clamp(2.3rem, 7vw, 4.4rem);
    font-weight: 900;
    text-align: center;
}

h2 {
    font-family: "MMS Everyday Print", "Trebuchet MS", sans-serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
    font-family: "MMS Everyday Print", "Trebuchet MS", sans-serif;
    font-size: 1.1rem;
}

.subtitle {
    max-width: 820px;
    margin: 20px auto 0;
    font-family: "Pinch Of Salt", "Trebuchet MS", sans-serif;
    font-size: clamp(1.05rem, 2.6vw, 1.5rem);
    line-height: 1.25;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.section-bar {
    position: relative;
    z-index: 1;
    margin: 28px calc(var(--sheet-padding) * -1) 14px;
    padding: 4px calc(var(--sheet-padding)) 4px;
    border: 4px solid var(--line);
    border-radius: 7px;
    background: var(--section-color, var(--lavender));
    color: #ffffff;
    font-family: "MMS Everyday Print", "Trebuchet MS", sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.section-bar.sage {
    --section-color: var(--sage);
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.license-card {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 3px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: inherit;
    text-decoration: none;
}

.license-card strong {
    display: block;
    font-family: "MMS Everyday Print", "Trebuchet MS", sans-serif;
    font-size: 1.45rem;
    line-height: 1.08;
}

.license-card span {
    color: var(--muted);
    font-weight: 600;
}

.callout {
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 8px;
    background: var(--soft);
}

.callout h2,
.callout h3 {
    font-family: "MMS Everyday Print", "Trebuchet MS", sans-serif;
}

.note {
    color: var(--accent);
    font-weight: 900;
}

p {
    margin: 12px 0 0;
}

ul {
    margin: 12px 0 0;
    padding-left: 1.35rem;
}

li + li {
    margin-top: 8px;
}

.tight li + li {
    margin-top: 4px;
}

.micro-heading {
    margin-top: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    background: var(--soft);
    text-align: center;
    text-transform: uppercase;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-note {
    margin-top: 28px;
    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    main {
        width: min(100% - 18px, 980px);
        padding: 10px 0;
    }

    .sheet-inner {
        --sheet-padding: 22px;
        padding: 22px;
    }

    .sheet::before {
        inset: 9px;
    }

    .topline {
        min-height: 0;
        padding: 0;
    }

    .brand-mark,
    .bow {
        display: none;
    }

    .license-grid {
        grid-template-columns: 1fr;
    }

    .section-bar {
        margin-right: calc(var(--sheet-padding) * -1);
        margin-left: calc(var(--sheet-padding) * -1);
        padding-right: calc(var(--sheet-padding) + 14px);
        padding-left: calc(var(--sheet-padding) + 14px);
    }
}
