/* ── Cafe Hidden Garden — Editorial / Roaster's Notebook ────────────────── */ /* Token system ───────────────────────────────────────────── Filter Paper #F4F2EC Base — cool paper white Dark Roast #1B1512 Primary text Medium Roast #4A4038 Secondary text Parchment #968878 Borders, rules Green Bean #3C6E55 Primary accent — coffee plant Coffee Cherry #C44D34 Secondary accent — ripe fruit, urgency Crema #EAE5DD Card surfaces White #FFFFFF Pure white highlights Motion tokens ───────────────────────────────────────────── --ease-enter: cubic-bezier(0.22, 0.61, 0.36, 1) Smooth deceleration (Jakub) --ease-exit: cubic-bezier(0.55, 0, 1, 0.45) Gentle exit --dur-fast: 300ms Buttons, hovers (Emil) --dur-med: 500ms Scroll reveals (Jakub) --dur-slow: 700ms Hero entrance (Jakub + Jhey) --stagger: 40ms Per-card cascade delay */ /* ── Reset ─────────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --paper: #F4F2EC; --roast: #1B1512; --roast-med: #4A4038; --parchment: #968878; --green: #3C6E55; --green-light: #4E8A6B; --cherry: #C44D34; --crema: #EAE5DD; --white: #FFFFFF; --rule: #D9D2C7; --font-display: 'Newsreader', Georgia, 'Times New Roman', serif; --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif; /* Motion tokens */ --ease-enter: cubic-bezier(0.22, 0.61, 0.36, 1); --ease-exit: cubic-bezier(0.55, 0, 1, 0.45); --dur-fast: 300ms; --dur-med: 500ms; --dur-slow: 700ms; --stagger: 40ms; } html { scroll-behavior: smooth; background: var(--paper); color: var(--roast); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; } body { background: var(--paper); overflow-x: hidden; } ::selection { background: rgba(60, 110, 85, 0.15); color: var(--roast); } .container { max-width: 1120px; margin: 0 auto; padding: 0 28px; } /* ── Typography ────────────────────────────────────────────────────────── */ .section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; color: var(--roast); line-height: 1.2; letter-spacing: -0.02em; } .section-desc { font-size: 0.95rem; color: var(--roast-med); max-width: 440px; line-height: 1.6; } .section-head { margin-bottom: 56px; display: flex; flex-direction: column; gap: 12px; } .section-head .section-title { padding-bottom: 16px; border-bottom: 1px solid var(--rule); } /* ── Buttons ───────────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 28px; border-radius: 6px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease-enter), color var(--dur-fast) var(--ease-enter), border-color var(--dur-fast) var(--ease-enter); border: none; letter-spacing: 0.01em; } .btn { background: var(--roast); color: var(--paper); } .btn:hover { background: var(--green); } .btn:active { transform: scale(0.97); transition: transform 100ms var(--ease-enter); } .btn-ghost { background: transparent; color: var(--roast); border: 1px solid var(--rule); } .btn-ghost:hover { border-color: var(--roast); background: transparent; color: var(--roast); } .btn-ghost:active { transform: scale(0.97); } /* ── Navigation ────────────────────────────────────────────────────────── */ .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background var(--dur-fast) var(--ease-enter), box-shadow var(--dur-fast) var(--ease-enter); padding: 18px 0; } .nav.scrolled { background: rgba(244, 242, 236, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--rule); } .nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; } .nav-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--roast); text-decoration: none; letter-spacing: -0.01em; } .nav-links { display: flex; gap: 32px; list-style: none; } .nav-links a { font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--roast-med); text-decoration: none; transition: color var(--dur-fast) var(--ease-enter); letter-spacing: 0.02em; } .nav-links a:hover { color: var(--roast); } .nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; } .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--roast); } /* ── Hero — Orchestrated Entrance ──────────────────────────────────────── */ .hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 28px 80px; background: var(--paper); position: relative; overflow: hidden; } .hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(60, 110, 85, 0.04) 0%, transparent 70%), url('https://images.unsplash.com/photo-1504630083234-14187a9df0f5?w=1920&q=80&fit=crop&crop=center') center/cover no-repeat; opacity: 0.18; pointer-events: none; } @media (max-width: 768px) { .hero::after { background: radial-gradient(ellipse at 80% 50%, rgba(60, 110, 85, 0.04) 0%, transparent 70%), url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=900&h=1600&q=80&fit=crop&crop=center') center/cover no-repeat; opacity: 0.22; } } .hero-inner { max-width: 1120px; margin: 0 auto; width: 100%; } /* Hero entrance — Jakub recipe: opacity + translateY + blur */ .hero-overline, .hero-title, .hero-subtitle, .hero-actions, .hero-details { opacity: 0; transform: translateY(12px); } .hero-entered .hero-overline { animation: heroReveal var(--dur-slow) var(--ease-enter) 0ms forwards; } .hero-entered .hero-title { animation: heroReveal var(--dur-slow) var(--ease-enter) 120ms forwards; filter: blur(4px); animation-name: heroRevealBlur; } .hero-entered .hero-subtitle { animation: heroReveal var(--dur-slow) var(--ease-enter) 280ms forwards; } .hero-entered .hero-actions { animation: heroReveal var(--dur-slow) var(--ease-enter) 440ms forwards; } .hero-entered .hero-details { animation: heroReveal var(--dur-slow) var(--ease-enter) 580ms forwards; } @keyframes heroReveal { to { opacity: 1; transform: translateY(0); } } @keyframes heroRevealBlur { to { opacity: 1; transform: translateY(0); filter: blur(0px); } } .hero-overline { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; } .hero-title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; color: var(--roast); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 900px; } .hero-subtitle { font-family: var(--font-body); font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--roast-med); max-width: 540px; line-height: 1.7; margin-bottom: 36px; } .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; } .hero-details { display: flex; gap: 12px; align-items: center; font-size: 0.8rem; color: var(--parchment); flex-wrap: wrap; } .hero-dot { color: var(--rule); } /* ── Menu ──────────────────────────────────────────────────────────────── */ .menu-section { padding: 96px 0; background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); } .category-bar { display: flex; gap: 0; margin-bottom: 48px; border-bottom: 1px solid var(--rule); overflow-x: auto; -webkit-overflow-scrolling: touch; } .cat-btn { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--parchment); cursor: pointer; transition: color var(--dur-fast) var(--ease-enter), border-color var(--dur-fast) var(--ease-enter); white-space: nowrap; margin-bottom: -1px; letter-spacing: 0.02em; } .cat-btn:hover { color: var(--roast-med); } .cat-btn.active { color: var(--roast); border-bottom-color: var(--green); } /* Menu Grid */ .menu-grid { display: flex; flex-wrap: wrap; gap: 20px; } /* Menu card — staggered cascade reveal (Jhey moment) */ .menu-card { flex: 1 1 300px; min-width: 280px; max-width: 100%; background: var(--white); padding: 32px 28px 28px; display: flex; flex-direction: column; transition: background var(--dur-fast) var(--ease-enter); /* Initial state for reveal */ opacity: 0; transform: translateY(10px); } .menu-card.revealed { animation: cardReveal var(--dur-med) var(--ease-enter) forwards; animation-delay: calc(var(--card-index, 0) * var(--stagger)); } @keyframes cardReveal { to { opacity: 1; transform: translateY(0); } } .menu-card:hover { background: var(--paper); } .menu-card-thumb { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .menu-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .menu-card-thumb .thumb-icon { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; color: var(--parchment); opacity: 0.7; } .menu-card-thumb .thumb-icon svg { width: 26px; height: 26px; display: block; } .menu-card-thumb .thumb-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; } .menu-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; } .menu-card-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--roast); line-height: 1.3; } .menu-card-price { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--green); white-space: nowrap; } .menu-card-description { font-size: 0.82rem; color: var(--roast-med); line-height: 1.55; flex-grow: 1; margin-bottom: 14px; } .menu-card-label { display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--parchment); margin-bottom: 4px; } .menu-card-footer { display: flex; align-items: center; gap: 6px; margin-top: auto; } .menu-card-cat-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; } .menu-card-cat-icon svg { width: 100%; height: 100%; display: block; } .menu-card-tag { display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--parchment); } .menu-card-tag.soldout { color: var(--cherry); } .menu-empty { width: 100%; text-align: center; padding: 72px 20px; background: var(--white); color: var(--parchment); font-size: 0.9rem; } /* ── About ─────────────────────────────────────────────────────────────── */ .about-section { padding: 120px 0; background: var(--paper); } .about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .about-text .section-title { margin-bottom: 28px; max-width: 460px; } .about-text p { font-size: 0.95rem; color: var(--roast-med); line-height: 1.75; margin-bottom: 16px; max-width: 460px; } .about-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); max-width: 460px; } .figure-num { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 4px; } .figure-label { font-size: 0.7rem; color: var(--parchment); font-weight: 500; letter-spacing: 0.04em; } .about-image { position: sticky; top: 100px; overflow: hidden; border-radius: 2px; order: -1; } .about-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-radius: 2px; filter: brightness(0.95) contrast(1.05); transition: transform 1s var(--ease-enter); } .about-image:hover img { transform: scale(1.03); } /* Scroll reveal — editorial subtlety, no blur to avoid slop */ .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-med) var(--ease-enter), transform var(--dur-med) var(--ease-enter); } .reveal.visible { opacity: 1; transform: translateY(0); } /* ── Visit ─────────────────────────────────────────────────────────────── */ .visit-section { position: relative; min-height: 85vh; display: flex; align-items: center; } .visit-bg { position: absolute; inset: 0; } .visit-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35) saturate(0.8); } .visit-content { position: relative; z-index: 1; width: 100%; padding: 120px 0; } .visit-card { background: var(--white); padding: 48px; max-width: 540px; border-radius: 2px; } .visit-card .section-title { margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); } .visit-details { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; } .visit-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--parchment); margin-bottom: 12px; } .visit-block p, .visit-block .hours-item { font-size: 0.88rem; color: var(--roast-med); margin-bottom: 4px; display: flex; justify-content: space-between; } .visit-block .hours-item .days { color: var(--roast); font-weight: 500; } .visit-note { font-size: 0.78rem; color: var(--parchment); font-style: italic; } /* ── CTA ───────────────────────────────────────────────────────────────── */ .cta-section { padding: 120px 0; background: var(--paper); } .cta-card { text-align: center; max-width: 520px; margin: 0 auto; } .cta-card .section-title { margin-bottom: 12px; } .cta-card p { font-size: 0.92rem; color: var(--roast-med); margin-bottom: 28px; } .cta-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; } .cta-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 6px; font-family: var(--font-body); font-size: 0.88rem; color: var(--roast); background: var(--white); transition: border-color var(--dur-fast) var(--ease-enter), box-shadow var(--dur-fast) var(--ease-enter); } .cta-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(60, 110, 85, 0.08); } .cta-form input::placeholder { color: var(--parchment); } /* ── Footer ────────────────────────────────────────────────────────────── */ .footer { padding: 64px 0 32px; border-top: 1px solid var(--rule); background: var(--paper); } .footer-grid { display: flex; justify-content: space-between; margin-bottom: 48px; } .footer-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--roast); margin-bottom: 4px; } .footer-tagline { font-size: 0.82rem; color: var(--parchment); line-height: 1.5; } .footer-links { display: flex; gap: 24px; } .footer-links a { font-size: 0.82rem; color: var(--roast-med); text-decoration: none; transition: color var(--dur-fast) var(--ease-enter); } .footer-links a:hover { color: var(--green); } .footer-copy { font-size: 0.72rem; color: var(--parchment); } /* ── Reduced Motion ────────────────────────────────────────────────────── */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } .hero-overline, .hero-title, .hero-subtitle, .hero-actions, .hero-details, .menu-card, .reveal { opacity: 1; transform: none; filter: none; } } /* ── Responsive ────────────────────────────────────────────────────────── */ @media (max-width: 768px) { .nav-links { display: none; } .nav-toggle { display: flex; } .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 24px 28px; gap: 16px; border-bottom: 1px solid var(--rule); box-shadow: 0 4px 12px rgba(0,0,0,0.04); } .hero { padding: 100px 20px 60px; min-height: 100vh; min-height: 100svh; } .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); } .about-layout { grid-template-columns: 1fr; gap: 40px; } .about-image { position: static; order: 0; } .about-figures { grid-template-columns: repeat(3, 1fr); } .menu-grid { gap: 10px; } .menu-card { flex: 1 1 100%; min-width: 0; max-width: 100%; padding: 18px 16px 16px; overflow: hidden; } .menu-card-thumb { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 4px; } .menu-card-header { margin-bottom: 6px; flex-wrap: wrap; } .menu-card-name { font-size: 1rem; overflow-wrap: break-word; word-break: break-word; } .menu-card-price { font-size: 0.92rem; white-space: normal; } .menu-card-description { font-size: 0.74rem; line-height: 1.45; margin-bottom: 10px; } .visit-details { grid-template-columns: 1fr; gap: 20px; } .visit-card { padding: 32px 24px; } .cta-form { flex-direction: column; } .footer-grid { flex-direction: column; gap: 24px; } } @media (max-width: 480px) { .container { padding: 0 18px; } .nav-inner { padding: 0 18px; } .category-bar { gap: 0; } .cat-btn { padding: 10px 14px; font-size: 0.76rem; } .about-figures { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } .figure-num { font-size: 1.4rem; } }