@font-face { font-family: Jost; src: url("/fonts/jost.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Corm; src: url("/fonts/corm.woff2") format("woff2"); font-display: swap; }

:root {
    color-scheme: dark;
    --white: #fff;
    --ink: #f7f6ed;
    --gold: #dfc590;
    --muted: #baccc3;
    --line: #a1bcb139;
    background: #070f0d;
    color: var(--ink);
    font: 400 1rem/1.45 Jost, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100svh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 70% 6%, #224337 0%, transparent 52%),
        radial-gradient(ellipse at 12% 92%, #142f28 0%, transparent 48%),
        #070f0d;
}
a, button { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.card-shell { width: min(910px, 100%); padding: clamp(12px, 3vw, 28px); }
.profile-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) auto;
    grid-template-areas: "portrait brand brand" "portrait profile profile" "portrait contact qr" "portrait cafe qr";
    align-items: center;
    gap: 9px clamp(12px, 3vw, 26px);
    padding: clamp(13px, 2.6vw, 22px);
    isolation: isolate;
    border: 1px solid #96b3a358;
    border-radius: 25px 8px 25px 8px;
    background:
        radial-gradient(ellipse at 0% 0%, #3d6b543d, transparent 68%),
        linear-gradient(135deg, #152c25dc, #0b1c17e8 66%);
    box-shadow: 0 22px 60px #020a078c, inset 0 0 0 3px #edf6ef06;
}
.profile-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 7%;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f4dfb4bf 33%, #d1e9db66 78%, transparent);
}
.cafe-brand {
    grid-area: brand;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--white);
}
.cafe-brand img {
    flex-shrink: 0;
    width: 26px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.cafe-brand span {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.portrait-frame {
    grid-area: portrait;
    position: relative;
    min-height: 275px;
    align-self: stretch;
    overflow: hidden;
    border: 1px solid #aecbbc54;
    border-radius: 14px 4px 14px 4px;
    background:
        radial-gradient(ellipse at 46% 26%, #72958362, transparent 75%),
        linear-gradient(155deg, #2b4c3f, #0b1d16);
}
.portrait, .portrait-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait { object-fit: contain; object-position: center; }
.portrait-placeholder {
    display: grid;
    place-items: center;
    color: var(--gold);
    font: 600 clamp(3rem, 9vw, 6rem)/.9 Corm, Georgia, serif;
}
.profile-details { grid-area: profile; min-width: 0; }
.profile-details h1, .card-message h1 {
    margin: 0;
    font: 600 clamp(1.9rem, 6.1vw, 3.8rem)/.9 Corm, Georgia, serif;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.position { margin: 4px 0 0; color: var(--gold); font-size: clamp(.88rem, 2.7vw, 1.08rem); overflow-wrap: anywhere; }
.contact { grid-area: contact; display: grid; gap: 6px; min-width: 0; }
.contact a, #share-card {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 17px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 4px clamp(6px, 1.3vw, 10px);
    border: 1px solid #a1bcb141;
    border-radius: 7px;
    background: #091b16a6;
    color: var(--ink);
    font: 500 .91rem/1.25 Jost, system-ui, sans-serif;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.contact .telephone {
    border-color: #dbbe8c85;
    background: linear-gradient(97deg, #b399632b, #81704e0d), #10241b;
    color: #faedcb;
    font-size: clamp(1rem, 2.8vw, 1.18rem);
    font-variant-numeric: tabular-nums;
}
.contact a:hover, #share-card:hover { border-color: var(--gold); background-color: #203b2e; }
.action-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 5px;
    background: #cfb88921;
    color: var(--gold);
    font: 400 .9rem/1 system-ui, sans-serif;
}
.action-arrow { justify-self: end; color: #afbfb6; font-size: 1rem; }
#share-status { color: var(--muted); margin: 0; font-size: .82rem; }
#share-status:empty { display: none; }
.cafe-details {
    grid-area: cafe;
    align-self: end;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    overflow-wrap: anywhere;
}
.cafe-details .website { color: var(--gold); font-weight: 600; text-decoration: none; }
.cafe-details address { margin-top: 3px; color: var(--muted); font-size: .83rem; font-style: normal; }
.cafe-details address a { text-decoration-color: #bdd4c788; text-underline-offset: 2px; }
.card-qr {
    grid-area: qr;
    align-self: end;
    justify-self: end;
    display: grid;
    gap: 4px;
    text-align: center;
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.15;
    text-decoration: none;
}
.qr {
    display: block;
    width: 123px;
    height: auto;
    background: #fff;
    border-radius: 7px;
    image-rendering: pixelated;
}
.card-message { background: #183327; border: 1px solid var(--line); padding: 26px; border-radius: 18px 6px; }
.card-message a { display: inline-block; margin-top: 16px; }
@media (max-width: 620px) {
    .card-shell { max-width: 510px; }
    .profile-card {
        grid-template-columns: clamp(106px, 34vw, 168px) minmax(0, 1fr) auto;
        grid-template-areas: "portrait brand brand" "portrait profile profile" "contact contact qr" "cafe cafe qr";
    }
    .portrait-frame { min-height: 0; aspect-ratio: 4 / 5; align-self: start; }
    .cafe-brand { align-self: end; gap: 8px; padding-bottom: 6px; }
    .cafe-brand img { width: 25px; height: 32px; }
    .cafe-brand span { font-size: .73rem; letter-spacing: .09em; }
    .profile-details { align-self: start; }
}
@media (max-width: 430px) {
    .contact a, #share-card {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 5px;
        font-size: .83rem;
    }
    .contact .telephone { font-size: .85rem; }
    .action-icon { width: 18px; height: 21px; }
    .action-arrow { display: none; }
    .cafe-details { padding-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
    .profile-card { animation: card-arrive .4s ease-out both; }
    @keyframes card-arrive { from { opacity: .6; transform: translateY(7px); } }
}
