*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #f8f6f3;
    color: #2b2b2b;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Hero / The Void ---- */

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #2b2b2b;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
    user-select: none;
}

/* ---- Input Area ---- */

#input-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#url-input {
    border: none;
    border-bottom: 1px solid #d1ccc4;
    outline: none;
    background: transparent;
    width: min(60ch, 90vw);
    padding: 8px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    text-align: center;
    color: #2b2b2b;
    caret-color: #2b2b2b;
}

#url-input::placeholder {
    color: #c8c0b0;
    font-weight: 300;
}

#shorten-btn {
    background: #3d3d3d;
    color: #f8f6f3;
    border: none;
    padding: 10px 32px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 24px;
    border-radius: 0;
    transition: background 0.3s ease;
}

#shorten-btn:hover {
    background: #1a1a1a;
}

/* ---- Result Area ---- */

#result-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
}

#result-area.hidden {
    display: none;
}

#divider {
    width: 100px;
    height: 1px;
    background: #c8c0b0;
    margin-bottom: 28px;
}

#result-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#short-url {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: #2b2b2b;
    user-select: all;
}

#copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b8fad;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

#copy-btn:hover {
    color: #2b2b2b;
}

#copied-msg {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #6b8fad;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#copied-msg.visible {
    opacity: 1;
}

/* ---- Features ---- */

#features {
    margin-top: 50vh;
    padding: 0 24px 80px;
}

.feature {
    max-width: 400px;
    text-align: center;
    margin: 0 auto 48px;
}

.feature h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: #2b2b2b;
    margin-bottom: 8px;
}

.feature p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #3d3d3d;
}

/* ---- Footer ---- */

#site-footer {
    text-align: center;
    padding: 0 24px 40px;
}

#site-footer p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #c8c0b0;
    letter-spacing: 0.04em;
}
