﻿:root {
    --bg-cream: #f8f4ea;
    --ink: #1d2330;
    --ink-soft: #485166;
    --panel: #fffaf1;
    --line: rgba(20, 28, 43, 0.14);
    --accent: #ff6b45;
    --accent-strong: #e8512a;
    --note-a: #ffe9a8;
    --note-b: #b8e6ff;
    --note-c: #c8f5c8;
    --note-d: #ffd4ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Sora", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff6e8 0%, var(--bg-cream) 40%, #f7f2e8 100%);
    min-height: 100vh;
}

.page-aura {
    position: fixed;
    inset: -10% -5% auto;
    height: 430px;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 159, 67, 0.35), transparent 40%),
        radial-gradient(circle at 80% 12%, rgba(109, 213, 250, 0.32), transparent 36%),
        radial-gradient(circle at 55% 75%, rgba(135, 230, 156, 0.22), transparent 40%);
    filter: blur(14px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: 0.8rem;
}

.nav-shell {
    backdrop-filter: blur(16px);
    background: rgba(255, 250, 240, 0.75);
    border: 1px solid rgba(35, 42, 57, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(33, 40, 53, 0.12);
    min-height: 64px;
    padding: 0.4rem 0.6rem 0.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.brand-mark {
    text-decoration: none;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-l {
    font-family: "Fraunces", serif;
    font-size: 1.7rem;
    color: var(--accent);
}

.nav-link {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
}

.nav-link:hover {
    background: rgba(17, 28, 46, 0.06);
    color: var(--ink);
}

.eyebrow {
    display: inline-flex;
    background: rgba(255, 107, 69, 0.12);
    color: #b13a21;
    border: 1px solid rgba(255, 107, 69, 0.28);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.display-title,
.display-sub,
h1,
h2,
h3 {
    font-family: "Fraunces", serif;
    letter-spacing: -0.02em;
}

.display-title {
    font-size: clamp(2.1rem, 6vw, 4.8rem);
    line-height: 1.02;
    margin: 0;
}

.display-sub {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.lede {
    max-width: 58ch;
    color: var(--ink-soft);
    font-size: 1.07rem;
    line-height: 1.7;
}

.subtle {
    color: var(--ink-soft);
    line-height: 1.65;
}

.hero-grid {
    display: grid;
    gap: 2.2rem;
    align-items: center;
    grid-template-columns: 1.1fr 1fr;
}

.note-stage {
    min-height: 460px;
    position: relative;
}

.note-stage .sticky-note {
    position: absolute;
    width: min(290px, 85%);
}

.note-1 { top: 0; right: 1rem; transform: rotate(8deg); }
.note-2 { top: 9.2rem; left: 1rem; transform: rotate(-6deg); }
.note-3 { bottom: 0.4rem; right: 2.2rem; transform: rotate(-3deg); }

.btn {
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    padding: 0.72rem 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 81, 42, 0.33);
}

.btn-accent:hover {
    background: var(--accent-strong);
}

.btn-soft {
    background: rgba(25, 38, 57, 0.08);
    color: var(--ink);
}

.btn-soft:hover {
    background: rgba(25, 38, 57, 0.13);
}

.btn-mini {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 10px;
}

.panel-card {
    background: rgba(255, 252, 245, 0.88);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(30, 37, 49, 0.08);
}

.form-shell {
    padding: 1.4rem;
}

.search-shell {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    background: rgba(255, 250, 242, 0.88);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.65rem;
}

.search-shell input {
    flex: 1;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    margin: 0;
}

.text-link {
    color: #0f4b85;
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.notice {
    background: #eef8ff;
    border: 1px solid #c4e8ff;
    color: #165172;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
}

.sticky-note {
    color: #1f2532;
    border: 1px solid rgba(20, 26, 40, 0.14);
    border-radius: 16px;
    box-shadow: 0 16px 25px rgba(26, 33, 46, 0.17);
    padding: 1rem 1rem 0.95rem;
    position: relative;
    overflow: visible;
    break-inside: avoid;
    margin-bottom: 1rem;
}

.sticky-note::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 62px;
    height: 18px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 22, 33, 0.11);
}

.sticky-note h3 {
    margin: 0 0 0.2rem;
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    line-height: 1.1;
}

.note-focus h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.meta-line {
    color: rgba(28, 40, 59, 0.72);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sticky-note ul,
.sticky-note ol,
.long-list {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.6;
    word-break: break-word;
}

.sticky-note ol,
.long-list {
    list-style: none;
    padding-left: 0;
    counter-reset: lyst-item;
}

.sticky-note ol li,
.long-list li {
    counter-increment: lyst-item;
    position: relative;
    padding-left: 1.6rem;
}

.sticky-note ol li::before,
.long-list li::before {
    content: counter(lyst-item) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(28, 40, 59, 0.72);
    font-weight: 700;
}

.long-list {
    padding-left: 1.35rem;
    font-size: 1rem;
}

.empty-line {
    color: rgba(28, 40, 59, 0.62);
    font-style: italic;
}

.note-auto:nth-child(4n + 1) { background: var(--note-a); transform: rotate(-1.4deg); }
.note-auto:nth-child(4n + 2) { background: var(--note-b); transform: rotate(1.4deg); }
.note-auto:nth-child(4n + 3) { background: var(--note-c); transform: rotate(-2deg); }
.note-auto:nth-child(4n + 4) { background: var(--note-d); transform: rotate(1.9deg); }
.note-focus { background: linear-gradient(170deg, #fff0be, #ffe39a); }
.note-1 { background: var(--note-a); }
.note-2 { background: var(--note-b); }
.note-3 { background: var(--note-c); }

.masonry-grid {
    columns: 1;
    column-gap: 1rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.stat-box {
    background: rgba(255, 250, 242, 0.92);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
}

.stat-box span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.stat-box strong {
    font-size: 1.8rem;
    line-height: 1;
    font-family: "Fraunces", serif;
}

.version-stack {
    display: grid;
    gap: 0.7rem;
}

.version-item {
    border: 1px solid var(--line);
    background: #fffaf0;
    border-radius: 12px;
    padding: 0.7rem;
    text-decoration: none;
    color: var(--ink);
}

.version-item.active {
    border-color: rgba(255, 107, 69, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 107, 69, 0.15);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 28, 46, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.65);
}

.chip-public {
    color: #115933;
    border-color: rgba(17, 89, 51, 0.28);
    background: rgba(174, 246, 198, 0.43);
}

.chip-private {
    color: #5c4a16;
    border-color: rgba(92, 74, 22, 0.25);
    background: rgba(255, 231, 164, 0.43);
}

.field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.field-help {
    color: var(--ink-soft);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.toggle-row {
    border: 1px dashed rgba(25, 36, 53, 0.22);
    border-radius: 12px;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.5);
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    border: 1px solid rgba(24, 34, 52, 0.22);
    background: #fffef9;
    border-radius: 12px;
    padding: 0.8rem 0.85rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ink);
}

textarea {
    min-height: 18rem;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 107, 69, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 69, 0.15);
}

.toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.5rem;
    z-index: 9999;
}

.toast-item {
    background: rgba(22, 31, 45, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    max-width: 280px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-item.error {
    background: rgba(130, 33, 33, 0.93);
}

@media (min-width: 640px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        columns: 3;
    }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .note-stage {
        min-height: 380px;
    }

    .note-stage .sticky-note {
        width: min(260px, 88%);
    }
}

@media (max-width: 640px) {
    .nav-shell {
        border-radius: 22px;
        min-height: 60px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .form-shell {
        padding: 1rem;
    }

    .btn {
        width: auto;
    }
}
