thangvip's picture
feat: deploy complete Compliment Forest app
9dad6a7 verified
:root {
--paper: #f5f0df;
--paper-light: #fbf8ed;
--ink: #243c31;
--ink-soft: #4c574f;
--moss: #53683d;
--moss-dark: #3f5634;
--sage: #8fa184;
--sage-light: #c8cfb7;
--rose: #c98f83;
--honey: #e4b75e;
--line: rgba(82, 104, 61, 0.48);
--serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville, Georgia, serif;
--sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}
* {
box-sizing: border-box;
}
html {
min-width: 320px;
min-height: 100%;
background: var(--paper);
}
body {
min-height: 100vh;
margin: 0;
overflow-x: hidden;
color: var(--ink);
background:
radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.58), transparent 35%),
radial-gradient(circle at 83% 71%, rgba(207, 213, 186, 0.18), transparent 32%),
var(--paper);
font-family: var(--sans);
text-rendering: optimizeLegibility;
}
button,
input,
textarea {
font: inherit;
}
button {
color: inherit;
}
.paper-grain {
position: fixed;
z-index: -1;
inset: 0;
pointer-events: none;
opacity: 0.28;
background-image: url("/assets/paper-texture.svg");
}
.site-header {
display: flex;
align-items: center;
width: min(100% - 64px, 1380px);
height: 104px;
margin: 0 auto;
}
.brand {
display: inline-flex;
align-items: center;
gap: 16px;
padding: 0;
border: 0;
background: transparent;
font-family: var(--serif);
font-size: 1.42rem;
cursor: pointer;
}
.brand-mark {
width: 54px;
height: 54px;
overflow: visible;
fill: none;
stroke: #6f825b;
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
}
.brand-mark ellipse {
fill: rgba(111, 130, 91, 0.5);
stroke-width: 1;
}
.view {
width: min(100% - 64px, 1380px);
margin: 0 auto;
}
.entry-view {
display: grid;
grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.2fr);
align-items: center;
min-height: calc(100vh - 174px);
}
.entry-copy {
z-index: 2;
max-width: 570px;
padding: 38px 0 72px 34px;
}
.entry-copy h1,
.path-header h1 {
margin: 0;
color: var(--ink);
font-family: var(--serif);
font-weight: 400;
letter-spacing: -0.045em;
}
.entry-copy h1 {
font-size: clamp(4.2rem, 7vw, 7.25rem);
line-height: 0.82;
}
.intro {
max-width: 540px;
margin: 34px 0 42px;
color: var(--ink-soft);
font-size: clamp(1.25rem, 1.7vw, 1.7rem);
line-height: 1.48;
}
#forest-form {
display: grid;
gap: 10px;
}
#forest-form label {
margin-top: 12px;
color: #26382f;
font-size: 1.02rem;
font-weight: 600;
}
#forest-form input,
#forest-form textarea {
width: 100%;
border: 1.5px solid rgba(48, 78, 62, 0.8);
border-radius: 5px;
outline: 0;
color: var(--ink);
background: rgba(251, 248, 237, 0.58);
box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.35);
font-size: 1.14rem;
transition:
border-color 180ms ease,
box-shadow 180ms ease,
background 180ms ease;
}
#forest-form input {
height: 58px;
padding: 0 18px;
}
#forest-form textarea {
min-height: 128px;
padding: 16px 18px;
line-height: 1.45;
resize: vertical;
}
#forest-form input::placeholder,
#forest-form textarea::placeholder {
color: rgba(68, 78, 72, 0.55);
}
#forest-form input:focus,
#forest-form textarea:focus {
border-color: var(--moss);
background: rgba(255, 253, 245, 0.88);
box-shadow: 0 0 0 4px rgba(83, 104, 61, 0.14);
}
.primary-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 16px;
min-height: 58px;
padding: 14px 30px;
border: 1px solid rgba(47, 67, 39, 0.72);
border-radius: 5px;
color: #fffdf3;
background: var(--moss);
box-shadow: 0 7px 22px rgba(63, 86, 52, 0.12);
font-family: var(--serif);
font-size: 1.45rem;
cursor: pointer;
transition:
transform 160ms ease,
background 160ms ease,
box-shadow 160ms ease;
}
.primary-button svg {
width: 30px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
}
.primary-button:hover:not(:disabled) {
transform: translateY(-2px);
background: var(--moss-dark);
box-shadow: 0 11px 28px rgba(63, 86, 52, 0.2);
}
.primary-button:disabled {
cursor: wait;
opacity: 0.62;
}
.grow-button {
width: 100%;
margin-top: 20px;
min-height: 68px;
font-size: 1.82rem;
}
.status-region {
min-height: 28px;
margin-top: 18px;
color: var(--moss-dark);
font-size: 0.98rem;
line-height: 1.5;
}
.status-region:not(:empty)::before {
display: inline-block;
width: 7px;
height: 7px;
margin: 0 10px 1px 2px;
border-radius: 50%;
background: var(--honey);
box-shadow: 0 0 10px rgba(228, 183, 94, 0.75);
content: "";
animation: breathe 1.7s ease-in-out infinite;
}
.status-region.is-error {
max-width: 570px;
padding: 14px 16px;
border-left: 3px solid var(--rose);
color: #5e3934;
background: rgba(201, 143, 131, 0.12);
}
.entry-art {
position: relative;
align-self: stretch;
min-height: 680px;
margin: -78px -120px -10px -100px;
overflow: hidden;
}
.entry-art::after {
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(90deg, var(--paper) 0%, transparent 22%),
linear-gradient(0deg, var(--paper) 0%, transparent 12%);
content: "";
}
.entry-art img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 56% 50%;
mix-blend-mode: multiply;
}
.experience-view {
min-height: calc(100vh - 174px);
padding: 0 24px 48px;
}
.path-header {
max-width: 980px;
margin: -14px auto 36px;
text-align: center;
}
.path-header h1 {
font-size: clamp(3rem, 5vw, 5.3rem);
line-height: 1.05;
}
#clearing-progress {
margin: 18px 0 10px;
color: var(--ink-soft);
font-size: 1rem;
letter-spacing: 0.08em;
}
.progress-dots {
display: flex;
justify-content: center;
gap: 18px;
min-height: 18px;
}
.progress-dot {
width: 14px;
height: 14px;
border-radius: 50%;
background: rgba(143, 161, 132, 0.24);
transition:
transform 180ms ease,
background 180ms ease;
}
.progress-dot.is-complete {
background: rgba(143, 161, 132, 0.7);
}
.progress-dot.is-current {
transform: scale(1.1);
background: var(--moss-dark);
}
.clearing {
display: grid;
grid-template-columns: minmax(460px, 1.05fr) minmax(430px, 0.95fr);
gap: clamp(52px, 7vw, 118px);
align-items: center;
width: min(100%, 1240px);
margin: 0 auto;
}
.clearing-art {
position: relative;
min-height: 610px;
margin: 0;
}
.image-wash {
position: absolute;
inset: 10% 2% 2%;
border-radius: 48% 52% 55% 45%;
background:
radial-gradient(circle at 43% 45%, rgba(182, 197, 190, 0.45), transparent 43%),
radial-gradient(circle at 48% 76%, rgba(121, 141, 100, 0.2), transparent 45%);
filter: blur(13px);
}
.clearing-art img {
position: absolute;
z-index: 1;
inset: 0;
width: 100%;
height: 100%;
border-radius: 44% 48% 45% 50%;
object-fit: cover;
mix-blend-mode: multiply;
mask-image: radial-gradient(ellipse 66% 76% at center, black 54%, transparent 100%);
}
.clearing-copy {
max-width: 570px;
padding: 18px 0 32px;
}
.creature,
.section-label {
margin: 0;
color: var(--moss-dark);
font-size: 0.79rem;
font-weight: 650;
letter-spacing: 0.2em;
text-transform: uppercase;
}
#strength {
margin: 10px 0 20px;
font-family: var(--serif);
font-size: clamp(2rem, 3vw, 3.15rem);
font-weight: 400;
line-height: 1.1;
}
#encouragement {
margin: 0 0 34px;
font-family: var(--serif);
font-size: clamp(1.78rem, 2.8vw, 2.75rem);
font-weight: 400;
line-height: 1.23;
}
.carried-question,
.spell-section {
padding: 26px 2px;
border-top: 2px solid var(--line);
}
#reflection,
.spell {
margin: 10px 0 0;
font-family: var(--serif);
font-size: clamp(1.35rem, 2.1vw, 2rem);
line-height: 1.28;
}
.spell-section {
padding-bottom: 20px;
}
.spell {
margin-bottom: 14px;
}
.copy-button {
display: inline-flex;
align-items: center;
gap: 9px;
min-height: 42px;
padding: 8px 17px;
border: 1.4px solid var(--moss-dark);
border-radius: 5px;
background: rgba(251, 248, 237, 0.55);
cursor: pointer;
}
.copy-button svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 1.6;
}
.path-actions {
display: grid;
gap: 10px;
margin-top: 18px;
}
.save-button {
background: #6b7048;
}
.text-button {
justify-self: center;
padding: 10px 18px;
border: 0;
color: var(--moss-dark);
background: transparent;
font-size: 1.02rem;
cursor: pointer;
}
.text-button:hover {
text-decoration: underline;
text-underline-offset: 4px;
}
footer {
width: min(100% - 40px, 1380px);
margin: 0 auto;
padding: 16px 0 24px;
color: rgba(54, 65, 58, 0.78);
font-size: 0.78rem;
text-align: center;
}
.fireflies {
position: fixed;
z-index: 4;
inset: 0;
pointer-events: none;
}
.fireflies i {
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
background: rgba(244, 199, 92, 0.8);
box-shadow: 0 0 12px rgba(244, 199, 92, 0.85);
animation: drift 8s ease-in-out infinite;
}
.fireflies i:nth-child(1) {
top: 31%;
left: 78%;
}
.fireflies i:nth-child(2) {
top: 65%;
left: 69%;
animation-delay: -2s;
}
.fireflies i:nth-child(3) {
top: 43%;
left: 91%;
animation-delay: -4s;
}
.fireflies i:nth-child(4) {
top: 76%;
left: 85%;
animation-delay: -6s;
}
.fireflies i:nth-child(5) {
top: 56%;
left: 53%;
animation-delay: -3s;
}
[hidden] {
display: none !important;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: 3px solid rgba(228, 183, 94, 0.72);
outline-offset: 4px;
}
@keyframes drift {
0%,
100% {
opacity: 0.35;
transform: translate(0, 0);
}
45% {
opacity: 1;
transform: translate(9px, -14px);
}
}
@keyframes breathe {
0%,
100% {
opacity: 0.45;
transform: scale(0.8);
}
50% {
opacity: 1;
transform: scale(1.12);
}
}
@media (max-width: 1040px) {
.entry-view {
grid-template-columns: minmax(400px, 0.9fr) 1.1fr;
}
.entry-art {
margin-left: -150px;
}
.clearing {
gap: 48px;
}
}
@media (max-height: 820px) and (min-width: 761px) {
.site-header {
height: 72px;
}
.brand {
gap: 11px;
font-size: 1.08rem;
}
.brand-mark {
width: 40px;
height: 40px;
}
.entry-view {
min-height: calc(100vh - 112px);
}
.entry-copy {
padding-top: 12px;
padding-bottom: 18px;
}
.entry-copy h1 {
font-size: clamp(3.8rem, 5.8vw, 5rem);
line-height: 0.8;
}
.intro {
margin: 16px 0 13px;
font-size: 1.12rem;
line-height: 1.38;
}
#forest-form {
gap: 5px;
}
#forest-form label {
margin-top: 6px;
font-size: 0.87rem;
}
#forest-form input {
height: 46px;
}
#forest-form textarea {
min-height: 64px;
padding-top: 11px;
padding-bottom: 11px;
}
.grow-button {
min-height: 48px;
margin-top: 7px;
font-size: 1.35rem;
}
.status-region {
min-height: 20px;
margin-top: 8px;
font-size: 0.85rem;
}
.entry-art {
min-height: 570px;
}
.experience-view {
min-height: calc(100vh - 112px);
padding-bottom: 6px;
}
.path-header {
margin: -18px auto 12px;
}
.path-header h1 {
font-size: clamp(2.8rem, 4.2vw, 3.5rem);
}
#clearing-progress {
margin: 8px 0 6px;
font-size: 0.82rem;
}
.progress-dots {
gap: 14px;
min-height: 12px;
}
.progress-dot {
width: 11px;
height: 11px;
}
.clearing {
grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
gap: 42px;
}
.clearing-art {
min-height: 475px;
}
.clearing-copy {
max-width: 640px;
padding: 0 0 8px;
}
#strength {
margin: 7px 0 10px;
font-size: 2.15rem;
}
#encouragement {
margin-bottom: 15px;
font-size: 1.78rem;
line-height: 1.16;
}
.carried-question,
.spell-section {
padding: 10px 2px;
}
#reflection,
.spell {
margin-top: 6px;
font-size: 1.2rem;
}
.spell {
margin-bottom: 8px;
}
.copy-button {
min-height: 36px;
padding: 6px 14px;
}
.path-actions {
gap: 4px;
margin-top: 8px;
}
.path-actions .primary-button {
min-height: 45px;
padding-top: 8px;
padding-bottom: 8px;
font-size: 1.25rem;
}
.text-button {
padding-top: 5px;
padding-bottom: 5px;
font-size: 0.9rem;
}
footer {
padding-top: 7px;
padding-bottom: 9px;
font-size: 0.7rem;
}
}
@media (max-width: 760px) {
.site-header {
width: min(100% - 36px, 720px);
height: 78px;
}
.brand {
gap: 10px;
font-size: 1.05rem;
}
.brand-mark {
width: 38px;
height: 38px;
}
.view {
width: min(100% - 36px, 720px);
}
.entry-view {
display: flex;
flex-direction: column;
min-height: auto;
}
.entry-copy {
width: 100%;
max-width: none;
padding: 34px 0 24px;
}
.entry-copy h1 {
font-size: clamp(3.1rem, 15vw, 4.7rem);
letter-spacing: -0.055em;
}
.intro {
margin: 28px 0 30px;
font-size: 1.2rem;
}
.entry-art {
order: -1;
align-self: auto;
width: calc(100% + 36px);
min-height: 310px;
margin: -26px -18px -65px;
opacity: 0.92;
}
.entry-art::after {
background:
linear-gradient(0deg, var(--paper) 0%, transparent 42%),
linear-gradient(90deg, var(--paper) 0%, transparent 14%);
}
.entry-art img {
object-position: 66% 52%;
}
.grow-button {
font-size: 1.48rem;
}
.experience-view {
padding: 0 0 32px;
}
.path-header {
margin: 10px auto 24px;
}
.path-header h1 {
font-size: clamp(2.75rem, 13vw, 4.5rem);
}
.clearing {
display: block;
}
.clearing-art {
min-height: 390px;
margin: -6px -10px 4px;
}
.clearing-copy {
max-width: none;
padding: 8px 0 20px;
}
#encouragement {
font-size: clamp(1.9rem, 8vw, 2.55rem);
}
#reflection,
.spell {
font-size: 1.55rem;
}
footer {
padding-bottom: 22px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.fireflies {
display: none;
}
}