:root {
    color-scheme: light;
    --rose: #f53675;
    --menu-ink: #330b1a;
    --menu-divider: #bd2458;
    --pink-link: #f2eff1;
    --berry: #a5164a;
    --berry-dark: #811037;
    --ink: #402333;
    --soft: #fff0f5;
    --paper: #fffafc;
    --line: #edc5d3;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: #f8edf2;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--berry-dark); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--berry-dark); outline-offset: 3px; }
[hidden] { display: none !important; }
.site {
    --notices-width: 155px;
    --column-gap: 13px;
    --notice-inset: 9px;
    max-width: 810px;
    margin: 14px auto;
    background: #fff;
    border: 1px solid var(--line);
}
.site-header {
    position: relative;
    display: grid;
    align-items: end;
    height: 150px;
    padding-bottom: 10px;
    background: var(--rose);
}
.site-header.has-glow::before, .site-header.has-dark-edges::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}
.site-header.has-glow::before {
    background: radial-gradient(ellipse 14% 105% at 39.5% 54%, #ffc5db 0%, #ffbad18c 39%, transparent 74%);
}
.site-header.has-dark-edges::after {
    background: linear-gradient(90deg, #7f123d80, transparent 29% 70%, #7f123d80);
}
.brand { position: relative; display: block; width: 100%; max-width: 760px; margin-inline: auto; }
.brand-art {
    display: block;
    width: 100%;
    height: auto;
    mask:
        linear-gradient(90deg, #000 27.1%, transparent 27.1% 51%, #000 51%),
        linear-gradient(90deg, #000 28%, transparent 28%) bottom / 100% 38% no-repeat,
        linear-gradient(90deg, transparent 50.5%, #000 50.5%) bottom / 100% 50% no-repeat;
}
.brand-couple {
    position: absolute;
    inset-block: -40% -10px;
    left: 29%;
    width: 20%;
    overflow: hidden;
    mix-blend-mode: multiply;
}
.brand-couple img {
    position: absolute;
    top: -5%;
    left: 50%;
    width: 345%;
    height: auto;
    transform: translateX(-50%);
    filter: contrast(2);
}
.brand:focus-visible { outline-color: #fff; }
.status-bar {
    --bar-inset: 12px;
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    padding: 7px var(--bar-inset);
    background: var(--rose);
    border-block: 1px solid var(--menu-divider);
    border-top-color: #fff;
}
.status-bar a { font-size: 12px; font-weight: bold; }
.status-bar time { margin-inline-start: auto; font-size: 12px; }
.site .status-bar time {
    flex: 0 0 calc(var(--notices-width) - var(--notice-inset) - var(--bar-inset));
}
.site-grid {
    display: grid;
    grid-template-columns: 160px minmax(0,1fr) var(--notices-width);
    align-items: stretch;
    gap: var(--column-gap);
    padding-top: 1px;
}
.left-column, .right-column, main { min-width: 0; }
main { padding-bottom: 22px; }
.left-column { background: var(--rose); }
.category-nav, .right-column {
    background: var(--rose);
    color: var(--menu-ink);
    border: 1px solid var(--menu-divider);
}
.category-nav ul { margin: 0; padding: 0; list-style: none; }
.category-nav a {
    display: block;
    padding: 8px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: bold;
    text-decoration: none;
}
.category-nav li + li { border-top: 1px solid var(--menu-divider); }
.category-nav a:hover, .category-nav li a[aria-current] { background: var(--berry); text-decoration: underline; }
.category-nav .category-heading, .category-nav .category-add, .right-column h2 {
    background: var(--rose);
}
.category-nav .category-heading:hover, .category-nav .category-add:hover { background: var(--berry); }
.category-nav .category-add { border-top: 1px solid var(--menu-divider); }
.side-menu-image { display: block; max-width: 100%; height: auto; margin: 8px auto 0; }
h1 { margin: 2px 0 12px; color: #000; font-size: 21px; line-height: 1.2; }
.listing-card {
    padding: 0 0 10px;
    margin: 0 0 10px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.listing-text { display: flow-root; }
.ad-photo { display: block; float: right; margin: 0 0 8px 10px; }
.ad-photo img { display: block; width: 100px; height: 100px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; }
.ad-silhouette {
    width: 100px;
    height: 100px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #f8dce7 url("/images/kiisuke-siluetid.webp") 0 0 / 300% 200% no-repeat;
}
.ad-silhouette[data-category="2"] { background-position: 50% 0; }
.ad-silhouette[data-category="3"] { background-position: 100% 0; }
.ad-silhouette[data-category="4"] { background-position: 0 100%; }
.ad-silhouette[data-category="5"] { background-position: 50% 100%; }
.ad-silhouette[data-category="6"] { background-position: 100% 100%; }
.ad-date, .ad-contact { padding: 5px 7px; background: var(--soft); border-radius: 3px; font-size: 11px; }
.ad-date { margin-top: 6px; }
.ad-contact { margin-top: 6px; padding-bottom: 0; border-radius: 3px 3px 0 0; }
.ad-contact + .ad-date { margin-top: 0; border-radius: 0 0 3px 3px; }
.ad-contact, .ad-contact + .ad-date { background: #f4cadb; }
.ad-sms-button { display: none; }
@media (max-width: 675px), (pointer: coarse) {
    .ad-sms-button {
        display: flex;
        width: fit-content;
        min-height: 44px;
        align-items: center;
        margin: 6px 0 3px;
        padding: 0 12px;
        border-radius: 3px;
        background: var(--berry);
        color: #fff;
        font: bold 12px Verdana, sans-serif;
        text-decoration: none;
    }
}
.right-column h2 { margin: 0; padding: 8px; font-size: 12px; }
.right-column p { margin: 0; padding: 8px; background: #fff; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.right-column p + p { border-top: 1px solid var(--menu-divider); }
.horoscope-card { display: flex; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.horoscope-card h2 { margin: 0 0 5px; color: var(--berry); font-size: 15px; }
.horoscope-card p { margin: 0; line-height: 1.45; }
.horoscope-card img { border-radius: 3px; object-fit: cover; }
.legacy-header { max-width: 764px; text-align: left; }
.listing-card:has(+ .pagination) { margin-bottom: 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 22px; }
.pagination a {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid var(--berry);
    border-radius: 3px;
    background: var(--berry);
    color: #fff;
    font: bold 12px/1.25 Verdana, Geneva, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.pagination a {
    background: var(--rose);
    border-color: var(--menu-divider);
}
.pagination a:hover { background: var(--berry); }
.site-form { display: grid; gap: 12px; color: var(--rose); }
.site-form label { display: grid; gap: 4px; color: #000; font-weight: bold; }
#ad-photo-label { color: #000; }
.site-form input:not([type="hidden"]), .site-form select, .site-form textarea {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--soft);
    color: var(--rose);
    font: inherit;
}
.site-form textarea { resize: vertical; }
.contact-form input:is([name="nimi"], [name="email"]) {
    width: max(min(100%, 150px), calc(100% - 150px));
}
.contact-form textarea {
    width: max(min(100%, 150px), calc(100% - 100px));
    font-weight: normal;
}
.site-form button, .site-form .ad-file-picker {
    justify-self: start;
    min-height: 44px;
    padding: 9px 14px;
    border: 0;
    border-radius: 3px;
    background: var(--berry);
    color: #fff;
    font: bold 13px Verdana, sans-serif;
    cursor: pointer;
}
.site-form button:hover, .site-form .ad-file-picker:hover { background: var(--berry-dark); }
.ad-form { --short-field-width: 240px; }
.ad-form > button[type="submit"] { margin-block-start: 8px; }
.ad-form select { width: min(100%, var(--short-field-width)); }
.ad-form-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "fields preview" "label preview" "description description";
    align-items: end;
    gap: 10px 12px;
}
.ad-form-details:has(.ad-form-preview[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "fields" "label" "description";
}
.ad-form-fields { grid-area: fields; display: grid; gap: 9px; min-width: 0; }
.ad-form-fields input:is([name="nimi"], [name="asukoht"], [name="telefon"]) { width: min(100%, var(--short-field-width)); }
.ad-form-fields input:is([name="email"], [name="msn"]) {
    field-sizing: content;
    width: fit-content;
    min-width: min(100%, var(--short-field-width));
    max-width: 100%;
    justify-self: start;
}
.ad-form-fields input[name="vanus"] { width: calc(2ch + 32px); text-align: center; }
.ad-form-description-label { grid-area: label; }
.ad-form-details textarea { grid-area: description; }
.ad-file-field { font-weight: bold; }
.ad-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 4px; }
.site-form .ad-file-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
}
.ad-file-picker input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.ad-file-picker:focus-within { outline: 2px solid var(--berry-dark); outline-offset: 3px; }
.ad-file-name { font-weight: normal; min-width: 0; overflow-wrap: anywhere; }
.ad-file-mobile { display: none; }
.ad-form-preview {
    grid-area: preview;
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--soft);
}
.ad-form-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-preview-fallback { display: block; padding: 32px 4px 4px; font-size: 11px; }
.site-form .ad-form-preview button {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 17px;
}
@media (max-width: 640px), (pointer: coarse) {
    .site-form input:not([type="hidden"]), .site-form select, .site-form textarea { font-size: 16px; }
    .ad-file-mobile { display: inline; }
    .ad-file-desktop { display: none; }
    .site-form .ad-file-picker { min-height: 44px; }
}
.form-errors, .receipt { display: flow-root; padding: 12px; margin-bottom: 10px; background: var(--soft); border: 1px solid var(--line); }
.receipt h2 { margin-top: 0; font-size: 16px; }
.activation-command { color: var(--berry-dark); font-size: 16px; overflow-wrap: anywhere; }
.activation-actions { color: var(--ink); gap: 4px; }
.form-policy { color: var(--ink); }
.terms-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px; background: var(--soft); }
.site-terms { line-height: 1.55; overflow-wrap: anywhere; }
.site-terms section { margin-top: 16px; }
.site-terms h2 { margin: 0 0 12px; padding: 8px 10px; background: var(--soft); color: #000; font-size: 17px; }
.site-terms h3 { color: var(--berry-dark); margin-bottom: 4px; font-size: 14px; }
.site-terms p { margin: 0 0 12px; }
.right-column .sms-instructions { background: var(--soft); }
footer {
    padding: 9px 12px;
    background: var(--rose);
    font-size: 12px;
    text-align: center;
}
/* Light links share a darker edge against the original bright pink. */
.status-bar a, .status-bar time, .category-nav a, .pagination a, .right-column h2, footer, footer a {
    color: var(--pink-link);
    text-shadow: 0 1px 1px #6c1233;
}
footer a:focus-visible { outline-color: #fff; }
#photo-dialog { padding: 0; border: 0; max-width: min(95vw, 1200px); max-height: 94vh; background: #fff; }
#photo-dialog::backdrop { background: rgb(34 13 25 / .83); }
#photo-dialog img { display: block; max-width: 100%; max-height: 85vh; object-fit: contain; }
#photo-dialog form { display: flex; justify-content: flex-end; padding: 3px 6px; }
#photo-dialog button { border: 0; background: #fff; color: var(--berry-dark); font-size: 23px; cursor: pointer; }

@media (max-width: 780px) {
    .site {
        --notices-width: 150px;
        --column-gap: 0px;
        width: 762px;
        margin: 0 auto;
    }
    .site-grid { grid-template-columns: 140px minmax(0, 1fr) var(--notices-width); }
    .site-grid > main { padding-inline: 10px; }
}

.site-header.winter-logo::before {
    background: radial-gradient(ellipse 17% 100% at 39.5% 52%, #ffeefa 0%, #f3d8ff9c 35%, transparent 77%);
}
.site-header.winter-logo::after {
    background:
        linear-gradient(180deg, #fff1f888, transparent 32%),
        linear-gradient(90deg, #62134d96, transparent 29% 70%, #62134d96);
}
.winter-snow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    color: #fff5fc;
}
.winter-snow span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: var(--size);
    line-height: 1;
    opacity: var(--opacity, .82);
    text-shadow: 0 1px 4px #b64b83;
}
.winter-tree {
    position: absolute;
    bottom: 5px;
    left: 11%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 140px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px #701642);
    pointer-events: none;
}
.winter-logo-text {
    position: absolute;
    left: 0;
    top: 42%;
    width: 28.03%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}
.winter-text-ready .brand-art {
    mask:
        linear-gradient(90deg, transparent 51%, #000 51%),
        linear-gradient(90deg, transparent 50.5%, #000 50.5%) bottom / 100% 50% no-repeat;
}
@media (max-width: 500px) {
    .winter-tree { transform: translateX(-50%) scaleX(.7); left: 13%; }
}
.winter-lights {
    position: absolute;
    top: 35%;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: start;
    height: 10px;
    border-top: 1px solid #651239b3;
    border-radius: 50%;
    pointer-events: none;
}
.winter-lights--left { left: 2.5%; width: 25%; }
.winter-lights--right { left: 51%; width: 46%; }
.winter-lights i, .winter-frame i {
    width: clamp(3px, .8vw, 7px);
    height: clamp(4px, 1vw, 9px);
    color: #fff3a1;
    background: currentColor;
    border-radius: 35% 35% 60% 60%;
    box-shadow: 0 0 5px currentColor;
}
.winter-lights i:nth-child(3n + 2) { margin-top: 3px; color: #a4f5f8; }
.winter-lights i:nth-child(3n + 3) { margin-top: 1px; color: #ffb4d2; }
.winter-frame {
    position: absolute;
    inset: 5px;
    z-index: 1;
    border: 1px solid #65123982;
    border-radius: 6px;
    pointer-events: none;
}
.winter-frame span { position: absolute; display: flex; justify-content: space-between; }
.winter-frame--top, .winter-frame--bottom { inset-inline: 12px; }
.winter-frame--top { top: 0; }
.winter-frame--bottom { bottom: 0; }
.winter-frame--left, .winter-frame--right { inset-block: 12px; flex-direction: column; }
.winter-frame--left { left: 0; }
.winter-frame--right { right: 0; }
.winter-frame i {
    width: clamp(3px, .55vw, 5px);
    height: clamp(3px, .55vw, 5px);
    border-radius: 50%;
}
.winter-frame i:nth-child(3n + 2) { color: #a4f5f8; }
.winter-frame i:nth-child(3n + 3) { color: #ffb4d2; }
