:root {
    color-scheme: light;
    --bg: #f4f5f7;
    --border: rgba(0, 0, 0, 0.08);
    --text: #111317;
    --muted: #616b77;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

a{
    color: rgba(0, 0, 0, 0.75);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3.5rem 2rem 2rem;
}

body > .container {
    width: min(640px, 100%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-height: 220px;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

body > .container.expanded {
    padding-bottom: 2rem;
    max-height: 780px;
}

body > header {
    width: min(640px, 100%);
    text-align: center;
    margin-bottom: 1rem;
}

header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.editor {
    width: 100%;
}

.editor textarea {
    width: 100%;
    min-height: 160px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(250, 250, 250, 0.98);
    padding: 1.25rem 1rem;
    font: 18px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, min-height 0.35s ease;
}

body > .container.expanded .editor textarea {
    min-height: 420px;
}

.editor textarea:focus {
    border-color: rgba(0, 113, 227, 0.35);
}

button#createNote {
    align-self: center;
    width: min(240px, 100%);
    padding: 0.95rem 1.4rem;
    border: none;
    border-radius: 999px;
    background: #0071e3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body > .container.expanded button#createNote {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

button#createNote:hover {
    transform: translateY(-1px);
}

button#createNote:active {
    transform: translateY(0);
}

.watermark {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    color: rgba(17, 19, 23, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    pointer-events: none;
    user-select: none;
    z-index: 10;
}
