@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Schoolbell&family=Gochi+Hand&display=swap');

:root {
  --color-cream: #fdf1e8; 
  --color-black: #000000;
  --color-blue: #0271c0;
  --color-teal: #008fa0;
  --color-green: #4caf50;
  --color-olive: #6c7e3f;
  --color-yellow: #fdd01a;
  --color-orange: #f48a28;
  --color-red: #e7301c;
  --color-purple: #c028a0;
  --color-maroon: #880000;
}

body {
    background-color: var(--color-cream);
    color: var(--color-black);
    font-family: 'Schoolbell', cursive; 
    font-size: 26px;
    margin: 0;
    padding: 20px;
    padding-bottom: 250px; 
    cursor: crosshair;
    overflow-x: hidden;
    text-transform: lowercase;
}

nav {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

nav a {
    color: var(--color-olive);
    text-decoration: underline;
}

nav a:hover {
    color: var(--color-red);
}

.main-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: transparent; 
    padding: 20px;
}

h1 {
    font-family: 'Gochi Hand', cursive; 
    font-size: 50px;
    margin-top: 0;
    color: var(--color-olive);
    text-align: center;
}

.word-wobble-1 { transform: rotate(-1.5deg); display: inline-block; }
.word-wobble-2 { transform: rotate(1deg); display: inline-block; }

.intro-text, .intro-note {
    line-height: 1.4;
    word-spacing: 3px;
    margin-top: 20px;
}

.intro-note {
    font-size: 22px;
    color: var(--color-olive);
    font-style: italic;
    transform: rotate(1.5deg);
}

.signature {
    font-family: 'Patrick Hand', cursive; 
    font-size: clamp(100px, 20vw, 250px);
    text-align: center;
    position: fixed;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    margin: 0;
    line-height: 0.8;
    z-index: 100; 
    white-space: nowrap;
}

.signature span {
    display: inline-block;
    -webkit-text-stroke: 1px var(--color-black); 
    text-shadow: 2px 2px 0 var(--color-black);
}

.teal-char { color: var(--color-teal); transform: rotate(4deg) translateY(-8px); margin-right: -10px; }
.orange-char { color: var(--color-orange); transform: rotate(-5deg) translateY(6px); margin-right: -8px; }
.green-char { color: var(--color-green); transform: rotate(3deg); margin-right: -12px; }
.purple-char { color: var(--color-purple); transform: rotate(-4deg) translateY(-4px); }

.signature:hover {
  transform: translateX(-50%) rotate(2deg) scale(1.03);
  transition: transform 0.1s steps(2);
}

/* folha de caderno rasgada */
.folha-caderno {
    background-color: #ffffff;
    background-image: repeating-linear-gradient(transparent, transparent 38px, #a0d8ef 38px, #a0d8ef 40px);
    padding: 40px 20px 40px 60px;
    margin-top: 40px;
    position: relative;
    transform: rotate(1.5deg);
    clip-path: polygon(0% 2%, 5% 0%, 10% 3%, 15% 0%, 20% 3%, 25% 0%, 30% 2%, 35% 0%, 40% 3%, 45% 0%, 50% 2%, 55% 0%, 60% 3%, 65% 0%, 70% 2%, 75% 0%, 80% 3%, 85% 0%, 90% 2%, 95% 0%, 100% 2%, 100% 98%, 95% 100%, 90% 98%, 85% 100%, 80% 97%, 75% 100%, 70% 98%, 65% 100%, 60% 98%, 55% 100%, 50% 98%, 45% 100%, 40% 97%, 35% 100%, 30% 98%, 25% 100%, 20% 98%, 15% 100%, 10% 97%, 5% 100%, 0% 98%);
}

.folha-caderno::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: var(--color-red);
    opacity: 0.6;
}

.diary-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.diary-list li {
    margin-bottom: 40px; 
    line-height: 40px; 
    position: relative;
    z-index: 2;
    transform: rotate(-0.5deg); 
}

.post-title {
    color: var(--color-olive);
    text-decoration: none; 
    font-size: 30px;
    font-weight: bold;
}

.post-title:hover {
    color: var(--color-red);
    text-decoration: underline wavy var(--color-yellow);
}

.post-future {
    color: #999;
    text-decoration: line-through;
    opacity: 0.5;
    font-weight: normal;
    pointer-events: none; 
}

.post-date {
    color: var(--color-purple);
    font-size: 22px;
    margin-left: 15px;
    font-style: italic;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.works-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 3px solid var(--color-black);
    border-radius: 6px;
}

.gray-scale {
    filter: grayscale(100%);
}

.gray-scale:hover {
    filter: grayscale(0%);
}

.post-content .post-date {
    color: var(--color-teal);
    margin-left: 0;
    margin-top: -10px;
    margin-bottom: 30px;
}

.entry p {
    line-height: 1.4;
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--color-olive);
    text-decoration: underline;
}

.back-link:hover {
    color: var(--color-red);
}