@font-face { font-family: Onest; src: url("/assets/fonts/onest-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url("/assets/fonts/onest-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Onest; src: url("/assets/fonts/onest-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Onest; src: url("/assets/fonts/onest-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Onest; src: url("/assets/fonts/onest-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
    --ink: #0f172a;
    --ink-soft: #64748b;
    --brand: #0ea5e9;
    --brand-deep: #0369a1;
    --brand-pale: #e0f2fe;
    --canvas: #f5f8fc;
    --white: #fff;
    --line: #e2e8f0;
    --radius: 25px;
    --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 280px;
    color: var(--ink);
    background: var(--canvas);
    font-family: Onest, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(16px);
}
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand img { width: 38px; height: 38px; }
.brand small { color: var(--ink-soft); font-weight: 600; font-size: 12px; letter-spacing: 0; }
.header-links { display: flex; align-items: center; gap: 10px; }
.header-link { padding: 11px 15px; color: var(--ink-soft); font-size: 14px; font-weight: 700; border-radius: 999px; }
.header-link:hover { background: var(--brand-pale); color: var(--brand-deep); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--brand); box-shadow: 0 12px 28px rgba(14, 165, 233, .22); }
.button-primary:hover { background: #0284c7; }
.button-secondary { color: var(--brand-deep); background: var(--brand-pale); }
.button-white { color: var(--brand-deep); background: white; }

.hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 0 0 38px 38px;
    color: white;
    background: #10243b;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .45) 60%, rgba(15, 23, 42, .18));
}
.hero-content { position: relative; z-index: 1; padding: 68px 0 62px; max-width: 670px; }
.eyebrow {
    display: inline-flex;
    padding: 8px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, .2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1 { max-width: 650px; margin: 0; font-size: clamp(37px, 6vw, 59px); line-height: 1.04; letter-spacing: -.07em; }
.hero p { max-width: 560px; margin: 18px 0 30px; color: #e2e8f0; font-size: 17px; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.direction-cloud {
    margin-top: 30px;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    background: var(--white);
}
.direction-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.direction-head h2 { margin: 0; font-size: 26px; letter-spacing: -.05em; }
.direction-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.direction-list { display: flex; flex-wrap: wrap; gap: 9px; }
.direction-list a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--brand-deep);
    background: var(--brand-pale);
    font-size: 13px;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}
.direction-list a:hover { transform: translateY(-1px); background: #bae6fd; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 24px; padding: 32px 0 64px; }
.section-title { margin: 0 0 18px; font-size: 29px; letter-spacing: -.055em; }
.search-bar {
    display: flex;
    gap: 10px;
    padding: 8px;
    margin-bottom: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.search-bar input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    padding: 0 14px;
    outline: none;
    background: transparent;
    color: var(--ink);
}
.articles { display: grid; gap: 16px; }
.article-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #edf2f7;
    border-radius: var(--radius);
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-cover { width: 100%; height: 100%; min-height: 205px; object-fit: cover; }
.article-card-body { padding: 22px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.tag { padding: 5px 10px; border-radius: 999px; color: var(--brand-deep); background: var(--brand-pale); font-size: 11px; font-weight: 800; }
.article-card h2 { margin: 12px 0 8px; font-size: 23px; letter-spacing: -.045em; line-height: 1.18; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.author-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--brand-pale); }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; color: var(--brand-deep); font-weight: 800; }

.sidebar-card {
    padding: 22px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid #edf2f7;
}
.promo {
    color: white;
    border: 0;
    background: linear-gradient(145deg, #0284c7, #0ea5e9);
}
.promo h2 { margin: 14px 0 9px; font-size: 24px; line-height: 1.15; letter-spacing: -.045em; }
.promo p { margin: 0 0 19px; color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.55; }
.sidebar-card h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: -.035em; }
.destinations { display: grid; gap: 10px; }
.destination { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; }
.destination img { height: 45px; width: 60px; border-radius: 12px; object-fit: cover; }

.empty {
    padding: 52px 24px;
    text-align: center;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
}
.empty h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.04em; }
.empty p { max-width: 510px; margin: 0 auto 25px; color: var(--ink-soft); line-height: 1.6; }

