:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #142039;
    --muted: #63718a;
    --line: #d9e0ea;
    --cream: #fffaf2;
    --orange: #df7600;
    --orange-dark: #b95012;
    --orange-soft: #fff0df;
    --paper: rgba(255, 255, 255, .94);
    --shadow: 0 24px 70px rgba(30, 41, 59, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 18%, rgba(235, 126, 18, .2), transparent 30rem),
        radial-gradient(circle at 82% 82%, rgba(235, 126, 18, .1), transparent 34rem),
        linear-gradient(120deg, #fff8ee 0%, #fffdf9 52%, #fff 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background-image:
        linear-gradient(rgba(111, 78, 43, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 78, 43, .018) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { width: min(100%, 1760px); margin: 0 auto; min-height: 100vh; padding: 18px clamp(18px, 2vw, 36px) 30px; }
.site-header { position: relative; z-index: 30; min-height: 48px; display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.site-header a { font-weight: 800; text-decoration: none; color: #26334d; padding: 9px 3px; border-bottom: 2px solid transparent; }
.site-header a:hover, .site-header a:focus-visible, .site-header a[aria-current="page"] { color: #9a3b08; border-bottom-color: var(--orange); outline: 0; }
.site-header .home-link { margin-right: auto; }
.landing-main { position: relative; z-index: 1; }
.hero-grid { min-height: calc(100vh - 96px); display: grid; grid-template-columns: minmax(340px, .9fr) minmax(560px, 1.45fr) minmax(290px, .72fr); grid-template-areas: "login showcase profile"; gap: clamp(22px, 2vw, 34px); align-items: center; }
.profile-column { grid-area: profile; display: grid; gap: 14px; align-self: center; min-width: 0; }
.profile-stage { position: relative; width: 100%; max-height: 700px; aspect-ratio: 4 / 5; border-radius: 30px; overflow: visible; isolation: isolate; background: #d96713; box-shadow: var(--shadow); }
.profile-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: linear-gradient(to top, rgba(6, 17, 31, .52), transparent 42%), radial-gradient(circle at 92% 10%, rgba(255, 243, 223, .42), transparent 30%); }
.profile-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 38%; }
.yuli-mark { position: absolute; z-index: 7; top: 11%; right: 10px; left: auto; display: grid; justify-items: center; gap: 1px; padding: 0; background: transparent; }
.yuli-mark span { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-weight: 700; line-height: 1; transform: rotate(-3deg); text-shadow: 0 1px 4px rgba(255, 255, 255, .9), 0 2px 8px rgba(12, 24, 40, .18); }
.yuli-mark-name { font-size: clamp(1.05rem, 1.25vw, 1.3rem); }
.yuli-mark-from { font-size: clamp(.8rem, .95vw, 1rem); }
.yuli-mark img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(12, 24, 40, .22)); }
.quote { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: #102444; }
.quote strong { display: block; position: relative; font-weight: 700; line-height: 1.18; }
.quote strong::after { content: ""; display: block; width: min(80%, 280px); height: 4px; margin-top: 9px; border-radius: 99px; background: var(--orange); transform: rotate(-2deg); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .82em; line-height: 1.35; }
.profile-quote { margin: 0; padding: 0 6px; color: #102444; text-align: center; text-shadow: none; }
.profile-quote strong { font-size: clamp(1.28rem, 1.55vw, 1.7rem); }
.profile-quote strong::after { margin-left: auto; margin-right: auto; background: #ff9d2f; }
.profile-quote cite { font-size: clamp(.78rem, .88vw, .92rem); }
.showcase-stage { grid-area: showcase; position: relative; height: min(690px, calc(100vh - 125px)); min-height: 570px; perspective: 1200px; }
.shot { position: absolute; margin: 0; border: 1px solid rgba(160, 174, 192, .5); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 22px 52px rgba(15, 23, 42, .16); transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover { box-shadow: 0 30px 65px rgba(15, 23, 42, .22); }
.shot img { display: block; width: 100%; height: auto; }
.shot-workout { width: 78%; left: 0; top: 5%; z-index: 2; transform: rotate(-1deg); }
.shot-mountains { width: 74%; right: 0; top: 26%; z-index: 3; transform: rotate(1deg); }
.shot-diary-mobile { width: 28%; left: 17%; top: 48%; z-index: 5; border-radius: 26px; transform: rotate(-1.8deg); }
.shot-recovery-mobile { width: 28%; right: 7%; top: 53%; z-index: 6; border-radius: 26px; transform: rotate(1.4deg); }
.shot-workout:hover { transform: rotate(-.4deg) translateY(-5px); }
.shot-mountains:hover { transform: rotate(.5deg) translateY(-5px); }
.shot-diary-mobile:hover { transform: rotate(-1.3deg) translateY(-5px); }
.shot-recovery-mobile:hover { transform: rotate(1deg) translateY(-5px); }
.login-stage { grid-area: login; display: grid; align-content: center; gap: 14px; min-width: 0; }
.brand-logo { display: block; width: min(100%, 500px); height: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 12px 23px rgba(130, 45, 12, .08)); }
.auth-card { width: min(100%, 460px); margin: 0 auto; padding: clamp(20px, 2vw, 28px); border: 1px solid rgba(198, 208, 221, .9); border-radius: 22px; background: var(--paper); box-shadow: 0 20px 60px rgba(15, 23, 42, .12); backdrop-filter: blur(12px); }
.auth-card form { display: grid; gap: 13px; }
.social-login { display: grid; gap: 13px; margin-bottom: 14px; }
.social-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #172033; font-weight: 800; text-decoration: none; }
.social-button:hover { background: #fbfcfe; }
.social-button:focus-visible, .auth-card input:focus-visible, .auth-card button:focus-visible, .legal-links a:focus-visible { outline: 3px solid #fed7aa; outline-offset: 2px; }
.brand-icon { display: block; flex: 0 0 auto; }
.brand-icon-google { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 11px; color: #8a97a9; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #e1e6ee; }
.auth-input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #c8d2df; border-radius: 12px; background: #fff; color: #172033; }
.auth-input::placeholder { color: #8592a6; }
.remember-row { display: flex; align-items: center; gap: 9px; color: #27344b; font-weight: 650; cursor: pointer; }
.remember-row input { width: 18px; height: 18px; accent-color: var(--orange); }
.auth-submit { min-height: 50px; border: 0; border-radius: 12px; background: linear-gradient(100deg, #e47a00, #ca6000); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 10px 22px rgba(202, 96, 0, .2); }
.auth-submit:hover { filter: brightness(.97); }
.auth-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 12px; background: #fff1f2; color: #991b1b; font-weight: 750; }
.field-error { display: block; margin-top: -6px; color: #991b1b; font-size: .83rem; font-weight: 700; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #e3e8ef; }
.legal-links a { color: #8f310a; font-size: .82rem; font-weight: 750; }
.login-quote { width: min(100%, 460px); margin: 0 auto; padding: 0 10px; text-align: center; }
.login-quote strong { font-size: clamp(1.55rem, 2vw, 2.25rem); }
.login-quote strong::after { margin-left: auto; margin-right: auto; width: 68%; }
.login-quote cite { font-size: clamp(.83rem, .95vw, .98rem); }
.hashtag { display: block; margin-top: 15px; color: var(--orange-dark); font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: clamp(1.25rem, 1.55vw, 1.65rem); font-weight: 800; text-decoration: none; }
.desktop-hashtag { margin: 0 0 2px; text-align: left; }
.mobile-hashtag { display: none; }
.public-page { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: clamp(38px, 7vw, 90px) 0; }
.public-card { width: min(100%, 1050px); padding: clamp(28px, 5vw, 70px); border: 1px solid #e2e8f0; border-radius: 30px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.public-logo { display: block; width: min(100%, 620px); height: auto; aspect-ratio: 3 / 1; margin: 0 auto 28px; object-fit: contain; }
.public-card h1 { margin: 0; text-align: center; font-size: clamp(2.3rem, 6vw, 4.4rem); }
.coming-soon { margin: 20px 0 0; text-align: center; color: var(--orange-dark); font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; transform: rotate(-2deg); }
.contact-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr); gap: clamp(28px, 5vw, 68px); align-items: center; }
.contact-photo-wrap { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5; background: #d66d16; }
.contact-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.contact-yuli-mark { top: 8%; right: 14px; }
.contact-copy h1 { margin: 0 0 10px; text-align: left; font-size: clamp(2.3rem, 5vw, 4rem); }
.contact-copy p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 1.05rem; }
.contact-actions { display: grid; gap: 12px; margin-top: 26px; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #d7dee8; border-radius: 14px; background: #fff; color: #1f2d46; font-weight: 800; text-decoration: none; }
.contact-link:hover { border-color: #f3a662; background: #fffaf5; }
.contact-brand-icon { width: 24px; height: 24px; }
.contact-link[href^="mailto:"] .contact-brand-icon { color: var(--orange-dark); }
@media (max-width: 1240px) {
    .hero-grid { grid-template-columns: minmax(390px, 1.18fr) minmax(300px, .82fr); grid-template-areas: "login profile" "showcase showcase"; align-items: start; }
    .profile-column { align-self: start; }
    .profile-stage { max-height: 650px; }
    .showcase-stage { height: 620px; min-height: 620px; }
    .login-stage { padding-top: 12px; }
    .shot-workout { width: 59%; left: 2%; top: 3%; }
    .shot-mountains { width: 58%; right: 2%; top: 24%; }
    .shot-diary-mobile { width: 23%; left: 25%; top: 42%; }
    .shot-recovery-mobile { width: 23%; right: 22%; top: 48%; }
}
@media (max-width: 760px) {
    .site-shell { padding: 12px 14px 26px; }
    .site-header { justify-content: center; gap: 18px; font-size: .92rem; }
    .site-header .home-link { display: none; }
    .hero-grid { display: flex; flex-direction: column; gap: 20px; min-height: auto; }
    .login-stage { display: contents; }
    .brand-logo { order: 1; width: min(100%, 520px); height: auto; margin-top: 2px; }
    .auth-card { order: 2; width: 100%; border-radius: 18px; }
    .login-quote { order: 3; width: 100%; padding: 2px 10px 8px; }
    .desktop-hashtag { display: none; }
    .mobile-hashtag { display: block; }
    .profile-column { order: 4; width: 100%; gap: 12px; margin-top: 14px; }
    .profile-stage { width: 100%; max-height: none; aspect-ratio: 4 / 5; border-radius: 24px; }
    .profile-photo { object-position: 50% 38%; }
    .yuli-mark { top: 5%; right: 24px; left: auto; gap: 2px; padding: 0; }
    .yuli-mark-name { font-size: 1.7rem; }
    .yuli-mark-from { font-size: 1.2rem; }
    .yuli-mark img { width: 108px; height: 108px; }
    .profile-quote { padding: 0 8px; }
    .profile-quote strong { font-size: clamp(1.3rem, 6vw, 1.75rem); }
    .showcase-stage { order: 5; position: static; display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: auto; min-height: 0; gap: 12px; }
    .shot { position: static; width: auto; transform: none !important; border-radius: 13px; }
    .shot-workout, .shot-mountains { grid-column: 1 / -1; }
    .shot-diary-mobile, .shot-recovery-mobile { border-radius: 18px; }
    .login-quote strong { font-size: clamp(1.5rem, 7vw, 2rem); }
    .public-page { padding: 28px 0; }
    .public-card { border-radius: 22px; padding: 24px 18px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-photo-wrap { width: min(100%, 420px); margin: 0 auto; }
    .contact-yuli-mark { top: 5%; right: 24px; }
    .contact-copy h1, .contact-copy p { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shot { transition: none; } }
