/* ═══════════════════════════════════════════════════════════════ FlixCooks — Design System + Landing Page ═══════════════════════════════════════════════════════════════ */ /* ── Tokens ─────────────────────────────────────────────────────── */ :root { --bg: #f0f2f7; --bg-2: #e5e8ef; --surface: #ffffff; --surface-2: #f7f8fb; --panel: #f9fafc; --panel-2: #f2f4f8; --stroke: #d9deea; --ghost: rgba(107,118,140,0.14); --ink: #1c1f29; --muted: #5c6477; --accent: #6b768c; --accent-soft: rgba(107,118,140,0.12); --accent-2: #8ea0c3; --shadow: 0 10px 28px rgba(12,16,28,0.12); --radius: 12px; /* Landing-specific */ --land-bg: #0d0e11; --land-text: #f0f2f7; --land-muted: rgba(240,242,247,0.55); --land-accent: #e8c87a; --land-accent2: #c87a5a; } [data-theme="dark"] { --bg: #131519; --bg-2: #0f1114; --surface: #1a1d24; --surface-2: #1e2029; --panel: #22252e; --panel-2: #1c1f28; --stroke: #2e3240; --ghost: rgba(180,190,220,0.08); --ink: #dde0ea; --muted: #8892a6; --accent: #8ea0c3; --accent-soft: rgba(142,160,195,0.15); --accent-2: #6b80a4; --shadow: 0 10px 28px rgba(0,0,0,0.35); } /* ── Base reset ──────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: 'Manrope', system-ui, -apple-system, sans-serif; color: var(--ink); background: radial-gradient(circle at 25% 20%, rgba(107,118,140,0.08), transparent 28%), radial-gradient(circle at 78% 4%, rgba(142,160,195,0.10), transparent 32%), linear-gradient(140deg, var(--bg), var(--bg-2)); min-height: 100vh; line-height: 1.6; } h1, h2, h3, h4 { font-family: 'Playfair Display', 'Times New Roman', serif; margin: 0; color: var(--ink); line-height: 1.15; text-wrap: balance; } h1 span, h2 span { color: var(--accent); } p { color: var(--muted); line-height: 1.6; } a { color: var(--ink); text-decoration: none; transition: color 0.18s; } a:hover { color: var(--accent); } img, picture { display: block; max-width: 100%; height: auto; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } /* ══════════════════════════════════════════════════════════════════ LANDING SECTION ══════════════════════════════════════════════════════════════════ */ .landing { position: relative; width: 100%; min-height: 100dvh; background: var(--land-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; } /* Animated gradient blobs */ .landing__blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; } .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; } .blob--a { width: clamp(340px, 50vw, 700px); height: clamp(340px, 50vw, 700px); background: radial-gradient(circle, #4a3a6e 0%, transparent 70%); top: -15%; left: -12%; animation: blobA 18s ease-in-out infinite alternate; } .blob--b { width: clamp(280px, 40vw, 600px); height: clamp(280px, 40vw, 600px); background: radial-gradient(circle, #6b3a2a 0%, transparent 70%); bottom: -10%; right: -8%; animation: blobB 22s ease-in-out infinite alternate; } .blob--c { width: clamp(200px, 30vw, 450px); height: clamp(200px, 30vw, 450px); background: radial-gradient(circle, #1a3a5a 0%, transparent 70%); top: 40%; left: 55%; animation: blobC 15s ease-in-out infinite alternate; } @keyframes blobA { from { transform: translate(0,0) scale(1); } to { transform: translate(6%, 8%) scale(1.12); } } @keyframes blobB { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-5%, -6%) scale(0.92); } } @keyframes blobC { from { transform: translate(0,0) scale(0.95); } to { transform: translate(4%, 10%) scale(1.08); } } /* Fine grain overlay */ .landing::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); opacity: 0.03; pointer-events: none; z-index: 1; } /* Floating food chips */ .landing__chips { position: absolute; inset: 0; pointer-events: none; z-index: 2; } .chip { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(14px); border-radius: 16px; padding: 10px; width: clamp(80px, 10vw, 120px); animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; opacity: 0; animation-fill-mode: both; } .chip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; } .chip span { color: rgba(240,242,247,0.75); font-size: clamp(10px, 1.2vw, 13px); font-weight: 700; letter-spacing: 0.04em; } .chip--1 { top: 12%; left: clamp(4%, 6vw, 8%); animation-name: floatA; animation-duration: 8s; animation-delay: 0.6s; } .chip--2 { bottom: 18%; left: clamp(3%, 5vw, 7%); animation-name: floatB; animation-duration: 10s; animation-delay: 0.9s; } .chip--3 { top: 10%; right: clamp(4%, 6vw, 8%); animation-name: floatC; animation-duration: 9s; animation-delay: 1.2s; } .chip--4 { bottom: 14%; right: clamp(3%, 5vw, 7%); animation-name: floatA; animation-duration: 11s; animation-delay: 0.4s; } @keyframes floatA { from { transform: translateY(0px) rotate(-1deg); opacity: 0.85; } to { transform: translateY(-18px) rotate(1deg); opacity: 1; } } @keyframes floatB { from { transform: translateY(0px) rotate(1.5deg); opacity: 0.8; } to { transform: translateY(-14px) rotate(-1.5deg); opacity: 1; } } @keyframes floatC { from { transform: translateY(0px) rotate(-2deg); opacity: 0.9; } to { transform: translateY(-22px) rotate(0.5deg); opacity: 1; } } /* Main copy */ .landing__copy { position: relative; z-index: 3; text-align: center; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 2rem); max-width: 760px; animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.15s; } .landing__eyebrow { color: var(--land-muted); font-size: clamp(0.7rem, 1.2vw, 0.85rem); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.25rem; } .landing__headline { font-family: 'Playfair Display', serif; font-size: clamp(2.6rem, 7.5vw, 7rem); font-weight: 600; line-height: 1.05; color: var(--land-text); display: flex; flex-direction: column; gap: 0.05em; margin-bottom: 1.5rem; } .landing__headline em { font-style: italic; color: var(--land-accent); } .landing__headline .line { display: block; opacity: 0; animation: lineIn 0.7s cubic-bezier(0.16,1,0.3,1) both; } .landing__headline .line--1 { animation-delay: 0.35s; } .landing__headline .line--2 { animation-delay: 0.5s; } .landing__headline .line--3 { animation-delay: 0.65s; } .landing__sub { color: var(--land-muted); font-size: clamp(0.95rem, 1.8vw, 1.15rem); max-width: 520px; margin: 0 auto 2rem; opacity: 0; animation: fadeUp 0.7s 0.8s cubic-bezier(0.16,1,0.3,1) both; } .landing__cta { display: inline-flex; align-items: center; gap: 8px; padding: clamp(12px,2vw,16px) clamp(22px,3vw,32px); border-radius: 999px; background: var(--land-accent); color: #1a1208; font-weight: 800; font-size: clamp(0.875rem,1.4vw,1rem); letter-spacing: 0.02em; transition: transform 0.18s, box-shadow 0.18s, background 0.18s; opacity: 0; animation: fadeUp 0.7s 0.95s cubic-bezier(0.16,1,0.3,1) both; text-decoration: none; } .landing__cta:hover { background: #f0d490; color: #1a1208; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,200,122,0.35); } .landing__cta svg { transition: transform 0.2s; } .landing__cta:hover svg { transform: translateY(3px); } /* Scroll nudge */ .landing__scroll-nudge { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; opacity: 0; animation: fadeUp 0.7s 1.3s ease both; } .scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, rgba(240,242,247,0.5)); animation: scrollPulse 2.5s ease-in-out infinite; } .landing__scroll-nudge span { color: rgba(240,242,247,0.4); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; } @keyframes scrollPulse { 0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } } /* Theme toggle — fixed top-right, always visible */ .theme-toggle { position: fixed; top: 1.25rem; right: 1.5rem; z-index: 1000; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--land-toggle-border); background: var(--land-toggle-bg); color: var(--land-toggle-color); display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(10px); transition: background 0.18s, color 0.18s, border-color 0.18s; } .theme-toggle:hover { background: var(--land-chip-border); color: var(--land-text); } /* Once scrolled past landing, adapt to site theme */ .theme-toggle.on-site { border-color: var(--stroke); background: var(--surface); color: var(--ink); } .theme-toggle.on-site:hover { background: var(--panel-2); color: var(--accent); } /* Keyframes shared */ @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } } @keyframes lineIn { from { opacity: 0; transform: translateY(20px) skewY(1deg); } to { opacity: 1; transform: translateY(0) skewY(0deg); } } /* ══════════════════════════════════════════════════════════════════ SCROLL REVEAL (for cards below landing) ══════════════════════════════════════════════════════════════════ */ .reveal-target { opacity: 0; transform: translateY(28px); transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); } .reveal-target.revealed { opacity: 1; transform: translateY(0); } /* ══════════════════════════════════════════════════════════════════ EXISTING SITE STYLES (unchanged from original) ══════════════════════════════════════════════════════════════════ */ #recipes { padding: 0 24px 64px; } .site-header { max-width: 1200px; margin: 24px auto 12px; padding: 14px 20px; border: 1px solid rgba(28,32,52,0.08); border-radius: 14px; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); } [data-theme="dark"] .site-header { background: rgba(26,29,36,0.92); border-color: rgba(255,255,255,0.06); } .site-header__top { display: flex; align-items: center; gap: 12px; } .site-header .logo { display: inline-flex; align-items: center; } .site-header .logo img { display: block; height: clamp(28px,5vw,48px); width: auto; } .header-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; } .lang-toggle { padding: 8px 12px; border-radius: 12px; background: rgba(28,32,52,0.06); font-weight: 700; letter-spacing: 0.04em; color: var(--ink); } .lang-toggle:hover { background: var(--accent-soft); color: var(--ink); } .menu-toggle { display: none !important; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(28,32,52,0.08); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; } .menu-toggle__label { display: none; } .menu-toggle:hover { background: var(--accent-soft); } .site-nav { display: flex; gap: 12px; flex-wrap: wrap; } .site-nav a { padding: 8px 12px; border-radius: 12px; transition: background 0.18s; } .site-nav a:hover { background: var(--accent-soft); } .hero { max-width: 1200px; margin: 24px auto 56px; display: grid; grid-template-columns: minmax(320px,1fr) minmax(280px,0.9fr); gap: 24px; align-items: stretch; } .coming-strip { max-width: 1200px; margin: 18px auto 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; display: grid; gap: 10px; } .coming-strip__head { display: flex; align-items: center; gap: 10px; } .coming-strip__head small { color: var(--muted); } .coming-strip__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px,1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-color: #4f5664 transparent; } .coming-strip__row::-webkit-scrollbar { height: 8px; } .coming-strip__row::-webkit-scrollbar-track { background: transparent; } .coming-strip__row::-webkit-scrollbar-thumb { background: #4f5664; border-radius: 999px; } .coming-chip { background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px; padding: 8px; display: grid; gap: 8px; box-shadow: 0 6px 14px rgba(12,16,28,0.06); } .coming-chip__image img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; background: var(--panel-2); display: block; } .coming-chip__title { font-weight: 700; color: var(--ink); font-size: 14px; } .coming-features { max-width: 1200px; margin: 40px auto 56px; padding: 22px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; } .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; } .feature-card { padding: 14px 16px; background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px; display: grid; gap: 10px; align-items: center; } .feature-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); font-size: 18px; } .hero-copy { padding: 12px; order: 1; } .hero-copy h1 { font-size: clamp(32px,4vw,48px); line-height: 1.1; margin: 8px 0 12px; } .eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; color: var(--muted); font-size: 12px; } .search { margin: 18px 0 8px; display: flex; gap: 8px; } .search input { flex: 1; padding: 14px 16px; border: 1px solid var(--stroke); border-radius: 14px; font-size: 15px; background: var(--surface); color: var(--ink); font-family: inherit; } .search input:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; } .search button { padding: 14px 18px; border: 1px solid var(--stroke); border-radius: 14px; background: var(--panel); color: var(--ink); font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.18s; } .search button:hover { background: var(--panel-2); } .tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; } .tag { padding: 8px 12px; border-radius: 12px; background: var(--panel); color: var(--ink); font-weight: 600; font-size: 13px; border: 1px solid var(--stroke); transition: background 0.18s; } .tag:hover { background: var(--panel-2); color: var(--ink); } .tag.active { background: var(--accent); color: white; } .tag.clear { background: transparent; border: 1px dashed var(--stroke); color: var(--muted); } .hero-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 24px rgba(12,16,28,0.08); border: 1px solid var(--stroke); display: grid; grid-template-rows: auto 1fr; order: 2; } .hero-card img { width: 100%; aspect-ratio: 9/16; object-fit: contain; background: var(--surface); max-height: 520px; } .hero-card__body { padding: 18px; display: grid; gap: 10px; } .section-header { max-width: 1200px; margin: 0 auto 12px; display: flex; align-items: baseline; gap: 12px; } .section-header h2, .section-header h3 { margin: 0; } .section-header p { margin: 0; color: var(--muted); } .latest, .basics, .more { max-width: 1200px; margin: 0 auto 56px; } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; } .grid--tight { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); } .card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 20px rgba(12,16,28,0.08); border: 1px solid var(--stroke); display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; } .card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(12,16,28,0.14); } .card__image { position: relative; display: block; } .card__image img { width: 100%; aspect-ratio: 9/16; max-height: 260px; object-fit: contain; object-position: right center; display: block; background: var(--surface); } .pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; } .pill--ghost { background: var(--ghost); color: var(--muted); } .card__body { padding: 16px; display: grid; gap: 10px; } .card h3 { margin: 0; font-size: 20px; } .meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; } .meta--row { gap: 16px; } .tags { display: flex; flex-wrap: wrap; gap: 8px; } .card--bare { border: 1px solid var(--stroke); box-shadow: none; background: var(--panel); } .button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 12px; background: transparent; color: var(--ink); font-weight: 700; text-decoration: none; border: 1px solid var(--stroke); cursor: pointer; transition: background 0.18s, border-color 0.18s; } .button:hover { background: var(--panel-2); border-color: #c6cede; color: var(--ink); } /* ── Recipe page ─────────────────────────────────────────────────── */ .recipe { max-width: 1100px; margin: 0 auto 64px; background: var(--surface-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; } .recipe__hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); align-items: stretch; } .recipe__hero img { width: 100%; aspect-ratio: 9/16; max-height: 640px; object-fit: contain; background: var(--surface); } .recipe__hero__copy { padding: 24px; display: grid; gap: 12px; background: linear-gradient(140deg, var(--panel), var(--panel-2)); } .lede { font-size: 18px; line-height: 1.6; } .recipe__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 14px; padding: 22px; } .panel { padding: 18px; background: var(--panel); border-radius: 12px; border: 1px solid var(--stroke); } .ingredients { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .ingredients li { padding: 8px 10px; background: var(--panel-2); border-radius: 10px; border: 1px solid var(--stroke); } .steps { padding-left: 20px; display: grid; gap: 10px; } .steps li { padding: 6px 0; } .more { padding: 0 12px 24px; } /* ── Footer ──────────────────────────────────────────────────────── */ .site-footer { max-width: 1100px; margin: 0 auto 24px; padding: 24px; background: var(--surface-2); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 12px; border: 1px solid var(--stroke); } .footer-meta { color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .contact-link { font-weight: 700; color: var(--ink); } .contact-link:hover { color: var(--accent); } .not-found { max-width: 800px; margin: 120px auto; text-align: center; display: grid; gap: 12px; } /* ── Back to top ─────────────────────────────────────────────────── */ #backToTop { position: fixed; right: 18px; bottom: 18px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.2); opacity: 0; transform: translateY(12px); transition: opacity 0.25s ease, transform 0.25s ease; z-index: 999; } #backToTop.show { opacity: 1; transform: translateY(0); } #backToTop:hover { background: var(--panel-2); } /* ══════════════════════════════════════════════════════════════════ RESPONSIVE ══════════════════════════════════════════════════════════════════ */ /* Hide chips on small screens to avoid clutter */ @media (max-width: 600px) { .landing__chips { display: none; } .landing__headline { font-size: clamp(2.2rem, 12vw, 4rem); } } @media (max-width: 900px) { #recipes { padding: 0 14px 40px; } .site-header { padding: 12px 14px; gap: 10px; border-radius: 18px; } .site-header .logo img { height: clamp(32px,12vw,56px); } .menu-toggle { display: inline-flex !important; } .menu-toggle__label { display: inline; } .site-nav { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 8px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; } .site-nav[data-collapsed="false"] { max-height: 200px; } .site-nav a { background: var(--panel); } .coming-strip { padding: 12px; gap: 8px; } .coming-strip__row { grid-auto-columns: minmax(132px,46vw); gap: 10px; scroll-snap-type: x proximity; } .coming-chip { scroll-snap-align: start; } .coming-chip__image img { aspect-ratio: 4/3; } .coming-chip__title { font-size: 13px; } .coming-features { padding: 18px; margin: 32px auto 44px; } .feature-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); } .hero { grid-template-columns: 1fr; gap: 18px; margin: 20px auto 40px; } .hero-card, .hero-copy { order: unset; } .hero-copy { padding: 0 2px; } .hero-copy h1 { font-size: clamp(30px,9vw,40px); } .search { flex-direction: column; gap: 10px; } .search button { width: 100%; } .tag-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .tag-row .tag { flex: 0 0 auto; } .hero-card img { max-height: 240px; object-fit: cover; object-position: center; } .section-header { flex-direction: column; align-items: flex-start; gap: 6px; } .section-header p { font-size: 14px; } .grid, .grid--tight, .recipe__body { grid-template-columns: 1fr; } .recipe { margin: 0 auto 40px; } .recipe__body { padding: 16px; } .card__image img { max-height: 220px; object-fit: cover; object-position: center; } #backToTop { min-width: 44px; width: 44px; padding: 0; font-size: 0; gap: 0; } #backToTop::before { content: "\2191"; font-size: 18px; line-height: 1; } } @media (max-width: 480px) { #recipes { padding: 0 12px 32px; } .hero { gap: 16px; } .coming-strip__row { grid-auto-columns: 128px; } .coming-chip__image img { aspect-ratio: 1/1; } .hero-card img { max-height: 220px; } .card__body { padding: 14px; } .recipe__hero { grid-template-columns: 1fr; } .recipe__hero img { max-height: 260px; object-fit: cover; object-position: center; order: 1; } .recipe__hero__copy { order: 2; } } /* ══════════════════════════════════════════════════════════════════ LANDING — LIGHT MODE ADAPTATION ══════════════════════════════════════════════════════════════════ */ /* Light mode landing tokens */ :root, [data-theme="light"] { --land-bg: #f4f1eb; --land-text: #1c1f29; --land-muted: rgba(28,31,41,0.55); --land-accent: #b07d2a; --land-accent2: #8a4a20; --land-blob-a: #c9b8e8; --land-blob-b: #e8c0a0; --land-blob-c: #a8c4d8; --land-chip-bg: rgba(28,31,41,0.06); --land-chip-border: rgba(28,31,41,0.12); --land-chip-text: rgba(28,31,41,0.7); --land-toggle-border: rgba(28,31,41,0.15); --land-toggle-bg: rgba(28,31,41,0.06); --land-toggle-color: rgba(28,31,41,0.6); --land-scroll-line: rgba(28,31,41,0.35); --land-scroll-text: rgba(28,31,41,0.35); --land-grain: 0.04; } [data-theme="dark"] { --land-bg: #0d0e11; --land-text: #f0f2f7; --land-muted: rgba(240,242,247,0.55); --land-accent: #e8c87a; --land-accent2: #c87a5a; --land-blob-a: #4a3a6e; --land-blob-b: #6b3a2a; --land-blob-c: #1a3a5a; --land-chip-bg: rgba(255,255,255,0.07); --land-chip-border: rgba(255,255,255,0.12); --land-chip-text: rgba(240,242,247,0.75); --land-toggle-border: rgba(255,255,255,0.15); --land-toggle-bg: rgba(255,255,255,0.06); --land-toggle-color: rgba(240,242,247,0.7); --land-scroll-line: rgba(240,242,247,0.5); --land-scroll-text: rgba(240,242,247,0.4); --land-grain: 0.03; } /* Smooth theme transition on landing */ .landing { transition: background-color 0.4s ease; } /* Use variables everywhere in landing */ .landing { background: var(--land-bg); } .landing__eyebrow { color: var(--land-muted); } .landing__headline { color: var(--land-text); } .landing__sub { color: var(--land-muted); } .landing__cta { background: var(--land-accent); color: var(--land-bg); } [data-theme="light"] .landing__cta { color: #fff8ee; } .landing__cta:hover { filter: brightness(1.08); background: var(--land-accent); color: inherit; } /* Blob colors via variables */ .blob--a { background: radial-gradient(circle, var(--land-blob-a, #4a3a6e) 0%, transparent 70%); } .blob--b { background: radial-gradient(circle, var(--land-blob-b, #6b3a2a) 0%, transparent 70%); } .blob--c { background: radial-gradient(circle, var(--land-blob-c, #1a3a5a) 0%, transparent 70%); } /* Light mode blobs slightly more opaque */ [data-theme="light"] .blob { opacity: 0.45; filter: blur(90px); } /* Chip styles via variables */ .chip { background: var(--land-chip-bg); border-color: var(--land-chip-border); transition: background 0.3s, border-color 0.3s; } .chip span { color: var(--land-chip-text); } /* Scroll nudge */ .scroll-line { background: linear-gradient(to bottom, transparent, var(--land-scroll-line)); } .landing__scroll-nudge span { color: var(--land-scroll-text); } /* Theme toggle */ .theme-toggle { border-color: var(--land-toggle-border); background: var(--land-toggle-bg); color: var(--land-toggle-color); transition: background 0.18s, color 0.18s, border-color 0.18s; } .theme-toggle:hover { background: var(--land-chip-border); color: var(--land-text); } /* ══════════════════════════════════════════════════════════════════ MOBILE IMPROVEMENTS ══════════════════════════════════════════════════════════════════ */ @media (max-width: 900px) { /* More padding around the whole site content */ #recipes-start { padding: 0 6px 40px; } /* Header more compact */ .site-header { margin: 12px 8px; padding: 10px 14px; } /* Coming strip full width */ .coming-strip { margin: 10px 0; } /* Hero section stacks cleanly */ .hero { margin: 16px 0 32px; gap: 14px; } /* Featured card image not too tall */ .hero-card img { max-height: 200px; object-fit: cover; object-position: center; } /* Recipe grid single column with less gap */ .grid { gap: 12px; } /* Card images proportional */ .card__image img { max-height: 200px; object-fit: cover; object-position: center; aspect-ratio: 4/3; } /* Section headers compact */ .section-header { margin-bottom: 8px; } /* Landing chips hidden on very small screens */ .landing__chips { display: none; } /* Landing headline smaller */ .landing__headline { font-size: clamp(2rem, 10vw, 3.5rem); } /* Landing CTA full width */ .landing__cta { width: 100%; justify-content: center; } } @media (max-width: 480px) { #recipes-start { padding: 0 4px 32px; } .site-header { margin: 8px 4px; border-radius: 12px; } .coming-strip__row { grid-auto-columns: 110px; } .coming-chip__image img { aspect-ratio: 1/1; } /* Recipe body panels stack */ .recipe__body { grid-template-columns: 1fr; padding: 12px; gap: 10px; } .recipe__hero img { max-height: 240px; object-fit: cover; } /* Feature cards single column */ .feature-grid { grid-template-columns: 1fr; } }