@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Patrick+Hand&display=swap');

/* Reset & Root variables */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --hd-bg: #FCFBF7; /* Soft notebook paper */
    --hd-surface: #FFFFFF;
    
    --hd-primary: #2B6CB0; /* Deep Ink Blue */
    --hd-secondary: #FEFCBF; /* Highlighter Yellow */
    --hd-accent: #F687B3; /* Eraser Pink */
    --hd-success: #48BB78; /* Highlighter Green */
    --hd-danger: #E53E3E; /* Red Marker */
    
    --hd-text: #2D3748; /* Dark Graphite Pencil */
    --hd-text-muted: #718096;
    --hd-text-light: #A0AEC0;
    
    --hd-border: #2D3748;
    --hd-border-width: 2.5px;
    
    /* Squiggly Hand-Drawn Radii */
    --hd-radius-card: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --hd-radius-btn: 20px 5px 20px 5px / 5px 20px 5px 20px;
    --hd-radius-circle: 50% 50% 50% 50% / 50% 50% 50% 50%;
    
    --hd-font-heading: 'Architects Daughter', cursive;
    --hd-font-body: 'Patrick Hand', cursive;
    
    --hd-transition: all 0.2s ease;
    
    --hd-shadow: 4px 5px 0px #2D3748;
    --hd-shadow-lg: 6px 8px 0px #2D3748;
    --hd-shadow-sm: 2px 3px 0px #2D3748;
    --hd-shadow-press: 1px 1px 0px #2D3748;
}

body {
    margin: 0;
    font-family: var(--hd-font-body);
    font-size: 1.15rem;
    color: var(--hd-text);
    background-color: var(--hd-bg);
    -webkit-font-smoothing: antialiased;
}

/* Notebook Surface Container */
.hd-surface {
    background-color: var(--hd-surface);
    border: var(--hd-border-width) solid var(--hd-border);
    border-radius: var(--hd-radius-card);
    padding: 2.5rem;
    box-shadow: var(--hd-shadow);
    position: relative;
    transition: var(--hd-transition);
}

/* Global Logo */
.hd-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--hd-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hd-text);
    transition: var(--hd-transition);
}

.hd-logo:hover {
    transform: rotate(-3deg) scale(1.05);
}

.hd-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--hd-radius-circle);
    background-color: var(--hd-secondary);
    border: var(--hd-border-width) solid var(--hd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hd-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--hd-shadow-sm);
    transform: rotate(4deg);
}

/* Global Buttons */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--hd-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    border: var(--hd-border-width) solid var(--hd-border);
    border-radius: var(--hd-radius-btn);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--hd-shadow);
    transition: var(--hd-transition);
    gap: 0.5rem;
    background-color: var(--hd-surface);
    color: var(--hd-text);
}

.hd-btn:active {
    transform: translate(3px, 4px);
    box-shadow: var(--hd-shadow-press);
}

.hd-btn-primary {
    background-color: var(--hd-secondary); /* Highlighter Yellow focus! */
}

.hd-btn-primary:hover {
    background-color: #fef08a;
    transform: translate(-1px, -1px);
    box-shadow: 5px 6px 0px var(--hd-border);
}

.hd-btn-outline {
    background-color: var(--hd-surface);
}

.hd-btn-outline:hover {
    background-color: #faf9f6;
    transform: translate(-1px, -1px);
    box-shadow: 5px 6px 0px var(--hd-border);
}

.hd-btn-accent {
    background-color: var(--hd-accent); /* Eraser pink */
}

.hd-btn-accent:hover {
    background-color: #f472b6;
    transform: translate(-1px, -1px);
    box-shadow: 5px 6px 0px var(--hd-border);
}

.hd-btn-ghost {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

.hd-btn-ghost:hover {
    border-color: var(--hd-border);
    background-color: rgba(254, 252, 191, 0.4);
    box-shadow: var(--hd-shadow-sm);
    transform: rotate(-1deg);
}

.hd-btn-circle {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--hd-radius-circle) !important;
}

.hd-btn-block {
    width: 100%;
}

/* Pencil Input Fields */
.hd-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: var(--hd-border-width) dashed var(--hd-border);
    border-radius: var(--hd-radius-btn);
    font-family: var(--hd-font-body);
    font-size: 1.15rem;
    color: var(--hd-text);
    background-color: var(--hd-surface);
    outline: none;
    transition: var(--hd-transition);
}

.hd-input::placeholder {
    color: var(--hd-text-light);
}

.hd-input:focus {
    border-style: solid;
    background-color: #fffdec;
    box-shadow: var(--hd-shadow-sm);
}

.hd-label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--hd-font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hd-text);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hd-font-heading);
    margin: 0;
    color: var(--hd-text);
    line-height: 1.3;
}

p {
    font-family: var(--hd-font-body);
    line-height: 1.6;
    margin: 0;
    color: var(--hd-text-muted);
}

/* Helper Utilities */
.text-ink { color: var(--hd-primary) !important; }
.text-pink { color: var(--hd-accent) !important; }
.text-muted { color: var(--hd-text-muted) !important; }

.bg-paper { background-color: var(--hd-bg) !important; }
.bg-yellow { background-color: var(--hd-secondary) !important; }
.bg-pink { background-color: var(--hd-accent) !important; }
.bg-green { background-color: var(--hd-success) !important; }
.bg-red { background-color: var(--hd-danger) !important; }
.bg-blue { background-color: #bee3f8 !important; }