.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 310px; gap: 28px; padding: 38px 0 70px; }
.story {
    overflow: hidden;
    border-radius: 30px;
    background: white;
    border: 1px solid #edf2f7;
}
.story-hero { width: 100%; height: min(350px, 44vw); min-height: 235px; object-fit: cover; }
.story-inner { padding: clamp(24px, 5vw, 48px); }
.story h1 { max-width: none; margin: 16px 0 18px; color: var(--ink); font-size: clamp(33px, 5vw, 46px); }
.story-intro { margin: 0 0 32px; color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.story-text { color: #1e293b; font-size: 17px; line-height: 1.78; }
.story-text p { margin: 0 0 22px; }
.story-text h2 { margin: 35px 0 14px; font-size: 27px; line-height: 1.25; letter-spacing: -.04em; }
.story-author { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--line); }
.story-author .avatar { height: 48px; width: 48px; }
.discussion { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.reaction-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; color: var(--ink-soft); font-size: 14px; }
.like-button {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: var(--brand-deep);
    background: #f0f9ff;
    cursor: pointer;
    font-weight: 700;
}
.like-button:hover, .like-button.liked { color: white; border-color: var(--brand); background: var(--brand); }
.like-button strong { margin-left: 6px; }
.discussion h2 { margin: 0 0 18px; font-size: 25px; letter-spacing: -.04em; }
.comment-form {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
    padding: 17px;
    border-radius: 19px;
    background: #f8fafc;
}
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
    outline: none;
}
.comment-form textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #7dd3fc; box-shadow: 0 0 0 4px #e0f2fe; }
.comment-form .button { justify-self: start; }
.comments { display: grid; gap: 10px; }
.comment {
    padding: 15px 16px;
    border-radius: 16px;
    background: #f8fafc;
}
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.comment-meta strong { font-size: 14px; }
.comment-meta time { color: var(--ink-soft); font-size: 12px; }
.comment p { margin: 0; color: #334155; font-size: 14px; line-height: 1.6; }
.discussion-empty { margin: 0; color: var(--ink-soft); font-size: 14px; }

.page { padding: 40px 0 72px; }
.form-shell { width: min(620px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 38px); border: 1px solid #edf2f7; border-radius: 30px; background: white; }
.form-shell.wide { width: min(820px, 100%); }
.form-shell h1 { margin: 0 0 8px; color: var(--ink); font-size: clamp(30px, 5vw, 40px); }
.subtle { margin: 0 0 26px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.field { display: block; margin-bottom: 19px; }
.field span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8fafc;
    padding: 13px 15px;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 310px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7dd3fc; box-shadow: 0 0 0 4px #e0f2fe; }
.checkbox { display: flex; align-items: start; gap: 10px; margin: 8px 0 25px; color: var(--ink-soft); font-size: 14px; }
.checkbox input { margin-top: 3px; accent-color: var(--brand); }
.form-message { padding: 13px 15px; margin-bottom: 18px; border-radius: 15px; color: #b91c1c; background: #fef2f2; font-size: 14px; font-weight: 600; }
.success { color: #047857; background: #ecfdf5; }
.form-footer { margin-top: 20px; color: var(--ink-soft); font-size: 14px; }
.form-footer a { color: var(--brand-deep); font-weight: 700; }

.profile-header { display: flex; align-items: center; gap: 18px; padding: 28px; margin-bottom: 23px; background: white; border-radius: var(--radius); border: 1px solid #edf2f7; }
.profile-header .avatar { height: 78px; width: 78px; }
.profile-header h1 { margin: 0 0 7px; color: var(--ink); font-size: 31px; }
.profile-header p { margin: 0; color: var(--ink-soft); }
.profile-actions { margin-left: auto; }
.document { max-width: 810px; padding: clamp(25px, 6vw, 46px); margin: 0 auto; border-radius: 30px; background: white; border: 1px solid #edf2f7; }
.document h1 { color: var(--ink); font-size: 40px; margin: 0 0 26px; }
.document h2 { font-size: 22px; margin: 32px 0 12px; }
.document p, .document li { color: #475569; font-size: 15px; line-height: 1.7; }

.site-footer { margin-top: 24px; padding: 42px 0; color: #94a3b8; background: var(--ink); border-radius: 34px 34px 0 0; font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: white; }

@media (max-width: 900px) {
    .main-grid, .article-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .article-layout .sidebar { order: initial; }
}
@media (max-width: 680px) {
    .container { width: min(100% - 24px, 1120px); }
    .header-row { min-height: 64px; }
    .brand small, .header-link.desktop { display: none; }
    .header-links { gap: 5px; }
    .button { padding: 0 16px; min-height: 43px; }
    .hero { min-height: 465px; border-radius: 0 0 28px 28px; }
    .hero-content { padding: 48px 0; }
    .article-card { grid-template-columns: 1fr; }
    .article-cover { min-height: 188px; height: 188px; }
    .story-inner { padding: 24px 20px 30px; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-actions { margin: 4px 0 0; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}
